Training in progress, step 10
Browse files- .gitattributes +1 -0
 - README.md +68 -0
 - adapter_config.json +36 -0
 - adapter_model.safetensors +3 -0
 - added_tokens.json +5 -0
 - chat_template.jinja +6 -0
 - merges.txt +0 -0
 - runs/Jul17_03-13-51_e35a6a896655/events.out.tfevents.1752722050.e35a6a896655.518.0 +3 -0
 - special_tokens_map.json +20 -0
 - tokenizer.json +3 -0
 - tokenizer_config.json +44 -0
 - training_args.bin +3 -0
 - vocab.json +0 -0
 
    	
        .gitattributes
    CHANGED
    
    | 
         @@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text 
     | 
|
| 33 | 
         
             
            *.zip filter=lfs diff=lfs merge=lfs -text
         
     | 
| 34 | 
         
             
            *.zst filter=lfs diff=lfs merge=lfs -text
         
     | 
| 35 | 
         
             
            *tfevents* filter=lfs diff=lfs merge=lfs -text
         
     | 
| 
         | 
| 
         | 
|
| 33 | 
         
             
            *.zip filter=lfs diff=lfs merge=lfs -text
         
     | 
| 34 | 
         
             
            *.zst filter=lfs diff=lfs merge=lfs -text
         
     | 
| 35 | 
         
             
            *tfevents* filter=lfs diff=lfs merge=lfs -text
         
     | 
| 36 | 
         
            +
            tokenizer.json filter=lfs diff=lfs merge=lfs -text
         
     | 
    	
        README.md
    ADDED
    
    | 
         @@ -0,0 +1,68 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            ---
         
     | 
| 2 | 
         
            +
            base_model: Qwen/Qwen2-0.5B-Instruct
         
     | 
| 3 | 
         
            +
            library_name: transformers
         
     | 
| 4 | 
         
            +
            model_name: Qwen2-0.5B-GRPO-test
         
     | 
| 5 | 
         
            +
            tags:
         
     | 
| 6 | 
         
            +
            - generated_from_trainer
         
     | 
| 7 | 
         
            +
            - trl
         
     | 
| 8 | 
         
            +
            - grpo
         
     | 
| 9 | 
         
            +
            licence: license
         
     | 
| 10 | 
         
            +
            ---
         
     | 
| 11 | 
         
            +
             
     | 
| 12 | 
         
            +
            # Model Card for Qwen2-0.5B-GRPO-test
         
     | 
| 13 | 
         
            +
             
     | 
| 14 | 
         
            +
            This model is a fine-tuned version of [Qwen/Qwen2-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2-0.5B-Instruct).
         
     | 
| 15 | 
         
            +
            It has been trained using [TRL](https://github.com/huggingface/trl).
         
     | 
| 16 | 
         
            +
             
     | 
| 17 | 
         
            +
            ## Quick start
         
     | 
| 18 | 
         
            +
             
     | 
| 19 | 
         
            +
            ```python
         
     | 
| 20 | 
         
            +
            from transformers import pipeline
         
     | 
| 21 | 
         
            +
             
     | 
| 22 | 
         
            +
            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?"
         
     | 
| 23 | 
         
            +
            generator = pipeline("text-generation", model="lzzhang07/Qwen2-0.5B-GRPO-test", device="cuda")
         
     | 
| 24 | 
         
            +
            output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
         
     | 
| 25 | 
         
            +
            print(output["generated_text"])
         
     | 
| 26 | 
         
            +
            ```
         
     | 
| 27 | 
         
            +
             
     | 
| 28 | 
         
            +
            ## Training procedure
         
     | 
| 29 | 
         
            +
             
     | 
| 30 | 
         
            +
             
         
     | 
| 31 | 
         
            +
             
     | 
| 32 | 
         
            +
             
     | 
| 33 | 
         
            +
            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).
         
     | 
| 34 | 
         
            +
             
     | 
| 35 | 
         
            +
            ### Framework versions
         
     | 
| 36 | 
         
            +
             
     | 
| 37 | 
         
            +
            - TRL: 0.19.1
         
     | 
| 38 | 
         
            +
            - Transformers: 4.53.2
         
     | 
| 39 | 
         
            +
            - Pytorch: 2.6.0+cu124
         
     | 
| 40 | 
         
            +
            - Datasets: 4.0.0
         
     | 
| 41 | 
         
            +
            - Tokenizers: 0.21.2
         
     | 
| 42 | 
         
            +
             
     | 
| 43 | 
         
            +
            ## Citations
         
     | 
| 44 | 
         
            +
             
     | 
| 45 | 
         
            +
            Cite GRPO as:
         
     | 
| 46 | 
         
            +
             
     | 
| 47 | 
         
            +
            ```bibtex
         
     | 
| 48 | 
         
            +
            @article{zhihong2024deepseekmath,
         
     | 
| 49 | 
         
            +
                title        = {{DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models}},
         
     | 
| 50 | 
         
            +
                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},
         
     | 
| 51 | 
         
            +
                year         = 2024,
         
     | 
| 52 | 
         
            +
                eprint       = {arXiv:2402.03300},
         
     | 
| 53 | 
         
            +
            }
         
     | 
| 54 | 
         
            +
             
     | 
| 55 | 
         
            +
            ```
         
     | 
| 56 | 
         
            +
             
     | 
| 57 | 
         
            +
            Cite TRL as:
         
     | 
| 58 | 
         
            +
                
         
     | 
| 59 | 
         
            +
            ```bibtex
         
     | 
| 60 | 
         
            +
            @misc{vonwerra2022trl,
         
     | 
| 61 | 
         
            +
            	title        = {{TRL: Transformer Reinforcement Learning}},
         
     | 
| 62 | 
         
            +
            	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{\'e}dec},
         
     | 
| 63 | 
         
            +
            	year         = 2020,
         
     | 
| 64 | 
         
            +
            	journal      = {GitHub repository},
         
     | 
| 65 | 
         
            +
            	publisher    = {GitHub},
         
     | 
| 66 | 
         
            +
            	howpublished = {\url{https://github.com/huggingface/trl}}
         
     | 
| 67 | 
         
            +
            }
         
     | 
| 68 | 
         
            +
            ```
         
     | 
    	
        adapter_config.json
    ADDED
    
    | 
         @@ -0,0 +1,36 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            {
         
     | 
| 2 | 
         
            +
              "alpha_pattern": {},
         
     | 
| 3 | 
         
            +
              "auto_mapping": null,
         
     | 
| 4 | 
         
            +
              "base_model_name_or_path": "Qwen/Qwen2-0.5B-Instruct",
         
     | 
| 5 | 
         
            +
              "bias": "none",
         
     | 
| 6 | 
         
            +
              "corda_config": null,
         
     | 
| 7 | 
         
            +
              "eva_config": null,
         
     | 
| 8 | 
         
            +
              "exclude_modules": null,
         
     | 
| 9 | 
         
            +
              "fan_in_fan_out": false,
         
     | 
| 10 | 
         
            +
              "inference_mode": true,
         
     | 
| 11 | 
         
            +
              "init_lora_weights": true,
         
     | 
| 12 | 
         
            +
              "layer_replication": null,
         
     | 
| 13 | 
         
            +
              "layers_pattern": null,
         
     | 
| 14 | 
         
            +
              "layers_to_transform": null,
         
     | 
| 15 | 
         
            +
              "loftq_config": {},
         
     | 
| 16 | 
         
            +
              "lora_alpha": 32,
         
     | 
| 17 | 
         
            +
              "lora_bias": false,
         
     | 
| 18 | 
         
            +
              "lora_dropout": 0.1,
         
     | 
| 19 | 
         
            +
              "megatron_config": null,
         
     | 
| 20 | 
         
            +
              "megatron_core": "megatron.core",
         
     | 
| 21 | 
         
            +
              "modules_to_save": null,
         
     | 
| 22 | 
         
            +
              "peft_type": "LORA",
         
     | 
| 23 | 
         
            +
              "qalora_group_size": 16,
         
     | 
| 24 | 
         
            +
              "r": 8,
         
     | 
| 25 | 
         
            +
              "rank_pattern": {},
         
     | 
| 26 | 
         
            +
              "revision": null,
         
     | 
| 27 | 
         
            +
              "target_modules": [
         
     | 
| 28 | 
         
            +
                "q_proj",
         
     | 
| 29 | 
         
            +
                "v_proj"
         
     | 
| 30 | 
         
            +
              ],
         
     | 
| 31 | 
         
            +
              "task_type": "CAUSAL_LM",
         
     | 
| 32 | 
         
            +
              "trainable_token_indices": null,
         
     | 
| 33 | 
         
            +
              "use_dora": false,
         
     | 
| 34 | 
         
            +
              "use_qalora": false,
         
     | 
| 35 | 
         
            +
              "use_rslora": false
         
     | 
| 36 | 
         
            +
            }
         
     | 
    	
        adapter_model.safetensors
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:5bc2e187a60179b0fa9306800a1d0909667c253d6400f5a29b14f329d93a9d54
         
     | 
