Downloads · 30 days
0
24f3004104/Distilbert-Pretrained
Distilbert-Pretrained is a machine learning model from 24f3004104. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
--- license: mit tags: - pytorch - transformers - distilbert - text-classification libraryname: transformers basemodel: distilbert-base-uncased ---
Downloads · 30 days
0
Access
Public
Updated Aug 10, 2026
Repo size
266 MB
Likes
0
Public
Click a slice to open those files.
.bin266 MB · 100%
From the Hugging Face model README
license: mit tags:
distilbert-base-uncased + classification head on prompt text.
import json, torch
from huggingface_hub import hf_hub_download
from transformers import DistilBertTokenizerFast
from model_defs import DistilBertClassifier
model = DistilBertClassifier.from_pretrained("24f3004104/Distilbert-Pretrained")
tokenizer = DistilBertTokenizerFast.from_pretrained("24f3004104/Distilbert-Pretrained")
labels_path = hf_hub_download("24f3004104/Distilbert-Pretrained", "labels.json")
classes = json.load(open(labels_path))["classes"]