A LoRA fine-tuned DistilBERT model for AG News classification (Apache 2.0 licensed).
This model is a fine-tuned version of
DistilBERT base uncased using
LoRA (Low-Rank Adaptation) for parameter-efficient fine-tuning.
It has been trained on the
AG News dataset to perform
news headline classification into the following categories:
1from transformers import pipeline
2
3classifier = pipeline(
4 "text-classification",
5 model="gemmalarasav/distilbert-ag-news-lora-merged"
6)
7
8text = "OpenAI releases new GPT model"
9result = classifier(text)
10print(result)
This model is a fine-tuned version of
DistilBERT,
which is licensed under the
Apache License 2.0.
This fine-tuned model is released under the same license:
Apache 2.0.
See the included
LICENSE file for details.