Model save
Browse files- .gitattributes +0 -1
- README.md +57 -0
- all_results.json +8 -0
- generation_config.json +9 -0
- train_results.json +8 -0
- trainer_state.json +0 -0
.gitattributes
CHANGED
|
@@ -37,4 +37,3 @@ tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
| 37 |
checkpoint-550/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 38 |
checkpoint-1100/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 39 |
checkpoint-1650/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 40 |
-
checkpoint-3219/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 37 |
checkpoint-550/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 38 |
checkpoint-1100/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 39 |
checkpoint-1650/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
model_name: Qwen7B-Math-L28-LP32
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
- trl
|
| 7 |
+
- sft
|
| 8 |
+
licence: license
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Model Card for Qwen7B-Math-L28-LP32
|
| 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="ZMC2019/Qwen7B-Math-L28-LP32", 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 |
+
[<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/randomresearch/MATH/runs/6yf1k94u)
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
This model was trained with SFT.
|
| 33 |
+
|
| 34 |
+
### Framework versions
|
| 35 |
+
|
| 36 |
+
- TRL: 0.16.0.dev0
|
| 37 |
+
- Transformers: 4.49.0
|
| 38 |
+
- Pytorch: 2.5.1
|
| 39 |
+
- Datasets: 3.5.0
|
| 40 |
+
- Tokenizers: 0.21.1
|
| 41 |
+
|
| 42 |
+
## Citations
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
Cite TRL as:
|
| 47 |
+
|
| 48 |
+
```bibtex
|
| 49 |
+
@misc{vonwerra2022trl,
|
| 50 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
| 51 |
+
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},
|
| 52 |
+
year = 2020,
|
| 53 |
+
journal = {GitHub repository},
|
| 54 |
+
publisher = {GitHub},
|
| 55 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
| 56 |
+
}
|
| 57 |
+
```
|
all_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"total_flos": 2.7563310427752366e+18,
|
| 3 |
+
"train_loss": 0.14323887776128622,
|
| 4 |
+
"train_runtime": 47466.0518,
|
| 5 |
+
"train_samples": 93733,
|
| 6 |
+
"train_samples_per_second": 1.085,
|
| 7 |
+
"train_steps_per_second": 0.068
|
| 8 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"eos_token_id": [
|
| 4 |
+
151645,
|
| 5 |
+
151643
|
| 6 |
+
],
|
| 7 |
+
"pad_token_id": 151643,
|
| 8 |
+
"transformers_version": "4.49.0"
|
| 9 |
+
}
|
train_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"total_flos": 2.7563310427752366e+18,
|
| 3 |
+
"train_loss": 0.14323887776128622,
|
| 4 |
+
"train_runtime": 47466.0518,
|
| 5 |
+
"train_samples": 93733,
|
| 6 |
+
"train_samples_per_second": 1.085,
|
| 7 |
+
"train_steps_per_second": 0.068
|
| 8 |
+
}
|
trainer_state.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|