End of training
Browse files- README.md +60 -0
- added_tokens.json +4 -0
- config.json +30 -0
- generation_config.json +7 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- runs/May18_12-56-33_f6f874badb66/events.out.tfevents.1747576894.f6f874badb66.486.0 +3 -0
- runs/May18_14-29-11_f6f874badb66/events.out.tfevents.1747578609.f6f874badb66.28161.0 +3 -0
- special_tokens_map.json +28 -0
- tokenizer.json +0 -0
- tokenizer_config.json +52 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: facebook/opt-350m
|
3 |
+
library_name: transformers
|
4 |
+
model_name: sft_output
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
- smol-course
|
8 |
+
- module_1
|
9 |
+
- trl
|
10 |
+
- sft
|
11 |
+
licence: license
|
12 |
+
---
|
13 |
+
|
14 |
+
# Model Card for sft_output
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [facebook/opt-350m](https://huggingface.co/facebook/opt-350m).
|
17 |
+
It has been trained using [TRL](https://github.com/huggingface/trl).
|
18 |
+
|
19 |
+
## Quick start
|
20 |
+
|
21 |
+
```python
|
22 |
+
from transformers import pipeline
|
23 |
+
|
24 |
+
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?"
|
25 |
+
generator = pipeline("text-generation", model="Yuseifer/sft_output", device="cuda")
|
26 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
27 |
+
print(output["generated_text"])
|
28 |
+
```
|
29 |
+
|
30 |
+
## Training procedure
|
31 |
+
|
32 |
+
[<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/renzo-daniel-kikin-rfc-universidad-polit-cnica-salesiana/huggingface/runs/fweybct6)
|
33 |
+
|
34 |
+
|
35 |
+
This model was trained with SFT.
|
36 |
+
|
37 |
+
### Framework versions
|
38 |
+
|
39 |
+
- TRL: 0.17.0
|
40 |
+
- Transformers: 4.51.3
|
41 |
+
- Pytorch: 2.6.0+cu124
|
42 |
+
- Datasets: 3.6.0
|
43 |
+
- Tokenizers: 0.21.1
|
44 |
+
|
45 |
+
## Citations
|
46 |
+
|
47 |
+
|
48 |
+
|
49 |
+
Cite TRL as:
|
50 |
+
|
51 |
+
```bibtex
|
52 |
+
@misc{vonwerra2022trl,
|
53 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
54 |
+
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{\'e}dec},
|
55 |
+
year = 2020,
|
56 |
+
journal = {GitHub repository},
|
57 |
+
publisher = {GitHub},
|
58 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
59 |
+
}
|
60 |
+
```
|
added_tokens.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<|im_end|>": 50266,
|
3 |
+
"<|im_start|>": 50265
|
4 |
+
}
|
config.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_remove_final_layer_norm": false,
|
3 |
+
"activation_dropout": 0.0,
|
4 |
+
"activation_function": "relu",
|
5 |
+
"architectures": [
|
6 |
+
"OPTForCausalLM"
|
7 |
+
],
|
8 |
+
"attention_dropout": 0.0,
|
9 |
+
"bos_token_id": 50265,
|
10 |
+
"do_layer_norm_before": false,
|
11 |
+
"dropout": 0.1,
|
12 |
+
"enable_bias": true,
|
13 |
+
"eos_token_id": 50266,
|
14 |
+
"ffn_dim": 4096,
|
15 |
+
"hidden_size": 1024,
|
16 |
+
"init_std": 0.02,
|
17 |
+
"layer_norm_elementwise_affine": true,
|
18 |
+
"layerdrop": 0.0,
|
19 |
+
"max_position_embeddings": 2048,
|
20 |
+
"model_type": "opt",
|
21 |
+
"num_attention_heads": 16,
|
22 |
+
"num_hidden_layers": 24,
|
23 |
+
"pad_token_id": 50266,
|
24 |
+
"prefix": "</s>",
|
25 |
+
"torch_dtype": "bfloat16",
|
26 |
+
"transformers_version": "4.51.3",
|
27 |
+
"use_cache": true,
|
28 |
+
"vocab_size": 50267,
|
29 |
+
"word_embed_proj_dim": 512
|
30 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 50265,
|
4 |
+
"eos_token_id": 50266,
|
5 |
+
"pad_token_id": 50266,
|
6 |
+
"transformers_version": "4.51.3"
|
7 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec1d9c6697c1ca06250fd84728d7dafb66038947ef04ef8062bd42eca98f4c08
|
3 |
+
size 662433040
|
runs/May18_12-56-33_f6f874badb66/events.out.tfevents.1747576894.f6f874badb66.486.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9abbdd888087a4d03126913d044b561601307b26c5b0180d65d60700187da17b
|
3 |
+
size 15000
|
runs/May18_14-29-11_f6f874badb66/events.out.tfevents.1747578609.f6f874badb66.28161.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:43f08daa054d6a90a01ded5f3be6d7fc44349bf95299d1150698bdc8ed79bc51
|
3 |
+
size 44267
|
special_tokens_map.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
{
|
4 |
+
"content": "<|im_start|>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false
|
9 |
+
},
|
10 |
+
{
|
11 |
+
"content": "<|im_end|>",
|
12 |
+
"lstrip": false,
|
13 |
+
"normalized": false,
|
14 |
+
"rstrip": false,
|
15 |
+
"single_word": false
|
16 |
+
}
|
17 |
+
],
|
18 |
+
"bos_token": "<|im_start|>",
|
19 |
+
"eos_token": "<|im_end|>",
|
20 |
+
"pad_token": "<|im_end|>",
|
21 |
+
"unk_token": {
|
22 |
+
"content": "</s>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": true,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false
|
27 |
+
}
|
28 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_prefix_space": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"1": {
|
6 |
+
"content": "<pad>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"2": {
|
14 |
+
"content": "</s>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": true,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"50265": {
|
22 |
+
"content": "<|im_start|>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
},
|
29 |
+
"50266": {
|
30 |
+
"content": "<|im_end|>",
|
31 |
+
"lstrip": false,
|
32 |
+
"normalized": false,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false,
|
35 |
+
"special": true
|
36 |
+
}
|
37 |
+
},
|
38 |
+
"additional_special_tokens": [
|
39 |
+
"<|im_start|>",
|
40 |
+
"<|im_end|>"
|
41 |
+
],
|
42 |
+
"bos_token": "<|im_start|>",
|
43 |
+
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
44 |
+
"clean_up_tokenization_spaces": false,
|
45 |
+
"eos_token": "<|im_end|>",
|
46 |
+
"errors": "replace",
|
47 |
+
"extra_special_tokens": {},
|
48 |
+
"model_max_length": 1000000000000000019884624838656,
|
49 |
+
"pad_token": "<|im_end|>",
|
50 |
+
"tokenizer_class": "GPT2Tokenizer",
|
51 |
+
"unk_token": "</s>"
|
52 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:05dcc3ea1814ec370dc83339317a593dbb6dc9af1f106de7b70f45ae4623aaeb
|
3 |
+
size 5624
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|