Token Classification
Transformers
Safetensors
qwen2
Generated from Trainer
trl
stepwise-reward-trainer
text-generation-inference
Instructions to use qgallouedec/Qwen2-0.5B-Reward-Math-Sheperd with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use qgallouedec/Qwen2-0.5B-Reward-Math-Sheperd with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="qgallouedec/Qwen2-0.5B-Reward-Math-Sheperd")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("qgallouedec/Qwen2-0.5B-Reward-Math-Sheperd") model = AutoModelForTokenClassification.from_pretrained("qgallouedec/Qwen2-0.5B-Reward-Math-Sheperd", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from qgallouedec/Qwen2-0.5B-Reward-Math-Sheperd: direct link, hf CLI and curl.
- Browser
- Download file 763 Bytes
-
https://huggingface.co/qgallouedec/Qwen2-0.5B-Reward-Math-Sheperd/resolve/main/config.json
- Command line
-
hf download hf://qgallouedec/Qwen2-0.5B-Reward-Math-Sheperd/config.json
-
curl -L -o config.json https://huggingface.co/qgallouedec/Qwen2-0.5B-Reward-Math-Sheperd/resolve/main/config.json
763 Bytes
| { | |
| "_name_or_path": "Qwen/Qwen2-0.5B", | |
| "architectures": [ | |
| "Qwen2ForTokenClassification" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 151643, | |
| "eos_token_id": 151643, | |
| "hidden_act": "silu", | |
| "hidden_size": 896, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4864, | |
| "max_position_embeddings": 131072, | |
| "max_window_layers": 24, | |
| "model_type": "qwen2", | |
| "num_attention_heads": 14, | |
| "num_hidden_layers": 24, | |
| "num_key_value_heads": 2, | |
| "pad_token_id": 151643, | |
| "rms_norm_eps": 1e-06, | |
| "rope_scaling": null, | |
| "rope_theta": 1000000.0, | |
| "sliding_window": null, | |
| "tie_word_embeddings": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.47.0.dev0", | |
| "use_cache": false, | |
| "use_sliding_window": false, | |
| "vocab_size": 151936 | |
| } | |