Text Classification
Transformers
PyTorch
Safetensors
Portuguese
llama
hate-speech
text-embeddings-inference
Instructions to use nicholasKluge/TeenyTinyLlama-460m-AgNews with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nicholasKluge/TeenyTinyLlama-460m-AgNews with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="nicholasKluge/TeenyTinyLlama-460m-AgNews")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("nicholasKluge/TeenyTinyLlama-460m-AgNews") model = AutoModelForSequenceClassification.from_pretrained("nicholasKluge/TeenyTinyLlama-460m-AgNews") - Notebooks
- Google Colab
- Kaggle
| { | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "<s>", | |
| "bos_token_id": 1, | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "</s>", | |
| "eos_token_id": 2, | |
| "legacy": false, | |
| "model_max_length": 1000000000000000019884624838656, | |
| "pad_token": "<pad>", | |
| "pad_token_id": 3, | |
| "padding_side": "right", | |
| "sp_model_kwargs": {}, | |
| "tokenizer_class": "LlamaTokenizer", | |
| "unk_token": "<unk>", | |
| "unk_token_id": 0, | |
| "use_default_system_prompt": false | |
| } | |