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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("nicholasKluge/TeenyTinyLlama-460m-AgNews") model = AutoModelForSequenceClassification.from_pretrained("nicholasKluge/TeenyTinyLlama-460m-AgNews", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from nicholasKluge/TeenyTinyLlama-460m-AgNews: direct link, hf CLI and curl.
- Browser
- Download file 958 Bytes
-
https://huggingface.co/nicholasKluge/TeenyTinyLlama-460m-AgNews/resolve/main/config.json
- Command line
-
hf download hf://nicholasKluge/TeenyTinyLlama-460m-AgNews/config.json
-
curl -L -o config.json https://huggingface.co/nicholasKluge/TeenyTinyLlama-460m-AgNews/resolve/main/config.json
958 Bytes
| { | |
| "_name_or_path": "nicholasKluge/TeenyTinyLlama-460m", | |
| "architectures": [ | |
| "LlamaForSequenceClassification" | |
| ], | |
| "attention_bias": false, | |
| "bos_token_id": 1, | |
| "eos_token_id": 2, | |
| "hidden_act": "silu", | |
| "hidden_size": 1024, | |
| "id2label": { | |
| "0": "MUNDO", | |
| "1": "ESPORTES", | |
| "2": "NEG\u00d3CIOS", | |
| "3": "TECNOLOGIA" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4096, | |
| "label2id": { | |
| "ESPORTES": 1, | |
| "MUNDO": 0, | |
| "NEG\u00d3CIOS": 2, | |
| "TECNOLOGIA": 3 | |
| }, | |
| "max_position_embeddings": 2048, | |
| "model_type": "llama", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 24, | |
| "num_key_value_heads": 16, | |
| "pad_token_id": 3, | |
| "pretraining_tp": 1, | |
| "problem_type": "single_label_classification", | |
| "rms_norm_eps": 1e-05, | |
| "rope_scaling": null, | |
| "rope_theta": 10000.0, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.35.2", | |
| "use_cache": false, | |
| "vocab_size": 32000 | |
| } | |