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