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
File size: 2,313 Bytes
4ce1493 516c068 4ce1493 1ddbe6b 4ce1493 d1a1925 4ce1493 8dad0d0 4ce1493 1ddbe6b 4ce1493 d1a1925 4ce1493 d1a1925 4ce1493 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | ---
license: apache-2.0
base_model: TinyLlama/TinyLlama_v1.1
tags:
- trl
- reward-trainer
- generated_from_trainer
metrics:
- accuracy
model-index:
- name: tinyllama_rm_sentiment_1b
results: []
datasets:
- trl-internal-testing/sentiment-trl-style
---
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# tinyllama_rm_sentiment_1b
This model is a fine-tuned version of [TinyLlama/TinyLlama_v1.1](https://huggingface.co/TinyLlama/TinyLlama_v1.1) on https://huggingface.co/datasets/trl-internal-testing/sentiment-trl-style.
It achieves the following results on the evaluation set:
- Loss: 0.6514
- Accuracy: 0.625
## Model description
Trained using:
```
python trl/examples/scripts/rm/rm.py \
--dataset_name trl-internal-testing/sentiment-trl-style \
--dataset_train_split train \
--dataset_eval_split test \
--model_name_or_path TinyLlama/TinyLlama_v1.1 \
--chat_template simple_concat \
--learning_rate 3e-6 \
--per_device_train_batch_size 32 \
--per_device_eval_batch_size 32 \
--gradient_accumulation_steps 1 \
--logging_steps 1 \
--eval_strategy steps \
--max_token_length 1024 \
--max_prompt_token_lenth 1024 \
--remove_unused_columns False \
--num_train_epochs 1 \
--eval_steps 100 \
--output_dir models/ppo_torchtune/tinyllama/tinyllama_rm_sentiment_1b \
--push_to_hub
```
on the "dataset-processor" branch of trl:
git clone -b "dataset-processor" https://github.com/huggingface/trl
## Intended uses & limitations
More information needed
## Training and evaluation data
https://huggingface.co/datasets/trl-internal-testing/sentiment-trl-style
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 3e-06
- train_batch_size: 32
- eval_batch_size: 32
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 1.0
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|:-------------:|:------:|:----:|:---------------:|:--------:|
| 0.6033 | 0.6410 | 100 | 0.6514 | 0.625 |
### Framework versions
- Transformers 4.42.2
- Pytorch 2.2.0+cu121
- Datasets 2.20.0
- Tokenizers 0.19.1
|