iJoshNh commited on
Commit
f6514f5
·
verified ·
1 Parent(s): 8db5217

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,37 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ tags:
4
+ - axolotl
5
+ - lora
6
+ - transformers
7
+ - gemma
8
+ pipeline_tag: text-generation
9
+ base_model: google/gemma-3-27b-it
10
+ ---
11
+
12
+ # EmoN1
13
+
14
+ Fine-tuned from [google/gemma-3-27b-it](https://huggingface.co/google/gemma-3-27b-it) using QLoRA.
15
+
16
+ ## Training Details
17
+
18
+ - **Base Model:** google/gemma-3-27b-it
19
+ - **Method:** QLoRA (4-bit quantization + LoRA)
20
+ - **LoRA Rank:** 32
21
+ - **LoRA Alpha:** 64
22
+ - **Sequence Length:** 8192
23
+ - **Epochs:** 3
24
+ - **Learning Rate:** 2e-4
25
+
26
+ ### Training Results
27
+
28
+ | Training Loss | Epoch | Step | Validation Loss |
29
+ |:-------------:|:-----:|:----:|:---------------:|
30
+ | 0.9058 | 1.0 | 63 | 0.8959 |
31
+ | 0.8279 | 2.0 | 126 | 0.8607 |
32
+
33
+ ### Framework Versions
34
+
35
+ - PEFT 0.17.1
36
+ - Transformers 4.55.4
37
+ - Pytorch 2.7.1+cu126
adapter/adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "/tmp/base_model_dir/vertex-model-garden-restricted-us/gemma3/gemma-3-27b-it",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": null,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 8,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0.05,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "qalora_group_size": 16,
24
+ "r": 4,
25
+ "rank_pattern": {},
26
+ "revision": null,
27
+ "target_modules": "model.language_model.layers.[\\d]+.(mlp|cross_attn|self_attn).(up|down|gate|q|k|v|o)_proj",
28
+ "target_parameters": [],
29
+ "task_type": "CAUSAL_LM",
30
+ "trainable_token_indices": null,
31
+ "use_dora": false,
32
+ "use_qalora": false,
33
+ "use_rslora": false
34
+ }
adapter/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53f9b85fa8a5a555de42f30e6a5abae0274946f9bdcdf753f04f6e1cb21e5fb1
3
+ size 113644648
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
chat_template.jinja ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{ bos_token }}
2
+ {%- if messages[0]['role'] == 'system' -%}
3
+ {%- set first_user_prefix = messages[0]['content'][0]['text'] + '
4
+
5
+ ' -%}
6
+ {%- set loop_messages = messages[1:] -%}
7
+ {%- else -%}
8
+ {%- set first_user_prefix = "" -%}
9
+ {%- set loop_messages = messages -%}
10
+ {%- endif -%}
11
+ {%- for message in loop_messages -%}
12
+ {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) -%}
13
+ {{ raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") }}
14
+ {%- endif -%}
15
+ {%- if (message['role'] == 'assistant') -%}
16
+ {%- set role = "model" -%}
17
+ {%- else -%}
18
+ {%- set role = message['role'] -%}
19
+ {%- endif -%}
20
+ {{ '<start_of_turn>' + role + '
21
+ ' + (first_user_prefix if loop.first else "") }}
22
+ {%- if message['content'] is string -%}
23
+ {{ message['content'] | trim }}
24
+ {%- elif message['content'] is iterable -%}
25
+ {%- for item in message['content'] -%}
26
+ {%- if item['type'] == 'image' -%}
27
+ {{ '<start_of_image>' }}
28
+ {%- elif item['type'] == 'text' -%}
29
+ {{ item['text'] | trim }}
30
+ {%- endif -%}
31
+ {%- endfor -%}
32
+ {%- else -%}
33
+ {{ raise_exception("Invalid content type") }}
34
+ {%- endif -%}
35
+ {{ '<end_of_turn>
36
+ ' }}
37
+ {%- endfor -%}
38
+ {%- if add_generation_prompt -%}
39
+ {{'<start_of_turn>model
40
+ '}}
41
+ {%- endif -%}
config.json ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Gemma3ForConditionalGeneration"
4
+ ],
5
+ "boi_token_index": 255999,
6
+ "eoi_token_index": 256000,
7
+ "eos_token_id": 1,
8
+ "image_token_index": 262144,
9
+ "initializer_range": 0.02,
10
+ "mm_tokens_per_image": 256,
11
+ "model_type": "gemma3",
12
+ "text_config": {
13
+ "_sliding_window_pattern": 6,
14
+ "attention_bias": false,
15
+ "attention_dropout": 0.0,
16
+ "attn_logit_softcapping": null,
17
+ "final_logit_softcapping": null,
18
+ "head_dim": 128,
19
+ "hidden_activation": "gelu_pytorch_tanh",
20
+ "hidden_size": 5376,
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 21504,
23
+ "layer_types": [
24
+ "sliding_attention",
25
+ "sliding_attention",
26
+ "sliding_attention",
27
+ "sliding_attention",
28
+ "sliding_attention",
29
+ "full_attention",
30
+ "sliding_attention",
31
+ "sliding_attention",
32
+ "sliding_attention",
33
+ "sliding_attention",
34
+ "sliding_attention",
35
+ "full_attention",
36
+ "sliding_attention",
37
+ "sliding_attention",
38
+ "sliding_attention",
39
+ "sliding_attention",
40
+ "sliding_attention",
41
+ "full_attention",
42
+ "sliding_attention",
43
+ "sliding_attention",
44
+ "sliding_attention",
45
+ "sliding_attention",
46
+ "sliding_attention",
47
+ "full_attention",
48
+ "sliding_attention",
49
+ "sliding_attention",
50
+ "sliding_attention",
51
+ "sliding_attention",
52
+ "sliding_attention",
53
+ "full_attention",
54
+ "sliding_attention",
55
+ "sliding_attention",
56
+ "sliding_attention",
57
+ "sliding_attention",
58
+ "sliding_attention",
59
+ "full_attention",
60
+ "sliding_attention",
61
+ "sliding_attention",
62
+ "sliding_attention",
63
+ "sliding_attention",
64
+ "sliding_attention",
65
+ "full_attention",
66
+ "sliding_attention",
67
+ "sliding_attention",
68
+ "sliding_attention",
69
+ "sliding_attention",
70
+ "sliding_attention",
71
+ "full_attention",
72
+ "sliding_attention",
73
+ "sliding_attention",
74
+ "sliding_attention",
75
+ "sliding_attention",
76
+ "sliding_attention",
77
+ "full_attention",
78
+ "sliding_attention",
79
+ "sliding_attention",
80
+ "sliding_attention",
81
+ "sliding_attention",
82
+ "sliding_attention",
83
+ "full_attention",
84
+ "sliding_attention",
85
+ "sliding_attention"
86
+ ],
87
+ "max_position_embeddings": 131072,
88
+ "model_type": "gemma3_text",
89
+ "num_attention_heads": 32,
90
+ "num_hidden_layers": 62,
91
+ "num_key_value_heads": 16,
92
+ "query_pre_attn_scalar": 168,
93
+ "rms_norm_eps": 1e-06,
94
+ "rope_local_base_freq": 10000.0,
95
+ "rope_scaling": {
96
+ "factor": 8.0,
97
+ "rope_type": "linear"
98
+ },
99
+ "rope_theta": 1000000.0,
100
+ "sliding_window": 1024,
101
+ "torch_dtype": "bfloat16",
102
+ "use_cache": false,
103
+ "vocab_size": 262208
104
+ },
105
+ "torch_dtype": "bfloat16",
106
+ "transformers_version": "4.55.4",
107
+ "use_cache": true,
108
+ "vision_config": {
109
+ "attention_dropout": 0.0,
110
+ "hidden_act": "gelu_pytorch_tanh",
111
+ "hidden_size": 1152,
112
+ "image_size": 896,
113
+ "intermediate_size": 4304,
114
+ "layer_norm_eps": 1e-06,
115
+ "model_type": "siglip_vision_model",
116
+ "num_attention_heads": 16,
117
+ "num_channels": 3,
118
+ "num_hidden_layers": 27,
119
+ "patch_size": 14,
120
+ "torch_dtype": "bfloat16",
121
+ "vision_use_head": false
122
+ }
123
+ }
generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "cache_implementation": "hybrid",
5
+ "do_sample": true,
6
+ "eos_token_id": [
7
+ 1,
8
+ 106
9
+ ],
10
+ "pad_token_id": 0,
11
+ "transformers_version": "4.55.4"
12
+ }
managed_oss_fine_tuning_marker.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"source":"managed_oss_fine_tuning","base_model":"google/gemma3@gemma-3-27b-it"}
model-00001-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bfff21b19abfbedc7e8e90b59ef0644bcc8cd9e70496e69215f8fb00d2628ce6
3
+ size 4854573696
model-00002-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82d04632359fefbe15edc69553433132f886a7f13a4e633c93735c4b89473d74
3
+ size 4954792944
model-00003-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cbf1f1cf18aeb960a90cc9c726643e93c719cad506b1fbf411261640970eba8
3
+ size 4954792976
model-00004-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ee2944781503ea86b283363cfd9f3d36534cdcd5dfe5fac559ab0bdb076f2c8
3
+ size 4954793016
model-00005-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c8b3860a721aefaa4f08228b44de057fff8976d339289874167838b8b48aae3
3
+ size 4954793016
model-00006-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d171341297f2cc012d31a21294a06e02ecb13a431ea5dd349d7a8cb3e7627fbc
3
+ size 4954793016
model-00007-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab30e490ca5ccf428ef03cadccb4ad57776aed5d797f91cc04f095e6207f3c4b
3
+ size 4954793016
model-00008-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8b7da2a6e9f9941054cc79f1c9e13d604dfbcf9269ecf8e9d4a485069b22252
3
+ size 4954793016
model-00009-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e024f4998c54f1fe22dbd88d81a9200f855e68ac1a43574a818a57a7839c417f
3
+ size 4954793016
model-00010-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b87b1c5d6142bdf4002b2030cbcc9cc90e4367300c6195013b50b02887a40dc9
3
+ size 4954793016
model-00011-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:418399379e9bb5e9dba18a6a179c533e0d046e0b8a8b8c2f36e547ab2057dcfa
3
+ size 4954793016
model-00012-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:463bc02393df23761db42a241345c338788e21ccd30c0f1e8a34fbc1d91002fd
3
+ size 462476696
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
preprocessor_config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": null,
3
+ "do_normalize": true,
4
+ "do_pan_and_scan": null,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "image_mean": [
8
+ 0.5,
9
+ 0.5,
10
+ 0.5
11
+ ],
12
+ "image_processor_type": "Gemma3ImageProcessor",
13
+ "image_seq_length": 256,
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "pan_and_scan_max_num_crops": null,
20
+ "pan_and_scan_min_crop_size": null,
21
+ "pan_and_scan_min_ratio_to_activate": null,
22
+ "processor_class": "Gemma3Processor",
23
+ "resample": 2,
24
+ "rescale_factor": 0.00392156862745098,
25
+ "size": {
26
+ "height": 896,
27
+ "width": 896
28
+ }
29
+ }
processor_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "image_seq_length": 256,
3
+ "processor_class": "Gemma3Processor"
4
+ }
runs/Dec06_07-52-04_gke-cml-1206-073712--a3-highgpu-8g-81-ed3f35b7-vmxs/events.out.tfevents.1765007538.gke-cml-1206-073712--a3-highgpu-8g-81-ed3f35b7-vmxs.9320.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c7fa79a7052a5092b96aefd8c60f930d0879724662d811aa89cf6ba04c4e027
3
+ size 65823
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
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4667f2089529e8e7657cfb6d1c19910ae71ff5f28aa7ab2ff2763330affad795
3
+ size 33384568
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1299c11d7cf632ef3b4e11937501358ada021bbdf7c47638d13c0ee982f2e79c
3
+ size 4689074
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff