Downloads · 30 days
4
5% of all-time downloads
mojad121/distill-bert-intent-classifer
distill-bert-intent-classifer is a machine learning model from mojad121. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
- Base Model: distilbert-base-uncased - Task: Sequence Classification (4 classes) - Training Date: 2026-03-04T03:36:30.927788 - Classes: VERSIONPIN, APIMIGRATION, MONKEYPATCH, FULLREFACTOR
Downloads · 30 days
4
5% of all-time downloads
All-time downloads
78
Public
Parameters
67M
4.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
from transformers import DistilBertTokenizer, DistilBertForSequenceClassification
import torch
import json
tokenizer = DistilBertTokenizer.from_pretrained("./distilbert-intent-classifier-v1")
model = DistilBertForSequenceClassification.from_pretrained("./distilbert-intent-classifier-v1")
text = "I updated my package.json to lock the Express version to 4.18.0"
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True)
with torch.no_grad():
outputs = model(**inputs)
logits = outputs.logits
predicted_class_id = logits.argmax(-1).item()
# Map ID back to label
label_config = json.load(open("label_config.json"))
predicted_label = label_config["id_to_label"][str(predicted_class_id)]
print(f"Predicted Intent: {predicted_label}")
pytorch_model.bin: Fine-tuned model weightsconfig.json: Model configurationvocab.txt: Tokenizer vocabularylabel_config.json: Intent class mappingsREADME.md: This file