eantropix commited on
Commit
61c26f4
·
verified ·
1 Parent(s): d2c40d7

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. gemma-news-lora-r16-d01-e1/README.md +58 -0
  2. gemma-news-lora-r16-d01-e1/adapter_config.json +40 -0
  3. gemma-news-lora-r16-d01-e1/added_tokens.json +3 -0
  4. gemma-news-lora-r16-d01-e1/special_tokens_map.json +33 -0
  5. gemma-news-lora-r16-d01-e1/train_log.json +1 -0
  6. gemma-news-lora-r16-d01-e3/README.md +58 -0
  7. gemma-news-lora-r16-d01-e3/adapter_config.json +40 -0
  8. gemma-news-lora-r16-d01-e3/added_tokens.json +3 -0
  9. gemma-news-lora-r16-d01-e3/special_tokens_map.json +33 -0
  10. gemma-news-lora-r16-d01-e3/tokenizer_config.json +0 -0
  11. gemma-news-lora-r16-d01-e3/train_log.json +1 -0
  12. gemma-news-lora-r16-d10-e1/README.md +58 -0
  13. gemma-news-lora-r16-d10-e1/adapter_config.json +40 -0
  14. gemma-news-lora-r16-d10-e1/added_tokens.json +3 -0
  15. gemma-news-lora-r16-d10-e1/special_tokens_map.json +33 -0
  16. gemma-news-lora-r16-d10-e1/tokenizer_config.json +0 -0
  17. gemma-news-lora-r16-d10-e1/train_log.json +1 -0
  18. gemma-news-lora-r16-d10-e2/README.md +58 -0
  19. gemma-news-lora-r16-d10-e2/adapter_config.json +40 -0
  20. gemma-news-lora-r16-d10-e2/added_tokens.json +3 -0
  21. gemma-news-lora-r16-d10-e2/special_tokens_map.json +33 -0
  22. gemma-news-lora-r16-d10-e2/tokenizer_config.json +0 -0
  23. gemma-news-lora-r16-d10-e2/train_log.json +1 -0
  24. gemma-news-lora-r16-d10-e3/README.md +58 -0
  25. gemma-news-lora-r16-d10-e3/added_tokens.json +3 -0
  26. gemma-news-lora-r16-d10-e3/special_tokens_map.json +33 -0
  27. gemma-news-lora-r16-d10-e3/tokenizer_config.json +0 -0
  28. gemma-news-lora-r32-d01-e1/README.md +58 -0
  29. gemma-news-lora-r32-d01-e1/adapter_config.json +40 -0
  30. gemma-news-lora-r32-d01-e1/added_tokens.json +3 -0
  31. gemma-news-lora-r32-d01-e1/special_tokens_map.json +33 -0
  32. gemma-news-lora-r32-d01-e1/tokenizer_config.json +0 -0
  33. gemma-news-lora-r32-d01-e1/train_log.json +1 -0
  34. gemma-news-lora-r32-d01-e2/README.md +58 -0
  35. gemma-news-lora-r32-d01-e2/adapter_config.json +40 -0
  36. gemma-news-lora-r32-d01-e2/added_tokens.json +3 -0
  37. gemma-news-lora-r32-d01-e2/special_tokens_map.json +33 -0
  38. gemma-news-lora-r32-d01-e2/tokenizer_config.json +0 -0
  39. gemma-news-lora-r32-d01-e2/train_log.json +1 -0
  40. gemma-news-lora-r32-d05-e1/README.md +58 -0
  41. gemma-news-lora-r32-d05-e1/adapter_config.json +40 -0
  42. gemma-news-lora-r32-d05-e1/added_tokens.json +3 -0
  43. gemma-news-lora-r32-d05-e1/special_tokens_map.json +33 -0
  44. gemma-news-lora-r32-d05-e1/tokenizer_config.json +0 -0
  45. gemma-news-lora-r32-d05-e1/train_log.json +1 -0
  46. gemma-news-lora-r32-d10-e1/README.md +58 -0
  47. gemma-news-lora-r32-d10-e1/adapter_config.json +40 -0
  48. gemma-news-lora-r32-d10-e1/added_tokens.json +3 -0
  49. gemma-news-lora-r32-d10-e1/special_tokens_map.json +33 -0
  50. gemma-news-lora-r32-d10-e1/tokenizer_config.json +0 -0
