Downloads · 30 days
7
4% of all-time downloads
gemmalarasav/distilbert-ag-news-lora-merged
distilbert-ag-news-lora-merged is a text classification model from gemmalarasav. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
A LoRA fine-tuned DistilBERT model for AG News classification (Apache 2.0 licensed).
Downloads · 30 days
7
4% of all-time downloads
All-time downloads
171
Public
Parameters
67M
536 MB on disk
Likes
0
Public
Click a slice to open those files.
.bin268 MB · 50%
From the Hugging Face model README
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:
distilbert-base-uncasedfrom transformers import pipeline
classifier = pipeline(
"text-classification",
model="gemmalarasav/distilbert-ag-news-lora-merged"
)
text = "OpenAI releases new GPT model"
result = classifier(text)
print(result)
Example output:
[{'label': 'Sci/Tech', 'score': 0.987}]
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.