adapter
Browse files- sft2/.gitattributes +1 -0
- sft2/README.md +197 -0
- sft2/adapter_config.json +34 -0
- sft2/adapter_model.safetensors +3 -0
- sft2/added_tokens.json +3 -0
- sft2/chat_template.jinja +53 -0
- sft2/config.json +141 -0
- sft2/preprocessor_config.json +29 -0
- sft2/processor_config.json +4 -0
- sft2/special_tokens_map.json +33 -0
- sft2/tokenizer.json +3 -0
- sft2/tokenizer.model +3 -0
- sft2/tokenizer_config.json +0 -0
sft2/.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
sft2/README.md
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: peft
|
| 3 |
+
license: gemma
|
| 4 |
+
base_model: Lambent/Mira-v1.23.1-27B-dpo
|
| 5 |
+
tags:
|
| 6 |
+
- axolotl
|
| 7 |
+
- base_model:adapter:Lambent/Mira-v1.23.1-27B-dpo
|
| 8 |
+
- lora
|
| 9 |
+
- transformers
|
| 10 |
+
datasets:
|
| 11 |
+
- Lambent/mira-offerings-jan29-8k
|
| 12 |
+
- Lambent/mira-dpo-v1
|
| 13 |
+
- Lambent/rp-ani-hydrated
|
| 14 |
+
- Lambent/rp-mira-kurt-multi-hydrated
|
| 15 |
+
- Lambent/mira-memories-2026-01-29
|
| 16 |
+
- Lambent/mira-training-data
|
| 17 |
+
- Lambent/mira-training-data-inclusive
|
| 18 |
+
- Lambent/ifeval-shard-shard-3-of-7
|
| 19 |
+
- Lambent/smoltalk2-instruct-shard-2-of-5
|
| 20 |
+
pipeline_tag: text-generation
|
| 21 |
+
model-index:
|
| 22 |
+
- name: sft2
|
| 23 |
+
results: []
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 27 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 28 |
+
|
| 29 |
+
[<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
|
| 30 |
+
<details><summary>See axolotl config</summary>
|
| 31 |
+
|
| 32 |
+
axolotl version: `0.13.0.dev0`
|
| 33 |
+
```yaml
|
| 34 |
+
base_model: Lambent/Mira-v1.23.1-27B-dpo
|
| 35 |
+
model_type: AutoModelForCausalLM
|
| 36 |
+
tokenizer_type: AutoTokenizer
|
| 37 |
+
trust_remote_code: true
|
| 38 |
+
|
| 39 |
+
save_safetensors: true
|
| 40 |
+
|
| 41 |
+
load_in_8bit: false
|
| 42 |
+
load_in_4bit: true
|
| 43 |
+
strict: false
|
| 44 |
+
|
| 45 |
+
ddp_find_unused_parameters: true
|
| 46 |
+
|
| 47 |
+
eot_tokens:
|
| 48 |
+
- <end_of_turn>
|
| 49 |
+
|
| 50 |
+
# total_num_tokens:
|
| 51 |
+
datasets:
|
| 52 |
+
- path: Lambent/mira-offerings-jan29-8k
|
| 53 |
+
type: completion
|
| 54 |
+
split: train
|
| 55 |
+
|
| 56 |
+
- path: Lambent/mira-dpo-v1
|
| 57 |
+
type:
|
| 58 |
+
system_prompt: ""
|
| 59 |
+
field_system: system
|
| 60 |
+
field_instruction: prompt
|
| 61 |
+
field_output: chosen
|
| 62 |
+
|
| 63 |
+
- path: Lambent/rp-ani-hydrated
|
| 64 |
+
type: chat_template
|
| 65 |
+
split: train
|
| 66 |
+
field_messages: conversations
|
| 67 |
+
message_property_mappings:
|
| 68 |
+
role: from
|
| 69 |
+
content: value
|
| 70 |
+
- path: Lambent/rp-mira-kurt-multi-hydrated
|
| 71 |
+
type: chat_template
|
| 72 |
+
split: train
|
| 73 |
+
field_messages: conversations
|
| 74 |
+
message_property_mappings:
|
| 75 |
+
role: from
|
| 76 |
+
content: value
|
| 77 |
+
|
| 78 |
+
- path: Lambent/mira-memories-2026-01-29
|
| 79 |
+
type: chat_template
|
| 80 |
+
split: train
|
| 81 |
+
- path: Lambent/mira-training-data
|
| 82 |
+
type: chat_template
|
| 83 |
+
split: train
|
| 84 |
+
- path: Lambent/mira-training-data-inclusive
|
| 85 |
+
type: chat_template
|
| 86 |
+
split: train
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
- path: Lambent/ifeval-shard-shard-3-of-7
|
| 90 |
+
type: chat_template
|
| 91 |
+
split: train
|
| 92 |
+
- path: Lambent/smoltalk2-instruct-shard-2-of-5
|
| 93 |
+
type: chat_template
|
| 94 |
+
split: train
|
| 95 |
+
|
| 96 |
+
dataset_prepared_path: prepared-sft
|
| 97 |
+
output_dir: ./sft2
|
| 98 |
+
|
| 99 |
+
seed: 129262
|
| 100 |
+
|
| 101 |
+
sequence_len: 8192
|
| 102 |
+
sample_packing: true
|
| 103 |
+
eval_sample_packing: false
|
| 104 |
+
pad_to_sequence_len: false
|
| 105 |
+
|
| 106 |
+
adapter: qlora
|
| 107 |
+
lora_model_dir:
|
| 108 |
+
lora_r: 256
|
| 109 |
+
lora_alpha: 256
|
| 110 |
+
lora_dropout: 0.1
|
| 111 |
+
lora_target_modules: 'model.language_model.layers.[\d]+.(cross_attn|self_attn).(q|k|v|o)_proj'
|
| 112 |
+
|
| 113 |
+
wandb_project: mira-qlora-sft-jan29
|
| 114 |
+
wandb_entity:
|
| 115 |
+
wandb_watch:
|
| 116 |
+
wandb_name:
|
| 117 |
+
wandb_log_model:
|
| 118 |
+
|
| 119 |
+
gradient_accumulation_steps: 4
|
| 120 |
+
micro_batch_size: 1
|
| 121 |
+
num_epochs: 1
|
| 122 |
+
optimizer: paged_adamw_8bit
|
| 123 |
+
lr_scheduler: cosine
|
| 124 |
+
learning_rate: 5e-7
|
| 125 |
+
|
| 126 |
+
train_on_inputs: false
|
| 127 |
+
group_by_length: false
|
| 128 |
+
bf16: true
|
| 129 |
+
fp16:
|
| 130 |
+
tf32: false
|
| 131 |
+
|
| 132 |
+
gradient_checkpointing: true
|
| 133 |
+
early_stopping_patience:
|
| 134 |
+
resume_from_checkpoint:
|
| 135 |
+
local_rank:
|
| 136 |
+
logging_steps: 1
|
| 137 |
+
xformers_attention:
|
| 138 |
+
flash_attention: true
|
| 139 |
+
|
| 140 |
+
warmup_ratio: 0.1
|
| 141 |
+
saves_per_epoch: 2
|
| 142 |
+
save_total_limit: 1
|
| 143 |
+
debug:
|
| 144 |
+
deepspeed:
|
| 145 |
+
weight_decay: 0.001
|
| 146 |
+
fsdp:
|
| 147 |
+
fsdp_config:
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
```
|
| 152 |
+
|
| 153 |
+
</details><br>
|
| 154 |
+
|
| 155 |
+
# sft2
|
| 156 |
+
|
| 157 |
+
This model is a fine-tuned version of [Lambent/Mira-v1.23.1-27B-dpo](https://huggingface.co/Lambent/Mira-v1.23.1-27B-dpo) on the Lambent/mira-offerings-jan29-8k, the Lambent/mira-dpo-v1, the Lambent/rp-ani-hydrated, the Lambent/rp-mira-kurt-multi-hydrated, the Lambent/mira-memories-2026-01-29, the Lambent/mira-training-data, the Lambent/mira-training-data-inclusive, the Lambent/ifeval-shard-shard-3-of-7 and the Lambent/smoltalk2-instruct-shard-2-of-5 datasets.
|
| 158 |
+
|
| 159 |
+
## Model description
|
| 160 |
+
|
| 161 |
+
More information needed
|
| 162 |
+
|
| 163 |
+
## Intended uses & limitations
|
| 164 |
+
|
| 165 |
+
More information needed
|
| 166 |
+
|
| 167 |
+
## Training and evaluation data
|
| 168 |
+
|
| 169 |
+
More information needed
|
| 170 |
+
|
| 171 |
+
## Training procedure
|
| 172 |
+
|
| 173 |
+
### Training hyperparameters
|
| 174 |
+
|
| 175 |
+
The following hyperparameters were used during training:
|
| 176 |
+
- learning_rate: 5e-07
|
| 177 |
+
- train_batch_size: 1
|
| 178 |
+
- eval_batch_size: 1
|
| 179 |
+
- seed: 129262
|
| 180 |
+
- gradient_accumulation_steps: 4
|
| 181 |
+
- total_train_batch_size: 4
|
| 182 |
+
- optimizer: Use OptimizerNames.PAGED_ADAMW_8BIT with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 183 |
+
- lr_scheduler_type: cosine
|
| 184 |
+
- lr_scheduler_warmup_steps: 33
|
| 185 |
+
- training_steps: 331
|
| 186 |
+
|
| 187 |
+
### Training results
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
### Framework versions
|
| 192 |
+
|
| 193 |
+
- PEFT 0.17.0
|
| 194 |
+
- Transformers 4.55.2
|
| 195 |
+
- Pytorch 2.7.1+cu128
|
| 196 |
+
- Datasets 4.0.0
|
| 197 |
+
- Tokenizers 0.21.4
|
sft2/adapter_config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "Lambent/Mira-v1.23.1-27B-dpo",
|
| 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": 256,
|
| 17 |
+
"lora_bias": false,
|
| 18 |
+
"lora_dropout": 0.1,
|
| 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": 256,
|
| 25 |
+
"rank_pattern": {},
|
| 26 |
+
"revision": null,
|
| 27 |
+
"target_modules": "model.language_model.layers.[\\d]+.(cross_attn|self_attn).(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 |
+
}
|
sft2/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d201a79a7d42b04d9b5eebaac69e66fec28952ea9ea1bc7e55d20100981af76f
|
| 3 |
+
size 2145462824
|
sft2/added_tokens.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"<image_soft_token>": 262144
|
| 3 |
+
}
|
sft2/chat_template.jinja
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{{ bos_token }}
|
| 2 |
+
{%- if messages[0]['role'] == 'system' -%}
|
| 3 |
+
{%- if messages[0]['content'] is string -%}
|
| 4 |
+
{%- set first_user_prefix = messages[0]['content'] + '\n\n' -%}
|
| 5 |
+
{%- else -%}
|
| 6 |
+
{%- set first_user_prefix = messages[0]['content'][0]['text'] + '\n\n' -%}
|
| 7 |
+
{%- endif -%}
|
| 8 |
+
{%- set loop_messages = messages[1:] -%}
|
| 9 |
+
{%- else -%}
|
| 10 |
+
{%- set first_user_prefix = "" -%}
|
| 11 |
+
{%- set loop_messages = messages -%}
|
| 12 |
+
{%- endif -%}
|
| 13 |
+
{%- for message in loop_messages -%}
|
| 14 |
+
{%- if message['role'] == 'assistant' -%}
|
| 15 |
+
{%- set role = 'model' -%}
|
| 16 |
+
{%- else -%}
|
| 17 |
+
{%- set role = message['role'] -%}
|
| 18 |
+
{%- endif -%}
|
| 19 |
+
{{ '<start_of_turn>' + role + '\n' + (first_user_prefix if loop.first else '') }}
|
| 20 |
+
{%- if message['content'] is string -%}
|
| 21 |
+
{{ message['content'] | trim }}
|
| 22 |
+
{%- elif message['content'] is iterable -%}
|
| 23 |
+
{%- for item in message['content'] -%}
|
| 24 |
+
{%- if item['type'] == 'image' -%}
|
| 25 |
+
{{ '<start_of_image>' }}
|
| 26 |
+
{%- elif item['type'] == 'text' -%}
|
| 27 |
+
{{ item['text'] | trim }}
|
| 28 |
+
{%- endif -%}
|
| 29 |
+
{%- endfor -%}
|
| 30 |
+
{%- else -%}
|
| 31 |
+
{{ raise_exception('Invalid content type') }}
|
| 32 |
+
{%- endif -%}
|
| 33 |
+
{%- if message['role'] == 'assistant' and message.tool_calls is defined -%}
|
| 34 |
+
{%- for tool_call in message.tool_calls -%}
|
| 35 |
+
{%- if tool_call.function is defined -%}
|
| 36 |
+
{%- set tc = tool_call.function -%}
|
| 37 |
+
{%- else -%}
|
| 38 |
+
{%- set tc = tool_call -%}
|
| 39 |
+
{%- endif -%}
|
| 40 |
+
{{ '\n<tool_call>\n{"name": "' + tc.name + '", "arguments": ' }}
|
| 41 |
+
{%- if tc.arguments is string -%}
|
| 42 |
+
{{ tc.arguments }}
|
| 43 |
+
{%- else -%}
|
| 44 |
+
{{ tc.arguments | tojson }}
|
| 45 |
+
{%- endif -%}
|
| 46 |
+
{{ '}\n</tool_call>' }}
|
| 47 |
+
{%- endfor -%}
|
| 48 |
+
{%- endif -%}
|
| 49 |
+
{{ '<end_of_turn>\n' }}
|
| 50 |
+
{%- endfor -%}
|
| 51 |
+
{%- if add_generation_prompt -%}
|
| 52 |
+
{{ '<start_of_turn>model\n' }}
|
| 53 |
+
{%- endif -%}
|
sft2/config.json
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Gemma3ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"boi_token_index": 255999,
|
| 6 |
+
"dtype": "bfloat16",
|
| 7 |
+
"eoi_token_index": 256000,
|
| 8 |
+
"image_token_index": 262144,
|
| 9 |
+
"initializer_range": 0.02,
|
| 10 |
+
"mm_tokens_per_image": 256,
|
| 11 |
+
"model_type": "gemma3",
|
| 12 |
+
"quantization_config": {
|
| 13 |
+
"_load_in_4bit": true,
|
| 14 |
+
"_load_in_8bit": false,
|
| 15 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
| 16 |
+
"bnb_4bit_quant_storage": "bfloat16",
|
| 17 |
+
"bnb_4bit_quant_type": "nf4",
|
| 18 |
+
"bnb_4bit_use_double_quant": true,
|
| 19 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
| 20 |
+
"llm_int8_has_fp16_weight": false,
|
| 21 |
+
"llm_int8_skip_modules": null,
|
| 22 |
+
"llm_int8_threshold": 6.0,
|
| 23 |
+
"load_in_4bit": true,
|
| 24 |
+
"load_in_8bit": false,
|
| 25 |
+
"quant_method": "bitsandbytes"
|
| 26 |
+
},
|
| 27 |
+
"text_config": {
|
| 28 |
+
"_sliding_window_pattern": 6,
|
| 29 |
+
"attention_bias": false,
|
| 30 |
+
"attention_dropout": 0.0,
|
| 31 |
+
"attn_logit_softcapping": null,
|
| 32 |
+
"dtype": "bfloat16",
|
| 33 |
+
"final_logit_softcapping": null,
|
| 34 |
+
"head_dim": 128,
|
| 35 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
| 36 |
+
"hidden_size": 5376,
|
| 37 |
+
"initializer_range": 0.02,
|
| 38 |
+
"intermediate_size": 21504,
|
| 39 |
+
"layer_types": [
|
| 40 |
+
"sliding_attention",
|
| 41 |
+
"sliding_attention",
|
| 42 |
+
"sliding_attention",
|
| 43 |
+
"sliding_attention",
|
| 44 |
+
"sliding_attention",
|
| 45 |
+
"full_attention",
|
| 46 |
+
"sliding_attention",
|
| 47 |
+
"sliding_attention",
|
| 48 |
+
"sliding_attention",
|
| 49 |
+
"sliding_attention",
|
| 50 |
+
"sliding_attention",
|
| 51 |
+
"full_attention",
|
| 52 |
+
"sliding_attention",
|
| 53 |
+
"sliding_attention",
|
| 54 |
+
"sliding_attention",
|
| 55 |
+
"sliding_attention",
|
| 56 |
+
"sliding_attention",
|
| 57 |
+
"full_attention",
|
| 58 |
+
"sliding_attention",
|
| 59 |
+
"sliding_attention",
|
| 60 |
+
"sliding_attention",
|
| 61 |
+
"sliding_attention",
|
| 62 |
+
"sliding_attention",
|
| 63 |
+
"full_attention",
|
| 64 |
+
"sliding_attention",
|
| 65 |
+
"sliding_attention",
|
| 66 |
+
"sliding_attention",
|
| 67 |
+
"sliding_attention",
|
| 68 |
+
"sliding_attention",
|
| 69 |
+
"full_attention",
|
| 70 |
+
"sliding_attention",
|
| 71 |
+
"sliding_attention",
|
| 72 |
+
"sliding_attention",
|
| 73 |
+
"sliding_attention",
|
| 74 |
+
"sliding_attention",
|
| 75 |
+
"full_attention",
|
| 76 |
+
"sliding_attention",
|
| 77 |
+
"sliding_attention",
|
| 78 |
+
"sliding_attention",
|
| 79 |
+
"sliding_attention",
|
| 80 |
+
"sliding_attention",
|
| 81 |
+
"full_attention",
|
| 82 |
+
"sliding_attention",
|
| 83 |
+
"sliding_attention",
|
| 84 |
+
"sliding_attention",
|
| 85 |
+
"sliding_attention",
|
| 86 |
+
"sliding_attention",
|
| 87 |
+
"full_attention",
|
| 88 |
+
"sliding_attention",
|
| 89 |
+
"sliding_attention",
|
| 90 |
+
"sliding_attention",
|
| 91 |
+
"sliding_attention",
|
| 92 |
+
"sliding_attention",
|
| 93 |
+
"full_attention",
|
| 94 |
+
"sliding_attention",
|
| 95 |
+
"sliding_attention",
|
| 96 |
+
"sliding_attention",
|
| 97 |
+
"sliding_attention",
|
| 98 |
+
"sliding_attention",
|
| 99 |
+
"full_attention",
|
| 100 |
+
"sliding_attention",
|
| 101 |
+
"sliding_attention"
|
| 102 |
+
],
|
| 103 |
+
"max_position_embeddings": 131072,
|
| 104 |
+
"model_type": "gemma3_text",
|
| 105 |
+
"num_attention_heads": 32,
|
| 106 |
+
"num_hidden_layers": 62,
|
| 107 |
+
"num_key_value_heads": 16,
|
| 108 |
+
"query_pre_attn_scalar": 168,
|
| 109 |
+
"rms_norm_eps": 1e-06,
|
| 110 |
+
"rope_local_base_freq": 10000.0,
|
| 111 |
+
"rope_scaling": {
|
| 112 |
+
"factor": 8.0,
|
| 113 |
+
"rope_type": "linear"
|
| 114 |
+
},
|
| 115 |
+
"rope_theta": 1000000.0,
|
| 116 |
+
"sliding_window": 1024,
|
| 117 |
+
"torch_dtype": "bfloat16",
|
| 118 |
+
"use_bidirectional_attention": false,
|
| 119 |
+
"use_cache": false,
|
| 120 |
+
"vocab_size": 262145
|
| 121 |
+
},
|
| 122 |
+
"torch_dtype": "bfloat16",
|
| 123 |
+
"transformers_version": "4.55.2",
|
| 124 |
+
"use_cache": false,
|
| 125 |
+
"vision_config": {
|
| 126 |
+
"attention_dropout": 0.0,
|
| 127 |
+
"dtype": "bfloat16",
|
| 128 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 129 |
+
"hidden_size": 1152,
|
| 130 |
+
"image_size": 896,
|
| 131 |
+
"intermediate_size": 4304,
|
| 132 |
+
"layer_norm_eps": 1e-06,
|
| 133 |
+
"model_type": "siglip_vision_model",
|
| 134 |
+
"num_attention_heads": 16,
|
| 135 |
+
"num_channels": 3,
|
| 136 |
+
"num_hidden_layers": 27,
|
| 137 |
+
"patch_size": 14,
|
| 138 |
+
"torch_dtype": "bfloat16",
|
| 139 |
+
"vision_use_head": false
|
| 140 |
+
}
|
| 141 |
+
}
|
sft2/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 |
+
}
|
sft2/processor_config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_seq_length": 256,
|
| 3 |
+
"processor_class": "Gemma3Processor"
|
| 4 |
+
}
|
sft2/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": "<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>",
|
| 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 |
+
}
|
sft2/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4667f2089529e8e7657cfb6d1c19910ae71ff5f28aa7ab2ff2763330affad795
|
| 3 |
+
size 33384568
|
sft2/tokenizer.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1299c11d7cf632ef3b4e11937501358ada021bbdf7c47638d13c0ee982f2e79c
|
| 3 |
+
size 4689074
|
sft2/tokenizer_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|