| 3 | 
         
            +
            size 2175168
         
     | 
    	
        added_tokens.json
    ADDED
    
    | 
         @@ -0,0 +1,5 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            {
         
     | 
| 2 | 
         
            +
              "<|endoftext|>": 151643,
         
     | 
| 3 | 
         
            +
              "<|im_end|>": 151645,
         
     | 
| 4 | 
         
            +
              "<|im_start|>": 151644
         
     | 
| 5 | 
         
            +
            }
         
     | 
    	
        chat_template.jinja
    ADDED
    
    | 
         @@ -0,0 +1,6 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            {% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system
         
     | 
| 2 | 
         
            +
            You are a helpful assistant.<|im_end|>
         
     | 
| 3 | 
         
            +
            ' }}{% endif %}{{'<|im_start|>' + message['role'] + '
         
     | 
| 4 | 
         
            +
            ' + message['content'] + '<|im_end|>' + '
         
     | 
| 5 | 
         
            +
            '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
         
     | 
| 6 | 
         
            +
            ' }}{% endif %}
         
     | 
    	
        merges.txt
    ADDED
    
    | 
         The diff for this file is too large to render. 
		See raw diff 
     | 
| 
         | 
    	
        runs/Jul17_03-13-51_e35a6a896655/events.out.tfevents.1752722050.e35a6a896655.518.0
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:eff75f27dbab39e4e1b6da009405e80e3770677d4a812a1802bde3bd22f7770d
         
     | 
| 3 | 
         
            +
            size 8233
         
     | 
    	
        special_tokens_map.json
    ADDED
    
    | 
         @@ -0,0 +1,20 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            {
         
     | 
| 2 | 
         
            +
              "additional_special_tokens": [
         
     | 
| 3 | 
         
            +
                "<|im_start|>",
         
     | 
| 4 | 
         
            +
                "<|im_end|>"
         
     | 
| 5 | 
         
            +
              ],
         
     | 
| 6 | 
         
            +
              "eos_token": {
         
     | 
| 7 | 
         
            +
                "content": "<|im_end|>",
         
     | 
| 8 | 
         
            +
                "lstrip": false,
         
     | 
| 9 | 
         
            +
                "normalized": false,
         
     | 
| 10 | 
         
            +
                "rstrip": false,
         
     | 
| 11 | 
         
            +
                "single_word": false
         
     | 
| 12 | 
         
            +
              },
         
     | 
| 13 | 
         
            +
              "pad_token": {
         
     | 
| 14 | 
         
            +
                "content": "<|endoftext|>",
         
     | 
| 15 | 
         
            +
                "lstrip": false,
         
     | 
| 16 | 
         
            +
                "normalized": false,
         
     | 
| 17 | 
         
            +
                "rstrip": false,
         
     | 
| 18 | 
         
            +
                "single_word": false
         
     | 
| 19 | 
         
            +
              }
         
     | 
| 20 | 
         
            +
            }
         
     | 
    	
        tokenizer.json
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:b7c852534ad33d333aa478034d64cd37cb14da033a24674c4b2518300f488efa
         
     | 
| 3 | 
         
            +
            size 11418433
         
     | 
    	
        tokenizer_config.json
    ADDED
    
    | 
         @@ -0,0 +1,44 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            {
         
     | 
| 2 | 
         
            +
              "add_prefix_space": false,
         
     | 
| 3 | 
         
            +
              "added_tokens_decoder": {
         
     | 
| 4 | 
         
            +
                "151643": {
         
     | 
| 5 | 
         
            +
                  "content": "<|endoftext|>",
         
     | 
| 6 | 
         
            +
                  "lstrip": false,
         
     | 
| 7 | 
         
            +
                  "normalized": false,
         
     | 
| 8 | 
         
            +
                  "rstrip": false,
         
     | 
| 9 | 
         
            +
                  "single_word": false,
         
     | 
| 10 | 
         
            +
                  "special": true
         
     | 
| 11 | 
         
            +
                },
         
     | 
| 12 | 
         
            +
                "151644": {
         
     | 
| 13 | 
         
            +
                  "content": "<|im_start|>",
         
     | 
| 14 | 
         
            +
                  "lstrip": false,
         
     | 
| 15 | 
         
            +
                  "normalized": false,
         
     | 
| 16 | 
         
            +
                  "rstrip": false,
         
     | 
| 17 | 
         
            +
                  "single_word": false,
         
     | 
| 18 | 
         
            +
                  "special": true
         
     | 
| 19 | 
         
            +
                },
         
     | 
| 20 | 
         
            +
                "151645": {
         
     | 
| 21 | 
         
            +
                  "content": "<|im_end|>",
         
     | 
| 22 | 
         
            +
                  "lstrip": false,
         
     | 
| 23 | 
         
            +
                  "normalized": false,
         
     | 
| 24 | 
         
            +
                  "rstrip": false,
         
     | 
| 25 | 
         
            +
                  "single_word": false,
         
     | 
| 26 | 
         
            +
                  "special": true
         
     | 
| 27 | 
         
            +
                }
         
     | 
| 28 | 
         
            +
              },
         
     | 
| 29 | 
         
            +
              "additional_special_tokens": [
         
     | 
| 30 | 
         
            +
                "<|im_start|>",
         
     | 
| 31 | 
         
            +
                "<|im_end|>"
         
     | 
| 32 | 
         
            +
              ],
         
     | 
| 33 | 
         
            +
              "bos_token": null,
         
     | 
| 34 | 
         
            +
              "clean_up_tokenization_spaces": false,
         
     | 
| 35 | 
         
            +
              "eos_token": "<|im_end|>",
         
     | 
| 36 | 
         
            +
              "errors": "replace",
         
     | 
| 37 | 
         
            +
              "extra_special_tokens": {},
         
     | 
| 38 | 
         
            +
              "model_max_length": 32768,
         
     | 
| 39 | 
         
            +
              "pad_token": "<|endoftext|>",
         
     | 
| 40 | 
         
            +
              "padding_side": "left",
         
     | 
| 41 | 
         
            +
              "split_special_tokens": false,
         
     | 
| 42 | 
         
            +
              "tokenizer_class": "Qwen2Tokenizer",
         
     | 
| 43 | 
         
            +
              "unk_token": null
         
     | 
| 44 | 
         
            +
            }
         
     | 
    	
        training_args.bin
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:002dbf1fa8cc0957bf61b629419f783f54fc816432a8bb17f2caf981a1334b89
         
     | 
| 3 | 
         
            +
            size 6392
         
     | 
    	
        vocab.json
    ADDED
    
    | 
         The diff for this file is too large to render. 
		See raw diff 
     | 
| 
         |