JeswinMS4/code_text_classifier
Viewer • Updated • 915 • 16 • 1
How to use JeswinMS4/distilbert-finetuned with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="JeswinMS4/distilbert-finetuned") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("JeswinMS4/distilbert-finetuned")
model = AutoModelForSequenceClassification.from_pretrained("JeswinMS4/distilbert-finetuned")This model is a fine-tuned version of distilbert-base-uncased on an code-text-classifier dataset. It achieves the following results on the evaluation set:
Finetuned model of distilbert for intent classification.
Classify Questions/User's Prompt for either code generation or text generation.
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.2209 | 1.0 | 52 | 0.0111 | 1.0 | 1.0 |
| 0.0114 | 2.0 | 104 | 0.0041 | 1.0 | 1.0 |
| 0.0048 | 3.0 | 156 | 0.0033 | 1.0 | 1.0 |
Base model
distilbert/distilbert-base-uncased