Instructions to use junmeng-sf/distilbert-base-category-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use junmeng-sf/distilbert-base-category-classifier with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("distilbert-base-uncased") model = PeftModel.from_pretrained(base_model, "junmeng-sf/distilbert-base-category-classifier") - Transformers
How to use junmeng-sf/distilbert-base-category-classifier with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("junmeng-sf/distilbert-base-category-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from junmeng-sf/distilbert-base-category-classifier: direct link, hf CLI and curl.
- Browser
- Download file 712 kB
-
https://huggingface.co/junmeng-sf/distilbert-base-category-classifier/resolve/main/tokenizer.json
- Command line
-
hf download hf://junmeng-sf/distilbert-base-category-classifier/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/junmeng-sf/distilbert-base-category-classifier/resolve/main/tokenizer.json
712 kB
File too large to display, you can check the raw version instead.