Text Classification
Transformers
Safetensors
llama
trl
reward-trainer
Generated from Trainer
text-embeddings-inference
Instructions to use smohammadi/tinyllama_rm_sentiment_1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use smohammadi/tinyllama_rm_sentiment_1b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="smohammadi/tinyllama_rm_sentiment_1b")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("smohammadi/tinyllama_rm_sentiment_1b") model = AutoModelForSequenceClassification.from_pretrained("smohammadi/tinyllama_rm_sentiment_1b") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "TinyLlama/TinyLlama_v1.1", | |
| "architectures": [ | |
| "LlamaForSequenceClassification" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 1, | |
| "eos_token_id": 2, | |
| "hidden_act": "silu", | |
| "hidden_size": 2048, | |
| "id2label": { | |
| "0": "LABEL_0" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 5632, | |
| "label2id": { | |
| "LABEL_0": 0 | |
| }, | |
| "max_position_embeddings": 2048, | |
| "mlp_bias": false, | |
| "model_type": "llama", | |
| "num_attention_heads": 32, | |
| "num_hidden_layers": 22, | |
| "num_key_value_heads": 4, | |
| "pad_token_id": 2, | |
| "pretraining_tp": 1, | |
| "rms_norm_eps": 1e-05, | |
| "rope_scaling": null, | |
| "rope_theta": 10000.0, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.42.2", | |
| "use_cache": true, | |
| "vocab_size": 32000 | |
| } | |