End of training
Browse files- README.md +69 -0
- adapter_model.bin +3 -0
- config.json +1 -1
- generation_config.json +8 -0
- pytorch_model.bin +3 -0
README.md
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: bigscience/bloom-560m
|
3 |
+
library_name: transformers
|
4 |
+
model_name: 5bb857c2-6667-4cf4-ba3a-9767a0cd0ee6
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
- axolotl
|
8 |
+
- dpo
|
9 |
+
- trl
|
10 |
+
licence: license
|
11 |
+
---
|
12 |
+
|
13 |
+
# Model Card for 5bb857c2-6667-4cf4-ba3a-9767a0cd0ee6
|
14 |
+
|
15 |
+
This model is a fine-tuned version of [bigscience/bloom-560m](https://huggingface.co/bigscience/bloom-560m).
|
16 |
+
It has been trained using [TRL](https://github.com/huggingface/trl).
|
17 |
+
|
18 |
+
## Quick start
|
19 |
+
|
20 |
+
```python
|
21 |
+
from transformers import pipeline
|
22 |
+
|
23 |
+
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?"
|
24 |
+
generator = pipeline("text-generation", model="Alphatao/5bb857c2-6667-4cf4-ba3a-9767a0cd0ee6", device="cuda")
|
25 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
26 |
+
print(output["generated_text"])
|
27 |
+
```
|
28 |
+
|
29 |
+
## Training procedure
|
30 |
+
|
31 |
+
[<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/alphatao-alphatao/Gradients-On-Demand/runs/qm3kpc28)
|
32 |
+
|
33 |
+
This model was trained with DPO, a method introduced in [Direct Preference Optimization: Your Language Model is Secretly a Reward Model](https://huggingface.co/papers/2305.18290).
|
34 |
+
|
35 |
+
### Framework versions
|
36 |
+
|
37 |
+
- TRL: 0.12.0.dev0
|
38 |
+
- Transformers: 4.46.0
|
39 |
+
- Pytorch: 2.5.0+cu124
|
40 |
+
- Datasets: 3.0.1
|
41 |
+
- Tokenizers: 0.20.1
|
42 |
+
|
43 |
+
## Citations
|
44 |
+
|
45 |
+
Cite DPO as:
|
46 |
+
|
47 |
+
```bibtex
|
48 |
+
@inproceedings{rafailov2023direct,
|
49 |
+
title = {{Direct Preference Optimization: Your Language Model is Secretly a Reward Model}},
|
50 |
+
author = {Rafael Rafailov and Archit Sharma and Eric Mitchell and Christopher D. Manning and Stefano Ermon and Chelsea Finn},
|
51 |
+
year = 2023,
|
52 |
+
booktitle = {Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023},
|
53 |
+
url = {http://papers.nips.cc/paper_files/paper/2023/hash/a85b405ed65c6477a4fe8302b5e06ce7-Abstract-Conference.html},
|
54 |
+
editor = {Alice Oh and Tristan Naumann and Amir Globerson and Kate Saenko and Moritz Hardt and Sergey Levine},
|
55 |
+
}
|
56 |
+
```
|
57 |
+
|
58 |
+
Cite TRL as:
|
59 |
+
|
60 |
+
```bibtex
|
61 |
+
@misc{vonwerra2022trl,
|
62 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
63 |
+
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},
|
64 |
+
year = 2020,
|
65 |
+
journal = {GitHub repository},
|
66 |
+
publisher = {GitHub},
|
67 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
68 |
+
}
|
69 |
+
```
|
adapter_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:928af8fa95e1fd397425ea02a9e30ffd82fde34d524d19743c937b52857d2e48
|
3 |
+
size 100734154
|
config.json
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
{
|
2 |
-
"_attn_implementation_autoset": true,
|
3 |
"_name_or_path": "bigscience/bloom-560m",
|
4 |
"apply_residual_connection_post_layernorm": false,
|
5 |
"architectures": [
|
@@ -25,6 +24,7 @@
|
|
25 |
"skip_bias_add": true,
|
26 |
"skip_bias_add_qkv": false,
|
27 |
"slow_but_exact": false,
|
|
|
28 |
"transformers_version": "4.46.0",
|
29 |
"unk_token_id": 0,
|
30 |
"use_cache": false,
|
|
|
1 |
{
|
|
|
2 |
"_name_or_path": "bigscience/bloom-560m",
|
3 |
"apply_residual_connection_post_layernorm": false,
|
4 |
"architectures": [
|
|
|
24 |
"skip_bias_add": true,
|
25 |
"skip_bias_add_qkv": false,
|
26 |
"slow_but_exact": false,
|
27 |
+
"torch_dtype": "bfloat16",
|
28 |
"transformers_version": "4.46.0",
|
29 |
"unk_token_id": 0,
|
30 |
"use_cache": false,
|
generation_config.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"do_sample": true,
|
5 |
+
"eos_token_id": 2,
|
6 |
+
"pad_token_id": 3,
|
7 |
+
"transformers_version": "4.46.0"
|
8 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2373a0c5bed6f802cef6b0abaaf0d3f8efb342f20eab6148bf64eb80a0991980
|
3 |
+
size 1219263326
|