mnoukhov commited on
Commit
c2a4cba
1 Parent(s): 1f44fb6

Model save

Browse files
Files changed (2) hide show
  1. README.md +37 -44
  2. generation_config.json +1 -1
README.md CHANGED
@@ -1,64 +1,57 @@
1
  ---
2
- license: apache-2.0
3
  base_model: HuggingFaceTB/SmolLM2-135M-Instruct
 
 
4
  tags:
 
5
  - trl
6
  - sft
7
- - generated_from_trainer
8
- model-index:
9
- - name: SmolLM2-135M-Instruct_tldr-sft
10
- results: []
11
  ---
12
 
13
- <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
- should probably proofread and complete it, then remove this comment. -->
15
-
16
- # SmolLM2-135M-Instruct_tldr-sft
17
-
18
- This model is a fine-tuned version of [HuggingFaceTB/SmolLM2-135M-Instruct](https://huggingface.co/HuggingFaceTB/SmolLM2-135M-Instruct) on an unknown dataset.
19
- It achieves the following results on the evaluation set:
20
- - Loss: 2.4363
21
-
22
- ## Model description
23
 
24
- More information needed
 
25
 
26
- ## Intended uses & limitations
27
 
28
- More information needed
 
29
 
30
- ## Training and evaluation data
31
-
32
- More information needed
 
 
33
 
34
  ## Training procedure
35
 
36
- ### Training hyperparameters
 
 
37
 
38
- The following hyperparameters were used during training:
39
- - learning_rate: 1e-05
40
- - train_batch_size: 8
41
- - eval_batch_size: 8
42
- - seed: 42
43
- - gradient_accumulation_steps: 4
44
- - total_train_batch_size: 32
45
- - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
46
- - lr_scheduler_type: cosine
47
- - num_epochs: 1
48
 
49
- ### Training results
 
 
 
 
50
 
51
- | Training Loss | Epoch | Step | Validation Loss |
52
- |:-------------:|:-----:|:----:|:---------------:|
53
- | 2.4812 | 0.2 | 730 | 2.4774 |
54
- | 2.4521 | 0.4 | 1460 | 2.4518 |
55
- | 2.4463 | 0.6 | 2190 | 2.4405 |
56
- | 2.4265 | 0.8 | 2920 | 2.4363 |
57
 
58
 
59
- ### Framework versions
60
 
61
- - Transformers 4.37.2
62
- - Pytorch 2.2.0+cu121
63
- - Datasets 2.17.1
64
- - Tokenizers 0.15.2
 
 
 
 
 
 
 
 
 
1
  ---
 
2
  base_model: HuggingFaceTB/SmolLM2-135M-Instruct
3
+ library_name: transformers
4
+ model_name: SmolLM2-135M-Instruct_tldr-sft
5
  tags:
6
+ - generated_from_trainer
7
  - trl
8
  - sft
9
+ licence: license
 
 
 
10
  ---
11
 
12
+ # Model Card for SmolLM2-135M-Instruct_tldr-sft
 
 
 
 
 
 
 
 
 
13
 
14
+ This model is a fine-tuned version of [HuggingFaceTB/SmolLM2-135M-Instruct](https://huggingface.co/HuggingFaceTB/SmolLM2-135M-Instruct).
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="mnoukhov/SmolLM2-135M-Instruct_tldr-sft", 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
+ [<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/mnoukhov/bpo/runs/5586569_sft_smol135m)
31
+
32
+ This model was trained with SFT.
33
 
34
+ ### Framework versions
 
 
 
 
 
 
 
 
 
35
 
36
+ - TRL: 0.12.0
37
+ - Transformers: 4.46.2
38
+ - Pytorch: 2.5.1
39
+ - Datasets: 3.1.0
40
+ - Tokenizers: 0.20.3
41
 
42
+ ## Citations
 
 
 
 
 
43
 
44
 
 
45
 
46
+ Cite TRL as:
47
+
48
+ ```bibtex
49
+ @misc{vonwerra2022trl,
50
+ title = {{TRL: Transformer Reinforcement Learning}},
51
+ 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},
52
+ year = 2020,
53
+ journal = {GitHub repository},
54
+ publisher = {GitHub},
55
+ howpublished = {\url{https://github.com/huggingface/trl}}
56
+ }
57
+ ```
generation_config.json CHANGED
@@ -3,5 +3,5 @@
3
  "bos_token_id": 1,
4
  "eos_token_id": 2,
5
  "pad_token_id": 2,
6
- "transformers_version": "4.37.2"
7
  }
 
3
  "bos_token_id": 1,
4
  "eos_token_id": 2,
5
  "pad_token_id": 2,
6
+ "transformers_version": "4.46.2"
7
  }