Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

azherali
/
CodeGenDetect-CodeBert_Lora

PEFT
Safetensors
Transformers
lora
Model card Files Files and versions
xet
Community

Instructions to use azherali/CodeGenDetect-CodeBert_Lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use azherali/CodeGenDetect-CodeBert_Lora with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForSequenceClassification
    
    base_model = AutoModelForSequenceClassification.from_pretrained("microsoft/codebert-base")
    model = PeftModel.from_pretrained(base_model, "azherali/CodeGenDetect-CodeBert_Lora")
  • Transformers

    How to use azherali/CodeGenDetect-CodeBert_Lora with Transformers:

    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("azherali/CodeGenDetect-CodeBert_Lora", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
CodeGenDetect-CodeBert_Lora
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
azherali's picture
azherali
initial commit
d33bd52 verified 5 months ago
  • .gitattributes
    1.52 kB
    initial commit 5 months ago