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

ahnafthaqeef
/
distilbert-sst2-lora

Text Classification
PEFT
Safetensors
PyTorch
Transformers
English
sentiment-analysis
distilbert
lora
distributed-training
Eval Results (legacy)
Model card Files Files and versions
xet
Community

Instructions to use ahnafthaqeef/distilbert-sst2-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use ahnafthaqeef/distilbert-sst2-lora with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForSequenceClassification
    
    base_model = AutoModelForSequenceClassification.from_pretrained("distilbert-base-uncased")
    model = PeftModel.from_pretrained(base_model, "ahnafthaqeef/distilbert-sst2-lora")
  • Transformers

    How to use ahnafthaqeef/distilbert-sst2-lora with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="ahnafthaqeef/distilbert-sst2-lora")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("ahnafthaqeef/distilbert-sst2-lora", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
distilbert-sst2-lora
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
ahnafthaqeef's picture
ahnafthaqeef
Upload folder using huggingface_hub
2f22c62 verified 19 days ago
  • .gitattributes
    1.52 kB
    initial commit 19 days ago
  • README.md
    6.52 kB
    Upload folder using huggingface_hub 19 days ago
  • adapter_config.json
    1.13 kB
    Upload folder using huggingface_hub 19 days ago
  • adapter_model.safetensors
    2.96 MB
    xet
    Upload folder using huggingface_hub 19 days ago
  • tokenizer.json
    711 kB
    Upload folder using huggingface_hub 19 days ago
  • tokenizer_config.json
    365 Bytes
    Upload folder using huggingface_hub 19 days ago