Model save
Browse files- README.md +67 -0
- all_results.json +8 -0
- config.json +1 -1
- generation_config.json +6 -0
- train_results.json +8 -0
- trainer_state.json +0 -0
README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
model_name: CodeLlama-7b-hf_mbxpall_bs24_ep4_lr1e-6
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
- trl
|
| 7 |
+
- grpo
|
| 8 |
+
licence: license
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Model Card for CodeLlama-7b-hf_mbxpall_bs24_ep4_lr1e-6
|
| 12 |
+
|
| 13 |
+
This model is a fine-tuned version of [None](https://huggingface.co/None).
|
| 14 |
+
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 15 |
+
|
| 16 |
+
## Quick start
|
| 17 |
+
|
| 18 |
+
```python
|
| 19 |
+
from transformers import pipeline
|
| 20 |
+
|
| 21 |
+
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?"
|
| 22 |
+
generator = pipeline("text-generation", model="zerozeroz/CodeLlama-7b-hf_mbxpall_bs24_ep4_lr1e-6", device="cuda")
|
| 23 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
| 24 |
+
print(output["generated_text"])
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
## Training procedure
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
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).
|
| 33 |
+
|
| 34 |
+
### Framework versions
|
| 35 |
+
|
| 36 |
+
- TRL: 0.14.0
|
| 37 |
+
- Transformers: 4.48.1
|
| 38 |
+
- Pytorch: 2.5.1+cu121
|
| 39 |
+
- Datasets: 3.1.0
|
| 40 |
+
- Tokenizers: 0.21.0
|
| 41 |
+
|
| 42 |
+
## Citations
|
| 43 |
+
|
| 44 |
+
Cite GRPO as:
|
| 45 |
+
|
| 46 |
+
```bibtex
|
| 47 |
+
@article{zhihong2024deepseekmath,
|
| 48 |
+
title = {{DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models}},
|
| 49 |
+
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},
|
| 50 |
+
year = 2024,
|
| 51 |
+
eprint = {arXiv:2402.03300},
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
Cite TRL as:
|
| 57 |
+
|
| 58 |
+
```bibtex
|
| 59 |
+
@misc{vonwerra2022trl,
|
| 60 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
| 61 |
+
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},
|
| 62 |
+
year = 2020,
|
| 63 |
+
journal = {GitHub repository},
|
| 64 |
+
publisher = {GitHub},
|
| 65 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
| 66 |
+
}
|
| 67 |
+
```
|
all_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"total_flos": 0.0,
|
| 3 |
+
"train_loss": 0.5116655665984335,
|
| 4 |
+
"train_runtime": 18793.8029,
|
| 5 |
+
"train_samples": 1687,
|
| 6 |
+
"train_samples_per_second": 0.359,
|
| 7 |
+
"train_steps_per_second": 0.015
|
| 8 |
+
}
|
config.json
CHANGED
|
@@ -25,6 +25,6 @@
|
|
| 25 |
"tie_word_embeddings": false,
|
| 26 |
"torch_dtype": "bfloat16",
|
| 27 |
"transformers_version": "4.48.1",
|
| 28 |
-
"use_cache":
|
| 29 |
"vocab_size": 32016
|
| 30 |
}
|
|
|
|
| 25 |
"tie_word_embeddings": false,
|
| 26 |
"torch_dtype": "bfloat16",
|
| 27 |
"transformers_version": "4.48.1",
|
| 28 |
+
"use_cache": true,
|
| 29 |
"vocab_size": 32016
|
| 30 |
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"transformers_version": "4.48.1"
|
| 6 |
+
}
|
train_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"total_flos": 0.0,
|
| 3 |
+
"train_loss": 0.5116655665984335,
|
| 4 |
+
"train_runtime": 18793.8029,
|
| 5 |
+
"train_samples": 1687,
|
| 6 |
+
"train_samples_per_second": 0.359,
|
| 7 |
+
"train_steps_per_second": 0.015
|
| 8 |
+
}
|
trainer_state.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|