Model save
Browse files- README.md +6 -6
- generation_config.json +2 -3
README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
---
|
2 |
-
base_model: HuggingFaceTB/SmolLM2-135M
|
3 |
library_name: transformers
|
4 |
-
model_name: SmolLM2-135M-
|
5 |
tags:
|
6 |
- generated_from_trainer
|
7 |
- trl
|
@@ -9,9 +9,9 @@ tags:
|
|
9 |
licence: license
|
10 |
---
|
11 |
|
12 |
-
# Model Card for SmolLM2-135M-
|
13 |
|
14 |
-
This model is a fine-tuned version of [HuggingFaceTB/SmolLM2-135M
|
15 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
16 |
|
17 |
## Quick start
|
@@ -20,14 +20,14 @@ It has been trained using [TRL](https://github.com/huggingface/trl).
|
|
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-
|
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/
|
31 |
|
32 |
This model was trained with SFT.
|
33 |
|
|
|
1 |
---
|
2 |
+
base_model: HuggingFaceTB/SmolLM2-135M
|
3 |
library_name: transformers
|
4 |
+
model_name: SmolLM2-135M-tldr-sft
|
5 |
tags:
|
6 |
- generated_from_trainer
|
7 |
- trl
|
|
|
9 |
licence: license
|
10 |
---
|
11 |
|
12 |
+
# Model Card for SmolLM2-135M-tldr-sft
|
13 |
|
14 |
+
This model is a fine-tuned version of [HuggingFaceTB/SmolLM2-135M](https://huggingface.co/HuggingFaceTB/SmolLM2-135M).
|
15 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
16 |
|
17 |
## Quick start
|
|
|
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-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/5586883_sft_smol135m)
|
31 |
|
32 |
This model was trained with SFT.
|
33 |
|
generation_config.json
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
{
|
2 |
"_from_model_config": true,
|
3 |
-
"bos_token_id":
|
4 |
-
"eos_token_id":
|
5 |
-
"pad_token_id": 2,
|
6 |
"transformers_version": "4.46.2"
|
7 |
}
|
|
|
1 |
{
|
2 |
"_from_model_config": true,
|
3 |
+
"bos_token_id": 0,
|
4 |
+
"eos_token_id": 0,
|
|
|
5 |
"transformers_version": "4.46.2"
|
6 |
}
|