Text Classification
Transformers
Safetensors
qwen2
trl
reward-trainer
Generated from Trainer
text-embeddings-inference
Instructions to use trl-lib/Qwen2-0.5B-Reward with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use trl-lib/Qwen2-0.5B-Reward with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="trl-lib/Qwen2-0.5B-Reward")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("trl-lib/Qwen2-0.5B-Reward") model = AutoModelForSequenceClassification.from_pretrained("trl-lib/Qwen2-0.5B-Reward") - Notebooks
- Google Colab
- Kaggle
| { | |
| "additional_special_tokens": [ | |
| "<|im_start|>", | |
| "<|im_end|>" | |
| ], | |
| "eos_token": { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |