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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

NightPrince
/
peft-bert-agnews

Text Classification
PEFT
Safetensors
Transformers
Arabic
bert
bert-base
lora
parameter-efficient-fine-tuning
huggingface
ag-news
nlp
Model card Files Files and versions
xet
Community

Instructions to use NightPrince/peft-bert-agnews with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use NightPrince/peft-bert-agnews with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForSequenceClassification
    
    base_model = AutoModelForSequenceClassification.from_pretrained("bert-base-uncased")
    model = PeftModel.from_pretrained(base_model, "NightPrince/peft-bert-agnews")
  • Transformers

    How to use NightPrince/peft-bert-agnews with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="NightPrince/peft-bert-agnews")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("NightPrince/peft-bert-agnews", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
peft-bert-agnews
1.21 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
NightPrince's picture
NightPrince
Update README.md
08a06bc verified 8 months ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    3.43 kB
    Update README.md 8 months ago
  • adapter_config.json
    798 Bytes
    Training in progress, epoch 1 over 1 year ago
  • adapter_model.safetensors
    1.2 MB
    xet
    Training in progress, epoch 1 over 1 year ago
  • training_args.bin
    5.71 kB
    xet
    Training in progress, epoch 1 over 1 year ago