End of training
Browse files- README.md +69 -0
- adapter_model.bin +3 -0
- config.json +1 -2
- generation_config.json +8 -0
- pytorch_model.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: facebook/opt-1.3b
|
| 3 |
+
library_name: transformers
|
| 4 |
+
model_name: d41300b6-addf-4fd0-93d5-3f36e58c61f9
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
- axolotl
|
| 8 |
+
- dpo
|
| 9 |
+
- trl
|
| 10 |
+
licence: license
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Model Card for d41300b6-addf-4fd0-93d5-3f36e58c61f9
|
| 14 |
+
|
| 15 |
+
This model is a fine-tuned version of [facebook/opt-1.3b](https://huggingface.co/facebook/opt-1.3b).
|
| 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="JoshMe1/d41300b6-addf-4fd0-93d5-3f36e58c61f9", 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/fareljtm12-uty/Gradients-On-Demand/runs/9p437iw5)
|
| 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:e90b99c9bed89b4f29e6d8365878e62268e29e18e56ebf93172e9cf8fbb10fce
|
| 3 |
+
size 226598154
|
config.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"_attn_implementation_autoset": true,
|
| 3 |
"_name_or_path": "facebook/opt-1.3b",
|
| 4 |
"_remove_final_layer_norm": false,
|
| 5 |
"activation_dropout": 0.0,
|
|
@@ -24,7 +23,7 @@
|
|
| 24 |
"num_hidden_layers": 24,
|
| 25 |
"pad_token_id": 1,
|
| 26 |
"prefix": "</s>",
|
| 27 |
-
"torch_dtype": "
|
| 28 |
"transformers_version": "4.46.0",
|
| 29 |
"use_cache": false,
|
| 30 |
"vocab_size": 50272,
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"_name_or_path": "facebook/opt-1.3b",
|
| 3 |
"_remove_final_layer_norm": false,
|
| 4 |
"activation_dropout": 0.0,
|
|
|
|
| 23 |
"num_hidden_layers": 24,
|
| 24 |
"pad_token_id": 1,
|
| 25 |
"prefix": "</s>",
|
| 26 |
+
"torch_dtype": "bfloat16",
|
| 27 |
"transformers_version": "4.46.0",
|
| 28 |
"use_cache": false,
|
| 29 |
"vocab_size": 50272,
|
generation_config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 2,
|
| 4 |
+
"do_sample": true,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"pad_token_id": 1,
|
| 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:6f87c3737591623bfa627ed3f31ed2d600be2433b540ec16d548387d62bb318c
|
| 3 |
+
size 2858246938
|