Model save
Browse files- README.md +58 -0
- tokenizer_config.json +1 -1
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: unsloth/gemma-2-2b-bnb-4bit
|
3 |
+
library_name: transformers
|
4 |
+
model_name: ppdoor-finetuned-L38b-1126
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
- unsloth
|
8 |
+
- trl
|
9 |
+
- sft
|
10 |
+
licence: license
|
11 |
+
---
|
12 |
+
|
13 |
+
# Model Card for ppdoor-finetuned-L38b-1126
|
14 |
+
|
15 |
+
This model is a fine-tuned version of [unsloth/gemma-2-2b-bnb-4bit](https://huggingface.co/unsloth/gemma-2-2b-bnb-4bit).
|
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="hoonikoo/ppdoor-finetuned-L38b-1126", 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 |
+
|
32 |
+
|
33 |
+
This model was trained with SFT.
|
34 |
+
|
35 |
+
### Framework versions
|
36 |
+
|
37 |
+
- TRL: 0.12.1
|
38 |
+
- Transformers: 4.46.3
|
39 |
+
- Pytorch: 2.5.1
|
40 |
+
- Datasets: 3.1.0
|
41 |
+
- Tokenizers: 0.20.3
|
42 |
+
|
43 |
+
## Citations
|
44 |
+
|
45 |
+
|
46 |
+
|
47 |
+
Cite TRL as:
|
48 |
+
|
49 |
+
```bibtex
|
50 |
+
@misc{vonwerra2022trl,
|
51 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
52 |
+
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},
|
53 |
+
year = 2020,
|
54 |
+
journal = {GitHub repository},
|
55 |
+
publisher = {GitHub},
|
56 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
57 |
+
}
|
58 |
+
```
|
tokenizer_config.json
CHANGED
@@ -2004,7 +2004,7 @@
|
|
2004 |
"eos_token": "<eos>",
|
2005 |
"model_max_length": 8192,
|
2006 |
"pad_token": "<pad>",
|
2007 |
-
"padding_side": "
|
2008 |
"sp_model_kwargs": {},
|
2009 |
"spaces_between_special_tokens": false,
|
2010 |
"tokenizer_class": "GemmaTokenizer",
|
|
|
2004 |
"eos_token": "<eos>",
|
2005 |
"model_max_length": 8192,
|
2006 |
"pad_token": "<pad>",
|
2007 |
+
"padding_side": "left",
|
2008 |
"sp_model_kwargs": {},
|
2009 |
"spaces_between_special_tokens": false,
|
2010 |
"tokenizer_class": "GemmaTokenizer",
|