Text Classification
Transformers
Safetensors
mistral
Generated from Trainer
trl
reward-trainer
text-embeddings-inference
Instructions to use rlhf-and-friends/TLDR-Mistral-7B-SmallSFT-RM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rlhf-and-friends/TLDR-Mistral-7B-SmallSFT-RM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="rlhf-and-friends/TLDR-Mistral-7B-SmallSFT-RM")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("rlhf-and-friends/TLDR-Mistral-7B-SmallSFT-RM") model = AutoModelForSequenceClassification.from_pretrained("rlhf-and-friends/TLDR-Mistral-7B-SmallSFT-RM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "RLHF-And-Friends/TLDR-Mistral-7B-SmallSFT", | |
| "architectures": [ | |
| "MistralForSequenceClassification" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 1, | |
| "eos_token_id": 2, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 4096, | |
| "id2label": { | |
| "0": "LABEL_0" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 14336, | |
| "label2id": { | |
| "LABEL_0": 0 | |
| }, | |
| "max_position_embeddings": 32768, | |
| "model_type": "mistral", | |
| "num_attention_heads": 32, | |
| "num_hidden_layers": 32, | |
| "num_key_value_heads": 8, | |
| "pad_token_id": 32000, | |
| "rms_norm_eps": 1e-05, | |
| "rope_theta": 1000000.0, | |
| "sliding_window": null, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.49.0", | |
| "use_cache": true, | |
| "vocab_size": 32000 | |
| } | |