mikeogezi commited on
Commit
bc1453f
·
verified ·
1 Parent(s): f28f441

Model save

Browse files
Files changed (2) hide show
  1. README.md +65 -0
  2. generation_config.json +15 -0
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2-VL-2B-Instruct
3
+ library_name: transformers
4
+ model_name: Qwen2-VL-2B-GRPO-MMR
5
+ tags:
6
+ - generated_from_trainer
7
+ licence: license
8
+ ---
9
+
10
+ # Model Card for Qwen2-VL-2B-GRPO-MMR
11
+
12
+ This model is a fine-tuned version of [Qwen/Qwen2-VL-2B-Instruct](https://huggingface.co/Qwen/Qwen2-VL-2B-Instruct).
13
+ It has been trained using [TRL](https://github.com/huggingface/trl).
14
+
15
+ ## Quick start
16
+
17
+ ```python
18
+ from transformers import pipeline
19
+
20
+ question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
21
+ generator = pipeline("text-generation", model="mikeogezi/Qwen2-VL-2B-GRPO-MMR", device="cuda")
22
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
23
+ print(output["generated_text"])
24
+ ```
25
+
26
+ ## Training procedure
27
+
28
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/ualberta-nlp/visual-reasoning/runs/28uss0us)
29
+
30
+
31
+ This model was trained with GRPO, a method introduced in [DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models](https://huggingface.co/papers/2402.03300).
32
+
33
+ ### Framework versions
34
+
35
+ - TRL: 0.16.0.dev0
36
+ - Transformers: 4.49.0
37
+ - Pytorch: 2.6.0
38
+ - Datasets: 3.2.0
39
+ - Tokenizers: 0.21.0
40
+
41
+ ## Citations
42
+
43
+ Cite GRPO as:
44
+
45
+ ```bibtex
46
+ @article{zhihong2024deepseekmath,
47
+ title = {{DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models}},
48
+ author = {Zhihong Shao and Peiyi Wang and Qihao Zhu and Runxin Xu and Junxiao Song and Mingchuan Zhang and Y. K. Li and Y. Wu and Daya Guo},
49
+ year = 2024,
50
+ eprint = {arXiv:2402.03300},
51
+
52
+ ```
53
+
54
+ Cite TRL as:
55
+
56
+ ```bibtex
57
+ @misc{vonwerra2022trl,
58
+ title = {{TRL: Transformer Reinforcement Learning}},
59
+ author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
60
+ year = 2020,
61
+ journal = {GitHub repository},
62
+ publisher = {GitHub},
63
+ howpublished = {\url{https://github.com/huggingface/trl}}
64
+ }
65
+ ```
generation_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "attn_implementation": "flash_attention_2",
3
+ "bos_token_id": 151643,
4
+ "do_sample": true,
5
+ "eos_token_id": [
6
+ 151645,
7
+ 151643
8
+ ],
9
+ "pad_token_id": 151643,
10
+ "temperature": 0.01,
11
+ "top_k": 1,
12
+ "top_p": 0.001,
13
+ "transformers_version": "4.49.0",
14
+ "use_cache": false
15
+ }