Instructions to use HuggingFaceH4/tiny-random-LlamaForSequenceClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HuggingFaceH4/tiny-random-LlamaForSequenceClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="HuggingFaceH4/tiny-random-LlamaForSequenceClassification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("HuggingFaceH4/tiny-random-LlamaForSequenceClassification") model = AutoModelForSequenceClassification.from_pretrained("HuggingFaceH4/tiny-random-LlamaForSequenceClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from HuggingFaceH4/tiny-random-LlamaForSequenceClassification: direct link, hf CLI and curl.
- Browser
- Download file 1.84 MB
-
https://huggingface.co/HuggingFaceH4/tiny-random-LlamaForSequenceClassification/resolve/0960e9816e59a162c8b65f47d919f3e293db082c/tokenizer.json
- Command line
-
hf download hf://HuggingFaceH4/tiny-random-LlamaForSequenceClassification@0960e9816e59a162c8b65f47d919f3e293db082c/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/HuggingFaceH4/tiny-random-LlamaForSequenceClassification/resolve/0960e9816e59a162c8b65f47d919f3e293db082c/tokenizer.json
1.84 MB
File too large to display, you can check the raw version instead.