Ruben Gerad Mathew commited on
Commit
ab7c777
·
verified ·
1 Parent(s): 5d7960d

Training in progress, epoch 1

Browse files
README.md CHANGED
@@ -1,18 +1,17 @@
1
  ---
2
- base_model: unsloth/gemma-3-270m-it-unsloth-bnb-4bit
3
  library_name: transformers
4
  model_name: gemma3_google
5
  tags:
6
  - generated_from_trainer
7
  - sft
8
- - unsloth
9
  - trl
10
  licence: license
11
  ---
12
 
13
  # Model Card for gemma3_google
14
 
15
- This model is a fine-tuned version of [unsloth/gemma-3-270m-it-unsloth-bnb-4bit](https://huggingface.co/unsloth/gemma-3-270m-it-unsloth-bnb-4bit).
16
  It has been trained using [TRL](https://github.com/huggingface/trl).
17
 
18
  ## Quick start
 
1
  ---
2
+ base_model: google/gemma-3-270m-it
3
  library_name: transformers
4
  model_name: gemma3_google
5
  tags:
6
  - generated_from_trainer
7
  - sft
 
8
  - trl
9
  licence: license
10
  ---
11
 
12
  # Model Card for gemma3_google
13
 
14
+ This model is a fine-tuned version of [google/gemma-3-270m-it](https://huggingface.co/google/gemma-3-270m-it).
15
  It has been trained using [TRL](https://github.com/huggingface/trl).
16
 
17
  ## Quick start
chat_template.jinja CHANGED
@@ -1,4 +1,3 @@
1
- {# Unsloth Chat template fixes #}
2
  {{ bos_token }}
3
  {%- if messages[0]['role'] == 'system' -%}
4
  {%- if messages[0]['content'] is string -%}
@@ -36,7 +35,7 @@
36
  {{ item['text'] | trim }}
37
  {%- endif -%}
38
  {%- endfor -%}
39
- {%- elif message['content'] is defined -%}
40
  {{ raise_exception("Invalid content type") }}
41
  {%- endif -%}
42
  {{ '<end_of_turn>
@@ -46,5 +45,3 @@
46
  {{'<start_of_turn>model
47
  '}}
48
  {%- endif -%}
49
-
50
- {# Copyright 2025-present Unsloth. Apache 2.0 License. #}
 
 
1
  {{ bos_token }}
2
  {%- if messages[0]['role'] == 'system' -%}
3
  {%- if messages[0]['content'] is string -%}
 
35
  {{ item['text'] | trim }}
36
  {%- endif -%}
37
  {%- endfor -%}
38
+ {%- else -%}
39
  {{ raise_exception("Invalid content type") }}
40
  {%- endif -%}
41
  {{ '<end_of_turn>
 
45
  {{'<start_of_turn>model
46
  '}}
47
  {%- endif -%}
 
 
config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_sliding_window_pattern": 6,
3
+ "architectures": [
4
+ "Gemma3ForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "attn_logit_softcapping": null,
9
+ "bos_token_id": 2,
10
+ "eos_token_id": 1,
11
+ "final_logit_softcapping": null,
12
+ "head_dim": 256,
13
+ "hidden_activation": "gelu_pytorch_tanh",
14
+ "hidden_size": 640,
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 2048,
17
+ "layer_types": [
18
+ "sliding_attention",
19
+ "sliding_attention",
20
+ "sliding_attention",
21
+ "sliding_attention",
22
+ "sliding_attention",
23
+ "full_attention",
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
+ ],
37
+ "max_position_embeddings": 32768,
38
+ "model_type": "gemma3_text",
39
+ "num_attention_heads": 4,
40
+ "num_hidden_layers": 18,
41
+ "num_key_value_heads": 1,
42
+ "pad_token_id": 0,
43
+ "query_pre_attn_scalar": 256,
44
+ "rms_norm_eps": 1e-06,
45
+ "rope_local_base_freq": 10000.0,
46
+ "rope_scaling": null,
47
+ "rope_theta": 1000000.0,
48
+ "sliding_window": 512,
49
+ "torch_dtype": "bfloat16",
50
+ "transformers_version": "4.55.4",
51
+ "use_bidirectional_attention": false,
52
+ "use_cache": true,
53
+ "vocab_size": 262144
54
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:104b8549f162a63d119617d380924397a171e1d176031f2d3675490612e1762b
3
+ size 536223056
special_tokens_map.json CHANGED
@@ -8,13 +8,7 @@
8
  "single_word": false
9
  },
10
  "eoi_token": "<end_of_image>",
11
- "eos_token": {
12
- "content": "<end_of_turn>",
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>",
 
8
  "single_word": false
9
  },
10
  "eoi_token": "<end_of_image>",
11
+ "eos_token": "<unk>",
 
 
 
 
 
 
12
  "image_token": "<image_soft_token>",
13
  "pad_token": {
14
  "content": "<pad>",
tokenizer.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4201e7b539fef153e1fe3058db39e600717b3323fee690d37e92fa52fb2b5af2
3
- size 33384667
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4667f2089529e8e7657cfb6d1c19910ae71ff5f28aa7ab2ff2763330affad795
3
+ size 33384568
tokenizer_config.json CHANGED
@@ -51327,16 +51327,16 @@
51327
  "bos_token": "<bos>",
51328
  "clean_up_tokenization_spaces": false,
51329
  "eoi_token": "<end_of_image>",
51330
- "eos_token": "<end_of_turn>",
51331
  "extra_special_tokens": {
51332
  "boi_token": "<start_of_image>",
51333
  "eoi_token": "<end_of_image>",
51334
  "image_token": "<image_soft_token>"
51335
  },
51336
  "image_token": "<image_soft_token>",
51337
- "model_max_length": 32768,
51338
  "pad_token": "<pad>",
51339
- "padding_side": "right",
51340
  "sp_model_kwargs": null,
51341
  "spaces_between_special_tokens": false,
51342
  "tokenizer_class": "GemmaTokenizer",
 
51327
  "bos_token": "<bos>",
51328
  "clean_up_tokenization_spaces": false,
51329
  "eoi_token": "<end_of_image>",
51330
+ "eos_token": "<unk>",
51331
  "extra_special_tokens": {
51332
  "boi_token": "<start_of_image>",
51333
  "eoi_token": "<end_of_image>",
51334
  "image_token": "<image_soft_token>"
51335
  },
51336
  "image_token": "<image_soft_token>",
51337
+ "model_max_length": 1000000000000000019884624838656,
51338
  "pad_token": "<pad>",
51339
+ "padding_side": "left",
51340
  "sp_model_kwargs": null,
51341
  "spaces_between_special_tokens": false,
51342
  "tokenizer_class": "GemmaTokenizer",
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b0019a1c38be9c8f9f7bc8614804f41692bd819db8032ed5a8f05e867338b162
3
- size 6161
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e39c2a37b0c905ba449e92adf7640ddc18c58fb87820cc0fd725f173039c0524
3
+ size 6289