Text Classification
PEFT
Safetensors
Transformers
Arabic
bert
bert-base
lora
parameter-efficient-fine-tuning
huggingface
ag-news
nlp
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
Commit History
-
Update README.md
Verified signature08a06bc -
Update README.md
Verified signaturebd1ad99
-
Update README.md
Verified signature6b4982c -
Update README.md
Verified signaturec0ef551 -
Update README.md
Verified signature689b457 -
Create README.md
Verified signature17e3041
-
Training in progress, epoch 1
Verified signature27baa71 -
initial commit
Verified signature5b444ff