gemma-news-lora-r16-d01-e1/README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: google/gemma-3-1b-pt
3
+ library_name: transformers
4
+ model_name: gemma-news-lora-r16-d01-e1
5
+ tags:
6
+ - generated_from_trainer
7
+ - sft
8
+ - trl
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for gemma-news-lora-r16-d01-e1
13
+
14
+ This model is a fine-tuned version of [google/gemma-3-1b-pt](https://huggingface.co/google/gemma-3-1b-pt).
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="eantropix/gemma-news-lora-r16-d01-e1", 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
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.21.0
38
+ - Transformers: 4.57.0
39
+ - Pytorch: 2.8.0
40
+ - Datasets: 3.3.2
41
+ - Tokenizers: 0.22.1
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{\'e}dec},
53
+ year = 2020,
54
+ journal = {GitHub repository},
55
+ publisher = {GitHub},
56
+ howpublished = {\url{https://github.com/huggingface/trl}}
57
+ }
58
+ ```
gemma-news-lora-r16-d01-e1/adapter_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "google/gemma-3-1b-pt",
5
+ "bias": "none",
6
+ "eva_config": null,
7
+ "exclude_modules": null,
8
+ "fan_in_fan_out": false,
9
+ "inference_mode": true,
10
+ "init_lora_weights": true,
11
+ "layer_replication": null,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "loftq_config": {},
15
+ "lora_alpha": 16,
16
+ "lora_bias": false,
17
+ "lora_dropout": 0.01,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": [
21
+ "lm_head",
22
+ "embed_tokens"
23
+ ],
24
+ "peft_type": "LORA",
25
+ "r": 16,
26
+ "rank_pattern": {},
27
+ "revision": null,
28
+ "target_modules": [
29
+ "k_proj",
30
+ "q_proj",
31
+ "o_proj",
32
+ "up_proj",
33
+ "gate_proj",
34
+ "down_proj",
35
+ "v_proj"
36
+ ],
37
+ "task_type": "CAUSAL_LM",
38
+ "use_dora": false,
39
+ "use_rslora": false
40
+ }
gemma-news-lora-r16-d01-e1/added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
gemma-news-lora-r16-d01-e1/special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "boi_token": "<start_of_image>",
3
+ "bos_token": {
4
+ "content": "<bos>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "eoi_token": "<end_of_image>",
11
+ "eos_token": {
12
+ "content": "<eos>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "image_token": "<image_soft_token>",
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
gemma-news-lora-r16-d01-e1/train_log.json ADDED
@@ -0,0 +1 @@
 
 
1
+ [{"loss": 2.5261, "grad_norm": 1.8398398160934448, "learning_rate": 0.0002, "num_tokens": 3807.0, "mean_token_accuracy": 0.4527951776981354, "epoch": 0.0017613386173491853, "step": 1}, {"eval_loss": 2.469557046890259, "eval_runtime": 31.3133, "eval_samples_per_second": 8.303, "eval_steps_per_second": 8.303, "eval_num_tokens": 213783.0, "eval_mean_token_accuracy": 0.46358477977605966, "epoch": 0.10039630118890357, "step": 57}, {"eval_loss": 2.4587299823760986, "eval_runtime": 31.2946, "eval_samples_per_second": 8.308, "eval_steps_per_second": 8.308, "eval_num_tokens": 424054.0, "eval_mean_token_accuracy": 0.4645700747003922, "epoch": 0.20079260237780713, "step": 114}, {"eval_loss": 2.4495887756347656, "eval_runtime": 31.3402, "eval_samples_per_second": 8.296, "eval_steps_per_second": 8.296, "eval_num_tokens": 633043.0, "eval_mean_token_accuracy": 0.46505820682415594, "epoch": 0.3011889035667107, "step": 171}, {"loss": 2.4516, "grad_norm": 1.2952696084976196, "learning_rate": 0.0002, "num_tokens": 738884.0, "mean_token_accuracy": 0.46565785584737307, "epoch": 0.3522677234698371, "step": 200}, {"eval_loss": 2.446539878845215, "eval_runtime": 31.3121, "eval_samples_per_second": 8.303, "eval_steps_per_second": 8.303, "eval_num_tokens": 839084.0, "eval_mean_token_accuracy": 0.4657898877675717, "epoch": 0.40158520475561427, "step": 228}, {"eval_loss": 2.439910411834717, "eval_runtime": 31.3039, "eval_samples_per_second": 8.306, "eval_steps_per_second": 8.306, "eval_num_tokens": 1049460.0, "eval_mean_token_accuracy": 0.4673088014125824, "epoch": 0.5019815059445178, "step": 285}, {"eval_loss": 2.4333243370056152, "eval_runtime": 31.2722, "eval_samples_per_second": 8.314, "eval_steps_per_second": 8.314, "eval_num_tokens": 1262092.0, "eval_mean_token_accuracy": 0.467587007352939, "epoch": 0.6023778071334214, "step": 342}, {"eval_loss": 2.430574655532837, "eval_runtime": 31.3308, "eval_samples_per_second": 8.299, "eval_steps_per_second": 8.299, "eval_num_tokens": 1470942.0, "eval_mean_token_accuracy": 0.46813850551843644, "epoch": 0.702774108322325, "step": 399}, {"loss": 2.4253, "grad_norm": 1.3123208284378052, "learning_rate": 0.0002, "num_tokens": 1474663.0, "mean_token_accuracy": 0.4698584023863077, "epoch": 0.7045354469396742, "step": 400}, {"eval_loss": 2.4252285957336426, "eval_runtime": 31.331, "eval_samples_per_second": 8.298, "eval_steps_per_second": 8.298, "eval_num_tokens": 1681400.0, "eval_mean_token_accuracy": 0.468848608319576, "epoch": 0.8031704095112285, "step": 456}, {"eval_loss": 2.422339916229248, "eval_runtime": 31.2445, "eval_samples_per_second": 8.321, "eval_steps_per_second": 8.321, "eval_num_tokens": 1888559.0, "eval_mean_token_accuracy": 0.4691058503893705, "epoch": 0.9035667107001321, "step": 513}, {"train_runtime": 1223.8802, "train_samples_per_second": 1.856, "train_steps_per_second": 0.464, "total_flos": 1.2714756435523584e+16, "train_loss": 2.4319702945124937, "num_tokens": 2092072.0, "mean_token_accuracy": 0.4687774204905804, "epoch": 1.0, "step": 568}]
gemma-news-lora-r16-d01-e3/README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: google/gemma-3-1b-pt
3
+ library_name: transformers
4
+ model_name: gemma-news-lora-r16-d01-e3
5
+ tags:
6
+ - generated_from_trainer
7
+ - sft
8
+ - trl
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for gemma-news-lora-r16-d01-e3
13
+
14
+ This model is a fine-tuned version of [google/gemma-3-1b-pt](https://huggingface.co/google/gemma-3-1b-pt).
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="eantropix/gemma-news-lora-r16-d01-e3", 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
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.21.0
38
+ - Transformers: 4.57.0
39
+ - Pytorch: 2.8.0
40
+ - Datasets: 3.3.2
41
+ - Tokenizers: 0.22.1
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{\'e}dec},
53
+ year = 2020,
54
+ journal = {GitHub repository},
55
+ publisher = {GitHub},
56
+ howpublished = {\url{https://github.com/huggingface/trl}}
57
+ }
58
+ ```
gemma-news-lora-r16-d01-e3/adapter_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "google/gemma-3-1b-pt",
5
+ "bias": "none",
6
+ "eva_config": null,
7
+ "exclude_modules": null,
8
+ "fan_in_fan_out": false,
9
+ "inference_mode": true,
10
+ "init_lora_weights": true,
11
+ "layer_replication": null,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "loftq_config": {},
15
+ "lora_alpha": 16,
16
+ "lora_bias": false,
17
+ "lora_dropout": 0.01,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": [
21
+ "lm_head",
22
+ "embed_tokens"
23
+ ],
24
+ "peft_type": "LORA",
25
+ "r": 16,
26
+ "rank_pattern": {},
27
+ "revision": null,
28
+ "target_modules": [
29
+ "k_proj",
30
+ "q_proj",
31
+ "o_proj",
32
+ "up_proj",
33
+ "gate_proj",
34
+ "down_proj",
35
+ "v_proj"
36
+ ],
37
+ "task_type": "CAUSAL_LM",
38
+ "use_dora": false,
39
+ "use_rslora": false
40
+ }
gemma-news-lora-r16-d01-e3/added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
gemma-news-lora-r16-d01-e3/special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "boi_token": "<start_of_image>",
3
+ "bos_token": {
4
+ "content": "<bos>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "eoi_token": "<end_of_image>",
11
+ "eos_token": {
12
+ "content": "<eos>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "image_token": "<image_soft_token>",
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
gemma-news-lora-r16-d01-e3/tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
gemma-news-lora-r16-d01-e3/train_log.json ADDED
@@ -0,0 +1 @@
 
 
1
+ [{"loss": 2.5261, "grad_norm": 1.8396199941635132, "learning_rate": 0.0002, "num_tokens": 3807.0, "mean_token_accuracy": 0.4527951776981354, "epoch": 0.0017613386173491853, "step": 1}, {"eval_loss": 2.4492526054382324, "eval_runtime": 31.3404, "eval_samples_per_second": 8.296, "eval_steps_per_second": 8.296, "eval_num_tokens": 633043.0, "eval_mean_token_accuracy": 0.46532110113364, "epoch": 0.3011889035667107, "step": 171}, {"loss": 2.4515, "grad_norm": 1.294062852859497, "learning_rate": 0.0002, "num_tokens": 738884.0, "mean_token_accuracy": 0.46559742445023217, "epoch": 0.3522677234698371, "step": 200}, {"eval_loss": 2.433478832244873, "eval_runtime": 31.3295, "eval_samples_per_second": 8.299, "eval_steps_per_second": 8.299, "eval_num_tokens": 1262092.0, "eval_mean_token_accuracy": 0.46713418421837, "epoch": 0.6023778071334214, "step": 342}, {"loss": 2.4252, "grad_norm": 1.3015958070755005, "learning_rate": 0.0002, "num_tokens": 1474663.0, "mean_token_accuracy": 0.4698793749883771, "epoch": 0.7045354469396742, "step": 400}, {"eval_loss": 2.4222350120544434, "eval_runtime": 31.3455, "eval_samples_per_second": 8.295, "eval_steps_per_second": 8.295, "eval_num_tokens": 1888559.0, "eval_mean_token_accuracy": 0.4686578950056663, "epoch": 0.9035667107001321, "step": 513}, {"loss": 2.3569, "grad_norm": 1.6522518396377563, "learning_rate": 0.0002, "num_tokens": 2211854.0, "mean_token_accuracy": 0.4762532516698515, "epoch": 1.056362835755174, "step": 600}, {"eval_loss": 2.4855830669403076, "eval_runtime": 31.2726, "eval_samples_per_second": 8.314, "eval_steps_per_second": 8.314, "eval_num_tokens": 2522674.0, "eval_mean_token_accuracy": 0.4654749639905416, "epoch": 1.2043152796125054, "step": 684}, {"loss": 2.0001, "grad_norm": 1.6768758296966553, "learning_rate": 0.0002, "num_tokens": 2951127.0, "mean_token_accuracy": 0.5257523125037551, "epoch": 1.408630559225011, "step": 800}, {"eval_loss": 2.484173536300659, "eval_runtime": 31.3633, "eval_samples_per_second": 8.29, "eval_steps_per_second": 8.29, "eval_num_tokens": 3153621.0, "eval_mean_token_accuracy": 0.4656292547400181, "epoch": 1.5055041831792162, "step": 855}, {"loss": 2.0201, "grad_norm": 1.7738451957702637, "learning_rate": 0.0002, "num_tokens": 3686897.0, "mean_token_accuracy": 0.5216293501853942, "epoch": 1.760898282694848, "step": 1000}, {"eval_loss": 2.485368490219116, "eval_runtime": 31.2697, "eval_samples_per_second": 8.315, "eval_steps_per_second": 8.315, "eval_num_tokens": 3783054.0, "eval_mean_token_accuracy": 0.46692262498232034, "epoch": 1.806693086745927, "step": 1026}, {"eval_loss": 2.634364604949951, "eval_runtime": 31.3509, "eval_samples_per_second": 8.293, "eval_steps_per_second": 8.293, "eval_num_tokens": 4411369.0, "eval_mean_token_accuracy": 0.4595049696472975, "epoch": 2.1074416556583, "step": 1197}, {"loss": 1.9118, "grad_norm": 1.7506604194641113, "learning_rate": 0.0002, "num_tokens": 4421680.0, "mean_token_accuracy": 0.541540682427725, "epoch": 2.112725671510348, "step": 1200}, {"eval_loss": 2.65521502494812, "eval_runtime": 31.3021, "eval_samples_per_second": 8.306, "eval_steps_per_second": 8.306, "eval_num_tokens": 5042684.0, "eval_mean_token_accuracy": 0.4585533526081305, "epoch": 2.408630559225011, "step": 1368}, {"loss": 1.6605, "grad_norm": 2.1840672492980957, "learning_rate": 0.0002, "num_tokens": 5161656.0, "mean_token_accuracy": 0.5846968090906739, "epoch": 2.4649933949801848, "step": 1400}, {"eval_loss": 2.6670801639556885, "eval_runtime": 31.361, "eval_samples_per_second": 8.291, "eval_steps_per_second": 8.291, "eval_num_tokens": 5672906.0, "eval_mean_token_accuracy": 0.4591874285386159, "epoch": 2.709819462791722, "step": 1539}, {"loss": 1.6771, "grad_norm": 1.7317787408828735, "learning_rate": 0.0002, "num_tokens": 5895918.0, "mean_token_accuracy": 0.5803278404474258, "epoch": 2.817261118450022, "step": 1600}, {"train_runtime": 3116.3894, "train_samples_per_second": 2.186, "train_steps_per_second": 0.547, "total_flos": 3.814426930657075e+16, "train_loss": 2.0402418751392006, "num_tokens": 6276216.0, "mean_token_accuracy": 0.5776252774589034, "epoch": 3.0, "step": 1704}]
gemma-news-lora-r16-d10-e1/README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: google/gemma-3-1b-pt
3
+ library_name: transformers
4
+ model_name: gemma-news-lora-r16-d10-e1
5
+ tags:
6
+ - generated_from_trainer
7
+ - sft
8
+ - trl
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for gemma-news-lora-r16-d10-e1
13
+
14
+ This model is a fine-tuned version of [google/gemma-3-1b-pt](https://huggingface.co/google/gemma-3-1b-pt).
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="eantropix/gemma-news-lora-r16-d10-e1", 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
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.21.0
38
+ - Transformers: 4.57.0
39
+ - Pytorch: 2.8.0
40
+ - Datasets: 3.3.2
41
+ - Tokenizers: 0.22.1
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{\'e}dec},
53
+ year = 2020,
54
+ journal = {GitHub repository},
55
+ publisher = {GitHub},
56
+ howpublished = {\url{https://github.com/huggingface/trl}}
57
+ }
58
+ ```
gemma-news-lora-r16-d10-e1/adapter_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "google/gemma-3-1b-pt",
5
+ "bias": "none",
6
+ "eva_config": null,
7
+ "exclude_modules": null,
8
+ "fan_in_fan_out": false,
9
+ "inference_mode": true,
10
+ "init_lora_weights": true,
11
+ "layer_replication": null,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "loftq_config": {},
15
+ "lora_alpha": 16,
16
+ "lora_bias": false,
17
+ "lora_dropout": 0.1,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": [
21
+ "lm_head",
22
+ "embed_tokens"
23
+ ],
24
+ "peft_type": "LORA",
25
+ "r": 16,
26
+ "rank_pattern": {},
27
+ "revision": null,
28
+ "target_modules": [
29
+ "k_proj",
30
+ "q_proj",
31
+ "o_proj",
32
+ "up_proj",
33
+ "gate_proj",
34
+ "down_proj",
35
+ "v_proj"
36
+ ],
37
+ "task_type": "CAUSAL_LM",
38
+ "use_dora": false,
39
+ "use_rslora": false
40
+ }
gemma-news-lora-r16-d10-e1/added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
gemma-news-lora-r16-d10-e1/special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "boi_token": "<start_of_image>",
3
+ "bos_token": {
4
+ "content": "<bos>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "eoi_token": "<end_of_image>",
11
+ "eos_token": {
12
+ "content": "<eos>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "image_token": "<image_soft_token>",
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
gemma-news-lora-r16-d10-e1/tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
gemma-news-lora-r16-d10-e1/train_log.json ADDED
@@ -0,0 +1 @@
 
 
1
+ [{"loss": 2.5261, "grad_norm": 1.8409711122512817, "learning_rate": 0.0002, "num_tokens": 3807.0, "mean_token_accuracy": 0.4527951776981354, "epoch": 0.0017613386173491853, "step": 1}, {"eval_loss": 2.4706270694732666, "eval_runtime": 31.3489, "eval_samples_per_second": 8.294, "eval_steps_per_second": 8.294, "eval_num_tokens": 213783.0, "eval_mean_token_accuracy": 0.4633104043511244, "epoch": 0.10039630118890357, "step": 57}, {"eval_loss": 2.459721088409424, "eval_runtime": 31.3247, "eval_samples_per_second": 8.3, "eval_steps_per_second": 8.3, "eval_num_tokens": 424054.0, "eval_mean_token_accuracy": 0.4643204145706617, "epoch": 0.20079260237780713, "step": 114}, {"eval_loss": 2.449916362762451, "eval_runtime": 31.2878, "eval_samples_per_second": 8.31, "eval_steps_per_second": 8.31, "eval_num_tokens": 633043.0, "eval_mean_token_accuracy": 0.4653949150672326, "epoch": 0.3011889035667107, "step": 171}, {"loss": 2.4526, "grad_norm": 1.2968326807022095, "learning_rate": 0.0002, "num_tokens": 738884.0, "mean_token_accuracy": 0.46542294233588116, "epoch": 0.3522677234698371, "step": 200}, {"eval_loss": 2.4466018676757812, "eval_runtime": 31.3433, "eval_samples_per_second": 8.295, "eval_steps_per_second": 8.295, "eval_num_tokens": 839084.0, "eval_mean_token_accuracy": 0.46564677586922276, "epoch": 0.40158520475561427, "step": 228}, {"eval_loss": 2.439826488494873, "eval_runtime": 31.3298, "eval_samples_per_second": 8.299, "eval_steps_per_second": 8.299, "eval_num_tokens": 1049460.0, "eval_mean_token_accuracy": 0.46772575768140645, "epoch": 0.5019815059445178, "step": 285}, {"eval_loss": 2.433533191680908, "eval_runtime": 31.2505, "eval_samples_per_second": 8.32, "eval_steps_per_second": 8.32, "eval_num_tokens": 1262092.0, "eval_mean_token_accuracy": 0.46746023595333097, "epoch": 0.6023778071334214, "step": 342}, {"eval_loss": 2.430650234222412, "eval_runtime": 31.3541, "eval_samples_per_second": 8.292, "eval_steps_per_second": 8.292, "eval_num_tokens": 1470942.0, "eval_mean_token_accuracy": 0.4678957535670354, "epoch": 0.702774108322325, "step": 399}, {"loss": 2.4259, "grad_norm": 1.3111469745635986, "learning_rate": 0.0002, "num_tokens": 1474663.0, "mean_token_accuracy": 0.46973775152117014, "epoch": 0.7045354469396742, "step": 400}, {"eval_loss": 2.4251205921173096, "eval_runtime": 31.3257, "eval_samples_per_second": 8.3, "eval_steps_per_second": 8.3, "eval_num_tokens": 1681400.0, "eval_mean_token_accuracy": 0.46876188814640046, "epoch": 0.8031704095112285, "step": 456}, {"eval_loss": 2.4222216606140137, "eval_runtime": 31.3064, "eval_samples_per_second": 8.305, "eval_steps_per_second": 8.305, "eval_num_tokens": 1888559.0, "eval_mean_token_accuracy": 0.46895702538581996, "epoch": 0.9035667107001321, "step": 513}, {"train_runtime": 1225.0015, "train_samples_per_second": 1.854, "train_steps_per_second": 0.464, "total_flos": 1.2714756435523584e+16, "train_loss": 2.432709217491284, "num_tokens": 2092072.0, "mean_token_accuracy": 0.46852871060549056, "epoch": 1.0, "step": 568}]
gemma-news-lora-r16-d10-e2/README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: google/gemma-3-1b-pt
3
+ library_name: transformers
4
+ model_name: gemma-news-lora-r16-d10-e2
5
+ tags:
6
+ - generated_from_trainer
7
+ - sft
8
+ - trl
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for gemma-news-lora-r16-d10-e2
13
+
14
+ This model is a fine-tuned version of [google/gemma-3-1b-pt](https://huggingface.co/google/gemma-3-1b-pt).
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="eantropix/gemma-news-lora-r16-d10-e2", 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
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.21.0
38
+ - Transformers: 4.57.0
39
+ - Pytorch: 2.8.0
40
+ - Datasets: 3.3.2
41
+ - Tokenizers: 0.22.1
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{\'e}dec},
53
+ year = 2020,
54
+ journal = {GitHub repository},
55
+ publisher = {GitHub},
56
+ howpublished = {\url{https://github.com/huggingface/trl}}
57
+ }
58
+ ```
gemma-news-lora-r16-d10-e2/adapter_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "google/gemma-3-1b-pt",
5
+ "bias": "none",
6
+ "eva_config": null,
7
+ "exclude_modules": null,
8
+ "fan_in_fan_out": false,
9
+ "inference_mode": true,
10
+ "init_lora_weights": true,
11
+ "layer_replication": null,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "loftq_config": {},
15
+ "lora_alpha": 16,
16
+ "lora_bias": false,
17
+ "lora_dropout": 0.1,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": [
21
+ "lm_head",
22
+ "embed_tokens"
23
+ ],
24
+ "peft_type": "LORA",
25
+ "r": 16,
26
+ "rank_pattern": {},
27
+ "revision": null,
28
+ "target_modules": [
29
+ "k_proj",
30
+ "q_proj",
31
+ "o_proj",
32
+ "up_proj",
33
+ "gate_proj",
34
+ "down_proj",
35
+ "v_proj"
36
+ ],
37
+ "task_type": "CAUSAL_LM",
38
+ "use_dora": false,
39
+ "use_rslora": false
40
+ }
gemma-news-lora-r16-d10-e2/added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
gemma-news-lora-r16-d10-e2/special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "boi_token": "<start_of_image>",
3
+ "bos_token": {
4
+ "content": "<bos>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "eoi_token": "<end_of_image>",
11
+ "eos_token": {
12
+ "content": "<eos>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "image_token": "<image_soft_token>",
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
gemma-news-lora-r16-d10-e2/tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
gemma-news-lora-r16-d10-e2/train_log.json ADDED
@@ -0,0 +1 @@
 
 
1
+ [{"loss": 2.5261, "grad_norm": 1.8408706188201904, "learning_rate": 0.0002, "num_tokens": 3807.0, "mean_token_accuracy": 0.4527951776981354, "epoch": 0.0017613386173491853, "step": 1}, {"eval_loss": 2.4585213661193848, "eval_runtime": 31.3621, "eval_samples_per_second": 8.29, "eval_steps_per_second": 8.29, "eval_num_tokens": 424054.0, "eval_mean_token_accuracy": 0.4645250516442152, "epoch": 0.20079260237780713, "step": 114}, {"loss": 2.4518, "grad_norm": 1.29618239402771, "learning_rate": 0.0002, "num_tokens": 738884.0, "mean_token_accuracy": 0.46565087225718715, "epoch": 0.3522677234698371, "step": 200}, {"eval_loss": 2.446232318878174, "eval_runtime": 31.3477, "eval_samples_per_second": 8.294, "eval_steps_per_second": 8.294, "eval_num_tokens": 839084.0, "eval_mean_token_accuracy": 0.4655659502515426, "epoch": 0.40158520475561427, "step": 228}, {"eval_loss": 2.4329376220703125, "eval_runtime": 31.3738, "eval_samples_per_second": 8.287, "eval_steps_per_second": 8.287, "eval_num_tokens": 1262092.0, "eval_mean_token_accuracy": 0.467835784302308, "epoch": 0.6023778071334214, "step": 342}, {"loss": 2.4254, "grad_norm": 1.3102465867996216, "learning_rate": 0.0002, "num_tokens": 1474663.0, "mean_token_accuracy": 0.46991066221147776, "epoch": 0.7045354469396742, "step": 400}, {"eval_loss": 2.4243571758270264, "eval_runtime": 31.2719, "eval_samples_per_second": 8.314, "eval_steps_per_second": 8.314, "eval_num_tokens": 1681400.0, "eval_mean_token_accuracy": 0.4687519186964402, "epoch": 0.8031704095112285, "step": 456}, {"eval_loss": 2.417897939682007, "eval_runtime": 31.4762, "eval_samples_per_second": 8.26, "eval_steps_per_second": 8.26, "eval_num_tokens": 2099789.0, "eval_mean_token_accuracy": 0.46959532006428795, "epoch": 1.0035226772346983, "step": 570}, {"loss": 2.357, "grad_norm": 1.6475716829299927, "learning_rate": 0.0002, "num_tokens": 2211854.0, "mean_token_accuracy": 0.4762497523027905, "epoch": 1.056362835755174, "step": 600}, {"eval_loss": 2.483536720275879, "eval_runtime": 31.2681, "eval_samples_per_second": 8.315, "eval_steps_per_second": 8.315, "eval_num_tokens": 2522674.0, "eval_mean_token_accuracy": 0.4651056079910352, "epoch": 1.2043152796125054, "step": 684}, {"eval_loss": 2.4887211322784424, "eval_runtime": 31.343, "eval_samples_per_second": 8.295, "eval_steps_per_second": 8.295, "eval_num_tokens": 2944288.0, "eval_mean_token_accuracy": 0.46546354247973515, "epoch": 1.4051078819903127, "step": 798}, {"loss": 2.0039, "grad_norm": 1.6907062530517578, "learning_rate": 0.0002, "num_tokens": 2951127.0, "mean_token_accuracy": 0.5249196901544928, "epoch": 1.408630559225011, "step": 800}, {"eval_loss": 2.484689712524414, "eval_runtime": 31.3305, "eval_samples_per_second": 8.299, "eval_steps_per_second": 8.299, "eval_num_tokens": 3365331.0, "eval_mean_token_accuracy": 0.46649623696620646, "epoch": 1.6059004843681197, "step": 912}, {"loss": 2.0238, "grad_norm": 1.5708386898040771, "learning_rate": 0.0002, "num_tokens": 3686897.0, "mean_token_accuracy": 0.5207879526540637, "epoch": 1.760898282694848, "step": 1000}, {"eval_loss": 2.4846572875976562, "eval_runtime": 31.3793, "eval_samples_per_second": 8.286, "eval_steps_per_second": 8.286, "eval_num_tokens": 3783054.0, "eval_mean_token_accuracy": 0.4669897643419412, "epoch": 1.806693086745927, "step": 1026}, {"train_runtime": 2169.473, "train_samples_per_second": 2.094, "train_steps_per_second": 0.524, "total_flos": 2.542951287104717e+16, "train_loss": 2.22765551507473, "num_tokens": 4184144.0, "mean_token_accuracy": 0.5185371857980339, "epoch": 2.0, "step": 1136}]
gemma-news-lora-r16-d10-e3/README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: google/gemma-3-1b-pt
3
+ library_name: transformers
4
+ model_name: gemma-news-lora-r16-d10-e3
5
+ tags:
6
+ - generated_from_trainer
7
+ - sft
8
+ - trl
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for gemma-news-lora-r16-d10-e3
13
+
14
+ This model is a fine-tuned version of [google/gemma-3-1b-pt](https://huggingface.co/google/gemma-3-1b-pt).
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="eantropix/gemma-news-lora-r16-d10-e3", 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
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.21.0
38
+ - Transformers: 4.57.0
39
+ - Pytorch: 2.8.0
40
+ - Datasets: 3.3.2
41
+ - Tokenizers: 0.22.1
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{\'e}dec},
53
+ year = 2020,
54
+ journal = {GitHub repository},
55
+ publisher = {GitHub},
56
+ howpublished = {\url{https://github.com/huggingface/trl}}
57
+ }
58
+ ```
gemma-news-lora-r16-d10-e3/added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
gemma-news-lora-r16-d10-e3/special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "boi_token": "<start_of_image>",
3
+ "bos_token": {
4
+ "content": "<bos>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "eoi_token": "<end_of_image>",
11
+ "eos_token": {
12
+ "content": "<eos>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "image_token": "<image_soft_token>",
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
gemma-news-lora-r16-d10-e3/tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
gemma-news-lora-r32-d01-e1/README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: google/gemma-3-1b-pt
3
+ library_name: transformers
4
+ model_name: gemma-news-lora-r32-d01-e1
5
+ tags:
6
+ - generated_from_trainer
7
+ - sft
8
+ - trl
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for gemma-news-lora-r32-d01-e1
13
+
14
+ This model is a fine-tuned version of [google/gemma-3-1b-pt](https://huggingface.co/google/gemma-3-1b-pt).
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="eantropix/gemma-news-lora-r32-d01-e1", 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
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.21.0
38
+ - Transformers: 4.57.0
39
+ - Pytorch: 2.8.0
40
+ - Datasets: 3.3.2
41
+ - Tokenizers: 0.22.1
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{\'e}dec},
53
+ year = 2020,
54
+ journal = {GitHub repository},
55
+ publisher = {GitHub},
56
+ howpublished = {\url{https://github.com/huggingface/trl}}
57
+ }
58
+ ```
gemma-news-lora-r32-d01-e1/adapter_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "google/gemma-3-1b-pt",
5
+ "bias": "none",
6
+ "eva_config": null,
7
+ "exclude_modules": null,
8
+ "fan_in_fan_out": false,
9
+ "inference_mode": true,
10
+ "init_lora_weights": true,
11
+ "layer_replication": null,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "loftq_config": {},
15
+ "lora_alpha": 16,
16
+ "lora_bias": false,
17
+ "lora_dropout": 0.01,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": [
21
+ "lm_head",
22
+ "embed_tokens"
23
+ ],
24
+ "peft_type": "LORA",
25
+ "r": 32,
26
+ "rank_pattern": {},
27
+ "revision": null,
28
+ "target_modules": [
29
+ "k_proj",
30
+ "q_proj",
31
+ "o_proj",
32
+ "up_proj",
33
+ "gate_proj",
34
+ "down_proj",
35
+ "v_proj"
36
+ ],
37
+ "task_type": "CAUSAL_LM",
38
+ "use_dora": false,
39
+ "use_rslora": false
40
+ }
gemma-news-lora-r32-d01-e1/added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
gemma-news-lora-r32-d01-e1/special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "boi_token": "<start_of_image>",
3
+ "bos_token": {
4
+ "content": "<bos>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "eoi_token": "<end_of_image>",
11
+ "eos_token": {
12
+ "content": "<eos>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "image_token": "<image_soft_token>",
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
gemma-news-lora-r32-d01-e1/tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
gemma-news-lora-r32-d01-e1/train_log.json ADDED
@@ -0,0 +1 @@
 
 
1
+ [{"loss": 2.5261, "grad_norm": 1.8295727968215942, "learning_rate": 0.0002, "num_tokens": 3807.0, "mean_token_accuracy": 0.4527951776981354, "epoch": 0.0017613386173491853, "step": 1}, {"eval_loss": 2.469421863555908, "eval_runtime": 31.4969, "eval_samples_per_second": 8.255, "eval_steps_per_second": 8.255, "eval_num_tokens": 213783.0, "eval_mean_token_accuracy": 0.4638089827620066, "epoch": 0.10039630118890357, "step": 57}, {"eval_loss": 2.4585788249969482, "eval_runtime": 31.4382, "eval_samples_per_second": 8.27, "eval_steps_per_second": 8.27, "eval_num_tokens": 424054.0, "eval_mean_token_accuracy": 0.46428544177458836, "epoch": 0.20079260237780713, "step": 114}, {"eval_loss": 2.4493160247802734, "eval_runtime": 31.4873, "eval_samples_per_second": 8.257, "eval_steps_per_second": 8.257, "eval_num_tokens": 633043.0, "eval_mean_token_accuracy": 0.465276089654519, "epoch": 0.3011889035667107, "step": 171}, {"loss": 2.4515, "grad_norm": 1.2761331796646118, "learning_rate": 0.0002, "num_tokens": 738884.0, "mean_token_accuracy": 0.4655064718807163, "epoch": 0.3522677234698371, "step": 200}, {"eval_loss": 2.4461722373962402, "eval_runtime": 31.5023, "eval_samples_per_second": 8.253, "eval_steps_per_second": 8.253, "eval_num_tokens": 839084.0, "eval_mean_token_accuracy": 0.46549088335954225, "epoch": 0.40158520475561427, "step": 228}, {"eval_loss": 2.4396557807922363, "eval_runtime": 31.4286, "eval_samples_per_second": 8.273, "eval_steps_per_second": 8.273, "eval_num_tokens": 1049460.0, "eval_mean_token_accuracy": 0.4674979286698195, "epoch": 0.5019815059445178, "step": 285}, {"eval_loss": 2.43300724029541, "eval_runtime": 31.4996, "eval_samples_per_second": 8.254, "eval_steps_per_second": 8.254, "eval_num_tokens": 1262092.0, "eval_mean_token_accuracy": 0.4676126725398577, "epoch": 0.6023778071334214, "step": 342}, {"eval_loss": 2.4300153255462646, "eval_runtime": 31.4966, "eval_samples_per_second": 8.255, "eval_steps_per_second": 8.255, "eval_num_tokens": 1470942.0, "eval_mean_token_accuracy": 0.4684278720846543, "epoch": 0.702774108322325, "step": 399}, {"loss": 2.4248, "grad_norm": 1.2844475507736206, "learning_rate": 0.0002, "num_tokens": 1474663.0, "mean_token_accuracy": 0.4698649825528264, "epoch": 0.7045354469396742, "step": 400}, {"eval_loss": 2.4239141941070557, "eval_runtime": 31.508, "eval_samples_per_second": 8.252, "eval_steps_per_second": 8.252, "eval_num_tokens": 1681400.0, "eval_mean_token_accuracy": 0.4684067562222481, "epoch": 0.8031704095112285, "step": 456}, {"eval_loss": 2.421586036682129, "eval_runtime": 31.5042, "eval_samples_per_second": 8.253, "eval_steps_per_second": 8.253, "eval_num_tokens": 1888559.0, "eval_mean_token_accuracy": 0.46910087798650446, "epoch": 0.9035667107001321, "step": 513}, {"train_runtime": 1233.7098, "train_samples_per_second": 1.841, "train_steps_per_second": 0.46, "total_flos": 1.2878512450811904e+16, "train_loss": 2.431678335851347, "num_tokens": 2092072.0, "mean_token_accuracy": 0.4686162888826095, "epoch": 1.0, "step": 568}]
gemma-news-lora-r32-d01-e2/README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: google/gemma-3-1b-pt
3
+ library_name: transformers
4
+ model_name: gemma-news-lora-r32-d01-e2
5
+ tags:
6
+ - generated_from_trainer
7
+ - sft
8
+ - trl
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for gemma-news-lora-r32-d01-e2
13
+
14
+ This model is a fine-tuned version of [google/gemma-3-1b-pt](https://huggingface.co/google/gemma-3-1b-pt).
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="eantropix/gemma-news-lora-r32-d01-e2", 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
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.21.0
38
+ - Transformers: 4.57.0
39
+ - Pytorch: 2.8.0
40
+ - Datasets: 3.3.2
41
+ - Tokenizers: 0.22.1
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{\'e}dec},
53
+ year = 2020,
54
+ journal = {GitHub repository},
55
+ publisher = {GitHub},
56
+ howpublished = {\url{https://github.com/huggingface/trl}}
57
+ }
58
+ ```
gemma-news-lora-r32-d01-e2/adapter_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "google/gemma-3-1b-pt",
5
+ "bias": "none",
6
+ "eva_config": null,
7
+ "exclude_modules": null,
8
+ "fan_in_fan_out": false,
9
+ "inference_mode": true,
10
+ "init_lora_weights": true,
11
+ "layer_replication": null,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "loftq_config": {},
15
+ "lora_alpha": 16,
16
+ "lora_bias": false,
17
+ "lora_dropout": 0.01,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": [
21
+ "lm_head",
22
+ "embed_tokens"
23
+ ],
24
+ "peft_type": "LORA",
25
+ "r": 32,
26
+ "rank_pattern": {},
27
+ "revision": null,
28
+ "target_modules": [
29
+ "k_proj",
30
+ "q_proj",
31
+ "o_proj",
32
+ "up_proj",
33
+ "gate_proj",
34
+ "down_proj",
35
+ "v_proj"
36
+ ],
37
+ "task_type": "CAUSAL_LM",
38
+ "use_dora": false,
39
+ "use_rslora": false
40
+ }
gemma-news-lora-r32-d01-e2/added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
gemma-news-lora-r32-d01-e2/special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "boi_token": "<start_of_image>",
3
+ "bos_token": {
4
+ "content": "<bos>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "eoi_token": "<end_of_image>",
11
+ "eos_token": {
12
+ "content": "<eos>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "image_token": "<image_soft_token>",
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
gemma-news-lora-r32-d01-e2/tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
gemma-news-lora-r32-d01-e2/train_log.json ADDED
@@ -0,0 +1 @@
 
 
1
+ [{"loss": 2.5261, "grad_norm": 1.8296430110931396, "learning_rate": 0.0002, "num_tokens": 3807.0, "mean_token_accuracy": 0.4527951776981354, "epoch": 0.0017613386173491853, "step": 1}, {"eval_loss": 2.458711624145508, "eval_runtime": 31.5299, "eval_samples_per_second": 8.246, "eval_steps_per_second": 8.246, "eval_num_tokens": 424054.0, "eval_mean_token_accuracy": 0.46450312309540237, "epoch": 0.20079260237780713, "step": 114}, {"loss": 2.4515, "grad_norm": 1.2840428352355957, "learning_rate": 0.0002, "num_tokens": 738884.0, "mean_token_accuracy": 0.46551437410128177, "epoch": 0.3522677234698371, "step": 200}, {"eval_loss": 2.4460697174072266, "eval_runtime": 31.5267, "eval_samples_per_second": 8.247, "eval_steps_per_second": 8.247, "eval_num_tokens": 839084.0, "eval_mean_token_accuracy": 0.4658660260530619, "epoch": 0.40158520475561427, "step": 228}, {"eval_loss": 2.4333481788635254, "eval_runtime": 31.5222, "eval_samples_per_second": 8.248, "eval_steps_per_second": 8.248, "eval_num_tokens": 1262092.0, "eval_mean_token_accuracy": 0.4679571975882237, "epoch": 0.6023778071334214, "step": 342}, {"loss": 2.4249, "grad_norm": 1.2869867086410522, "learning_rate": 0.0002, "num_tokens": 1474663.0, "mean_token_accuracy": 0.4699652238190174, "epoch": 0.7045354469396742, "step": 400}, {"eval_loss": 2.4246346950531006, "eval_runtime": 31.5224, "eval_samples_per_second": 8.248, "eval_steps_per_second": 8.248, "eval_num_tokens": 1681400.0, "eval_mean_token_accuracy": 0.46866863324091984, "epoch": 0.8031704095112285, "step": 456}, {"eval_loss": 2.4181017875671387, "eval_runtime": 31.6428, "eval_samples_per_second": 8.217, "eval_steps_per_second": 8.217, "eval_num_tokens": 2099789.0, "eval_mean_token_accuracy": 0.4698260196126424, "epoch": 1.0035226772346983, "step": 570}, {"loss": 2.3565, "grad_norm": 1.6299959421157837, "learning_rate": 0.0002, "num_tokens": 2211854.0, "mean_token_accuracy": 0.4764941054977971, "epoch": 1.056362835755174, "step": 600}, {"eval_loss": 2.485821485519409, "eval_runtime": 31.5513, "eval_samples_per_second": 8.241, "eval_steps_per_second": 8.241, "eval_num_tokens": 2522674.0, "eval_mean_token_accuracy": 0.4651986986398697, "epoch": 1.2043152796125054, "step": 684}, {"eval_loss": 2.4879372119903564, "eval_runtime": 31.5272, "eval_samples_per_second": 8.247, "eval_steps_per_second": 8.247, "eval_num_tokens": 2944288.0, "eval_mean_token_accuracy": 0.46591435097731076, "epoch": 1.4051078819903127, "step": 798}, {"loss": 1.9965, "grad_norm": 1.635869026184082, "learning_rate": 0.0002, "num_tokens": 2951127.0, "mean_token_accuracy": 0.5263285375013947, "epoch": 1.408630559225011, "step": 800}, {"eval_loss": 2.484312057495117, "eval_runtime": 31.4889, "eval_samples_per_second": 8.257, "eval_steps_per_second": 8.257, "eval_num_tokens": 3365331.0, "eval_mean_token_accuracy": 0.4664400122486628, "epoch": 1.6059004843681197, "step": 912}, {"loss": 2.0164, "grad_norm": 1.5386178493499756, "learning_rate": 0.0002, "num_tokens": 3686897.0, "mean_token_accuracy": 0.521946656703949, "epoch": 1.760898282694848, "step": 1000}, {"eval_loss": 2.485884428024292, "eval_runtime": 31.5281, "eval_samples_per_second": 8.247, "eval_steps_per_second": 8.247, "eval_num_tokens": 3783054.0, "eval_mean_token_accuracy": 0.4672837741099871, "epoch": 1.806693086745927, "step": 1026}, {"train_runtime": 2187.9522, "train_samples_per_second": 2.076, "train_steps_per_second": 0.519, "total_flos": 2.575702490162381e+16, "train_loss": 2.223613601545213, "num_tokens": 4184144.0, "mean_token_accuracy": 0.520156036095066, "epoch": 2.0, "step": 1136}]
gemma-news-lora-r32-d05-e1/README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: google/gemma-3-1b-pt
3
+ library_name: transformers
4
+ model_name: gemma-news-lora-r32-d05-e1
5
+ tags:
6
+ - generated_from_trainer
7
+ - sft
8
+ - trl
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for gemma-news-lora-r32-d05-e1
13
+
14
+ This model is a fine-tuned version of [google/gemma-3-1b-pt](https://huggingface.co/google/gemma-3-1b-pt).
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="eantropix/gemma-news-lora-r32-d05-e1", 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
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.21.0
38
+ - Transformers: 4.57.0
39
+ - Pytorch: 2.8.0
40
+ - Datasets: 3.3.2
41
+ - Tokenizers: 0.22.1
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{\'e}dec},
53
+ year = 2020,
54
+ journal = {GitHub repository},
55
+ publisher = {GitHub},
56
+ howpublished = {\url{https://github.com/huggingface/trl}}
57
+ }
58
+ ```
gemma-news-lora-r32-d05-e1/adapter_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "google/gemma-3-1b-pt",
5
+ "bias": "none",
6
+ "eva_config": null,
7
+ "exclude_modules": null,
8
+ "fan_in_fan_out": false,
9
+ "inference_mode": true,
10
+ "init_lora_weights": true,
11
+ "layer_replication": null,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "loftq_config": {},
15
+ "lora_alpha": 16,
16
+ "lora_bias": false,
17
+ "lora_dropout": 0.05,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": [
21
+ "lm_head",
22
+ "embed_tokens"
23
+ ],
24
+ "peft_type": "LORA",
25
+ "r": 32,
26
+ "rank_pattern": {},
27
+ "revision": null,
28
+ "target_modules": [
29
+ "k_proj",
30
+ "q_proj",
31
+ "o_proj",
32
+ "up_proj",
33
+ "gate_proj",
34
+ "down_proj",
35
+ "v_proj"
36
+ ],
37
+ "task_type": "CAUSAL_LM",
38
+ "use_dora": false,
39
+ "use_rslora": false
40
+ }
gemma-news-lora-r32-d05-e1/added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
gemma-news-lora-r32-d05-e1/special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "boi_token": "<start_of_image>",
3
+ "bos_token": {
4
+ "content": "<bos>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "eoi_token": "<end_of_image>",
11
+ "eos_token": {
12
+ "content": "<eos>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "image_token": "<image_soft_token>",
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
gemma-news-lora-r32-d05-e1/tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
gemma-news-lora-r32-d05-e1/train_log.json ADDED
@@ -0,0 +1 @@
 
 
1
+ [{"loss": 2.5261, "grad_norm": 1.8297985792160034, "learning_rate": 0.0002, "num_tokens": 3807.0, "mean_token_accuracy": 0.4527951776981354, "epoch": 0.0017613386173491853, "step": 1}, {"eval_loss": 2.469449043273926, "eval_runtime": 31.4647, "eval_samples_per_second": 8.263, "eval_steps_per_second": 8.263, "eval_num_tokens": 213783.0, "eval_mean_token_accuracy": 0.46372045977757526, "epoch": 0.10039630118890357, "step": 57}, {"eval_loss": 2.4583890438079834, "eval_runtime": 31.5143, "eval_samples_per_second": 8.25, "eval_steps_per_second": 8.25, "eval_num_tokens": 424054.0, "eval_mean_token_accuracy": 0.464532301403009, "epoch": 0.20079260237780713, "step": 114}, {"eval_loss": 2.449326753616333, "eval_runtime": 31.4852, "eval_samples_per_second": 8.258, "eval_steps_per_second": 8.258, "eval_num_tokens": 633043.0, "eval_mean_token_accuracy": 0.46482849820302086, "epoch": 0.3011889035667107, "step": 171}, {"loss": 2.4516, "grad_norm": 1.276780128479004, "learning_rate": 0.0002, "num_tokens": 738884.0, "mean_token_accuracy": 0.4654749772656503, "epoch": 0.3522677234698371, "step": 200}, {"eval_loss": 2.4458632469177246, "eval_runtime": 31.4969, "eval_samples_per_second": 8.255, "eval_steps_per_second": 8.255, "eval_num_tokens": 839084.0, "eval_mean_token_accuracy": 0.4656467779324605, "epoch": 0.40158520475561427, "step": 228}, {"eval_loss": 2.4395627975463867, "eval_runtime": 31.5249, "eval_samples_per_second": 8.247, "eval_steps_per_second": 8.247, "eval_num_tokens": 1049460.0, "eval_mean_token_accuracy": 0.4672590777277946, "epoch": 0.5019815059445178, "step": 285}, {"eval_loss": 2.4327404499053955, "eval_runtime": 31.4924, "eval_samples_per_second": 8.256, "eval_steps_per_second": 8.256, "eval_num_tokens": 1262092.0, "eval_mean_token_accuracy": 0.46773263055544634, "epoch": 0.6023778071334214, "step": 342}, {"eval_loss": 2.4302356243133545, "eval_runtime": 31.5369, "eval_samples_per_second": 8.244, "eval_steps_per_second": 8.244, "eval_num_tokens": 1470942.0, "eval_mean_token_accuracy": 0.4684559481648298, "epoch": 0.702774108322325, "step": 399}, {"loss": 2.4248, "grad_norm": 1.2843071222305298, "learning_rate": 0.0002, "num_tokens": 1474663.0, "mean_token_accuracy": 0.469849172718823, "epoch": 0.7045354469396742, "step": 400}, {"eval_loss": 2.4242987632751465, "eval_runtime": 31.5539, "eval_samples_per_second": 8.24, "eval_steps_per_second": 8.24, "eval_num_tokens": 1681400.0, "eval_mean_token_accuracy": 0.46846592403375187, "epoch": 0.8031704095112285, "step": 456}, {"eval_loss": 2.421644687652588, "eval_runtime": 31.5443, "eval_samples_per_second": 8.242, "eval_steps_per_second": 8.242, "eval_num_tokens": 1888559.0, "eval_mean_token_accuracy": 0.4691322004565826, "epoch": 0.9035667107001321, "step": 513}, {"train_runtime": 1233.8999, "train_samples_per_second": 1.841, "train_steps_per_second": 0.46, "total_flos": 1.2878512450811904e+16, "train_loss": 2.431716912649047, "num_tokens": 2092072.0, "mean_token_accuracy": 0.46879615722399, "epoch": 1.0, "step": 568}]
gemma-news-lora-r32-d10-e1/README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: google/gemma-3-1b-pt
3
+ library_name: transformers
4
+ model_name: gemma-news-lora-r32-d10-e1
5
+ tags:
6
+ - generated_from_trainer
7
+ - sft
8
+ - trl
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for gemma-news-lora-r32-d10-e1
13
+
14
+ This model is a fine-tuned version of [google/gemma-3-1b-pt](https://huggingface.co/google/gemma-3-1b-pt).
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="eantropix/gemma-news-lora-r32-d10-e1", 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
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.21.0
38
+ - Transformers: 4.57.0
39
+ - Pytorch: 2.8.0
40
+ - Datasets: 3.3.2
41
+ - Tokenizers: 0.22.1
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{\'e}dec},
53
+ year = 2020,
54
+ journal = {GitHub repository},
55
+ publisher = {GitHub},
56
+ howpublished = {\url{https://github.com/huggingface/trl}}
57
+ }
58
+ ```
gemma-news-lora-r32-d10-e1/adapter_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "google/gemma-3-1b-pt",
5
+ "bias": "none",
6
+ "eva_config": null,
7
+ "exclude_modules": null,
8
+ "fan_in_fan_out": false,
9
+ "inference_mode": true,
10
+ "init_lora_weights": true,
11
+ "layer_replication": null,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "loftq_config": {},
15
+ "lora_alpha": 16,
16
+ "lora_bias": false,
17
+ "lora_dropout": 0.1,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": [
21
+ "lm_head",
22
+ "embed_tokens"
23
+ ],
24
+ "peft_type": "LORA",
25
+ "r": 32,
26
+ "rank_pattern": {},
27
+ "revision": null,
28
+ "target_modules": [
29
+ "k_proj",
30
+ "q_proj",
31
+ "o_proj",
32
+ "up_proj",
33
+ "gate_proj",
34
+ "down_proj",
35
+ "v_proj"
36
+ ],
37
+ "task_type": "CAUSAL_LM",
38
+ "use_dora": false,
39
+ "use_rslora": false
40
+ }
gemma-news-lora-r32-d10-e1/added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
gemma-news-lora-r32-d10-e1/special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "boi_token": "<start_of_image>",
3
+ "bos_token": {
4
+ "content": "<bos>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "eoi_token": "<end_of_image>",
11
+ "eos_token": {
12
+ "content": "<eos>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "image_token": "<image_soft_token>",
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
gemma-news-lora-r32-d10-e1/tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff