Instructions to use PubChimps/dlfBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PubChimps/dlfBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="PubChimps/dlfBERT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("PubChimps/dlfBERT") model = AutoModelForSequenceClassification.from_pretrained("PubChimps/dlfBERT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from PubChimps/dlfBERT: direct link, hf CLI and curl.
- Browser
- Download file 19 Bytes
-
https://huggingface.co/PubChimps/dlfBERT/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://PubChimps/dlfBERT/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/PubChimps/dlfBERT/resolve/main/tokenizer_config.json
19 Bytes
| { | |
| "max_len": 512 | |
| } |