Model save
Browse files- README.md +17 -26
- model-00001-of-00002.safetensors +1 -1
- model-00002-of-00002.safetensors +1 -1
- special_tokens_map.json +1 -7
- tokenizer_config.json +1 -5
- training_args.bin +1 -1
README.md
CHANGED
@@ -6,28 +6,30 @@ tags:
|
|
6 |
- generated_from_trainer
|
7 |
- trl
|
8 |
- sft
|
9 |
-
|
10 |
-
datasets:
|
11 |
-
- OpenAssistant/oasst1
|
12 |
---
|
13 |
|
14 |
-
# notHumpback-Myx
|
15 |
|
16 |
-
This model
|
17 |
-
|
18 |
|
19 |
-
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
-
Varying from the original paper, this model is a fine-tuned version of [meta-llama/Llama-3.2-3B](https://huggingface.co/meta-llama/Llama-3.2-3B).
|
27 |
-
It has been trained using [TRL](https://github.com/huggingface/trl).
|
28 |
|
29 |
-
|
30 |
-
|
31 |
|
32 |
### Framework versions
|
33 |
|
@@ -39,18 +41,7 @@ In order to achieve the "backward" structure, the model is trained on output-inp
|
|
39 |
|
40 |
## Citations
|
41 |
|
42 |
-
Original paper:
|
43 |
|
44 |
-
```bibtex
|
45 |
-
@misc{li2023selfalignment,
|
46 |
-
title={Self-Alignment with Instruction Backtranslation},
|
47 |
-
author={Xian Li and Ping Yu and Chunting Zhou and Timo Schick and Luke Zettlemoyer and Omer Levy and Jason Weston and Mike Lewis},
|
48 |
-
year={2023},
|
49 |
-
eprint={2308.06259},
|
50 |
-
archivePrefix={arXiv},
|
51 |
-
primaryClass={cs.CL}
|
52 |
-
}
|
53 |
-
```
|
54 |
|
55 |
Cite TRL as:
|
56 |
|
|
|
6 |
- generated_from_trainer
|
7 |
- trl
|
8 |
- sft
|
9 |
+
licence: license
|
|
|
|
|
10 |
---
|
11 |
|
12 |
+
# Model Card for notHumpback-Myx
|
13 |
|
14 |
+
This model is a fine-tuned version of [meta-llama/Llama-3.2-3B](https://huggingface.co/meta-llama/Llama-3.2-3B).
|
15 |
+
It has been trained using [TRL](https://github.com/huggingface/trl).
|
16 |
|
17 |
+
## Quick start
|
18 |
|
19 |
+
```python
|
20 |
+
from transformers import pipeline
|
21 |
+
|
22 |
+
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?"
|
23 |
+
generator = pipeline("text-generation", model="Alepach/notHumpback-Myx", device="cuda")
|
24 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
25 |
+
print(output["generated_text"])
|
26 |
+
```
|
27 |
+
|
28 |
+
## Training procedure
|
29 |
|
|
|
|
|
30 |
|
31 |
+
|
32 |
+
This model was trained with SFT.
|
33 |
|
34 |
### Framework versions
|
35 |
|
|
|
41 |
|
42 |
## Citations
|
43 |
|
|
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
Cite TRL as:
|
47 |
|
model-00001-of-00002.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4965799096
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:69de60651018900fe91a6663e026a0c4d97c115b56e6147eb2cfbef4615d8fb9
|
3 |
size 4965799096
|
model-00002-of-00002.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1459729952
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7335e946d7197501f57939c4dd520663e0e301bab0bf6faf140a8d59feafd205
|
3 |
size 1459729952
|
special_tokens_map.json
CHANGED
@@ -13,11 +13,5 @@
|
|
13 |
"rstrip": false,
|
14 |
"single_word": false
|
15 |
},
|
16 |
-
"pad_token":
|
17 |
-
"content": "<|finetune_right_pad_id|>",
|
18 |
-
"lstrip": false,
|
19 |
-
"normalized": false,
|
20 |
-
"rstrip": false,
|
21 |
-
"single_word": false
|
22 |
-
}
|
23 |
}
|
|
|
13 |
"rstrip": false,
|
14 |
"single_word": false
|
15 |
},
|
16 |
+
"pad_token": "<|finetune_right_pad_id|>"
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
}
|
tokenizer_config.json
CHANGED
@@ -2053,15 +2053,11 @@
|
|
2053 |
"chat_template": "{{- bos_token }}\n{% set ns = namespace(system_message='') %}\n{%- for message in messages %}\n {%- if message['role'] == 'system' %}\n {% set ns.system_message = message['content'].strip() %}\n {%- elif message['role'] == 'user' %}\n {{- '<|start_header_id|>user<|end_header_id|>' + ns.system_message + '\\n' + message['content'].strip() + '<|eot_id|>' }}\n {%- elif message['role'] == 'assistant' %}\n {{- '<|start_header_id|>assistant<|end_header_id|>' + message['content'] + '<|eot_id|>' }}\n {%- endif %}\n{%- endfor %}\n",
|
2054 |
"clean_up_tokenization_spaces": true,
|
2055 |
"eos_token": "<|end_of_text|>",
|
2056 |
-
"max_length": 131072,
|
2057 |
"model_input_names": [
|
2058 |
"input_ids",
|
2059 |
"attention_mask"
|
2060 |
],
|
2061 |
"model_max_length": 131072,
|
2062 |
"pad_token": "<|finetune_right_pad_id|>",
|
2063 |
-
"
|
2064 |
-
"tokenizer_class": "PreTrainedTokenizerFast",
|
2065 |
-
"truncation_side": "right",
|
2066 |
-
"truncation_strategy": "longest_first"
|
2067 |
}
|
|
|
2053 |
"chat_template": "{{- bos_token }}\n{% set ns = namespace(system_message='') %}\n{%- for message in messages %}\n {%- if message['role'] == 'system' %}\n {% set ns.system_message = message['content'].strip() %}\n {%- elif message['role'] == 'user' %}\n {{- '<|start_header_id|>user<|end_header_id|>' + ns.system_message + '\\n' + message['content'].strip() + '<|eot_id|>' }}\n {%- elif message['role'] == 'assistant' %}\n {{- '<|start_header_id|>assistant<|end_header_id|>' + message['content'] + '<|eot_id|>' }}\n {%- endif %}\n{%- endfor %}\n",
|
2054 |
"clean_up_tokenization_spaces": true,
|
2055 |
"eos_token": "<|end_of_text|>",
|
|
|
2056 |
"model_input_names": [
|
2057 |
"input_ids",
|
2058 |
"attention_mask"
|
2059 |
],
|
2060 |
"model_max_length": 131072,
|
2061 |
"pad_token": "<|finetune_right_pad_id|>",
|
2062 |
+
"tokenizer_class": "PreTrainedTokenizerFast"
|
|
|
|
|
|
|
2063 |
}
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 5560
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:870ae2e32c102e49c08b17791d1b79605cb1e4c2926081ec569d9b43c21d8ccd
|
3 |
size 5560
|