Commit
·
d0958d4
verified
·
0
Parent(s):
Duplicate from Nayana-cognitivelab/DocOCR_SFT_v0
Browse files- .gitattributes +36 -0
- args.json +342 -0
- chat_template.jinja +49 -0
- config.json +215 -0
- generation_config.json +13 -0
- model-00001-of-00003.safetensors +3 -0
- model-00002-of-00003.safetensors +3 -0
- model-00003-of-00003.safetensors +3 -0
- model.safetensors.index.json +0 -0
- preprocessor_config.json +52 -0
- processor_config.json +5 -0
- special_tokens_map.json +36 -0
- tokenizer.json +3 -0
- tokenizer.model +3 -0
- tokenizer_config.json +0 -0
.gitattributes
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz 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
|
args.json
ADDED
|
@@ -0,0 +1,342 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"output_dir": "/data/DocOCR_SFT_v0/v0-20250802-230924",
|
| 3 |
+
"overwrite_output_dir": false,
|
| 4 |
+
"do_train": false,
|
| 5 |
+
"do_eval": false,
|
| 6 |
+
"do_predict": false,
|
| 7 |
+
"eval_strategy": "no",
|
| 8 |
+
"prediction_loss_only": false,
|
| 9 |
+
"per_device_train_batch_size": 2,
|
| 10 |
+
"per_device_eval_batch_size": 2,
|
| 11 |
+
"per_gpu_train_batch_size": null,
|
| 12 |
+
"per_gpu_eval_batch_size": null,
|
| 13 |
+
"gradient_accumulation_steps": 2,
|
| 14 |
+
"eval_accumulation_steps": null,
|
| 15 |
+
"eval_delay": 0,
|
| 16 |
+
"torch_empty_cache_steps": null,
|
| 17 |
+
"learning_rate": 0.0003,
|
| 18 |
+
"weight_decay": 0.1,
|
| 19 |
+
"adam_beta1": 0.9,
|
| 20 |
+
"adam_beta2": 0.95,
|
| 21 |
+
"adam_epsilon": 1e-08,
|
| 22 |
+
"max_grad_norm": 1.0,
|
| 23 |
+
"num_train_epochs": 1.0,
|
| 24 |
+
"max_steps": -1,
|
| 25 |
+
"lr_scheduler_type": "cosine",
|
| 26 |
+
"lr_scheduler_kwargs": null,
|
| 27 |
+
"warmup_ratio": 0.2,
|
| 28 |
+
"warmup_steps": 0,
|
| 29 |
+
"log_level": "passive",
|
| 30 |
+
"log_level_replica": "warning",
|
| 31 |
+
"log_on_each_node": true,
|
| 32 |
+
"logging_dir": "/data/DocOCR_SFT_v0/v0-20250802-230924/runs",
|
| 33 |
+
"logging_strategy": "steps",
|
| 34 |
+
"logging_first_step": true,
|
| 35 |
+
"logging_steps": 10,
|
| 36 |
+
"logging_nan_inf_filter": true,
|
| 37 |
+
"save_strategy": "steps",
|
| 38 |
+
"save_steps": 500.0,
|
| 39 |
+
"save_total_limit": 10,
|
| 40 |
+
"save_safetensors": true,
|
| 41 |
+
"save_on_each_node": false,
|
| 42 |
+
"save_only_model": false,
|
| 43 |
+
"restore_callback_states_from_checkpoint": false,
|
| 44 |
+
"no_cuda": false,
|
| 45 |
+
"use_cpu": false,
|
| 46 |
+
"use_mps_device": false,
|
| 47 |
+
"seed": 42,
|
| 48 |
+
"data_seed": 42,
|
| 49 |
+
"jit_mode_eval": false,
|
| 50 |
+
"use_ipex": false,
|
| 51 |
+
"bf16": true,
|
| 52 |
+
"fp16": false,
|
| 53 |
+
"fp16_opt_level": "O1",
|
| 54 |
+
"half_precision_backend": "auto",
|
| 55 |
+
"bf16_full_eval": false,
|
| 56 |
+
"fp16_full_eval": false,
|
| 57 |
+
"tf32": null,
|
| 58 |
+
"local_rank": -1,
|
| 59 |
+
"ddp_backend": null,
|
| 60 |
+
"tpu_num_cores": null,
|
| 61 |
+
"tpu_metrics_debug": false,
|
| 62 |
+
"debug": null,
|
| 63 |
+
"dataloader_drop_last": false,
|
| 64 |
+
"eval_steps": 500.0,
|
| 65 |
+
"dataloader_num_workers": null,
|
| 66 |
+
"dataloader_prefetch_factor": null,
|
| 67 |
+
"past_index": -1,
|
| 68 |
+
"run_name": "/data/DocOCR_SFT_v0/v0-20250802-230924",
|
| 69 |
+
"disable_tqdm": null,
|
| 70 |
+
"remove_unused_columns": true,
|
| 71 |
+
"label_names": null,
|
| 72 |
+
"load_best_model_at_end": false,
|
| 73 |
+
"metric_for_best_model": "loss",
|
| 74 |
+
"greater_is_better": false,
|
| 75 |
+
"ignore_data_skip": false,
|
| 76 |
+
"fsdp": "",
|
| 77 |
+
"fsdp_min_num_params": 0,
|
| 78 |
+
"fsdp_config": null,
|
| 79 |
+
"fsdp_transformer_layer_cls_to_wrap": null,
|
| 80 |
+
"accelerator_config": {
|
| 81 |
+
"dispatch_batches": false
|
| 82 |
+
},
|
| 83 |
+
"deepspeed": null,
|
| 84 |
+
"label_smoothing_factor": 0.0,
|
| 85 |
+
"optim": "adamw_torch",
|
| 86 |
+
"optim_args": null,
|
| 87 |
+
"adafactor": false,
|
| 88 |
+
"group_by_length": false,
|
| 89 |
+
"length_column_name": "length",
|
| 90 |
+
"report_to": [
|
| 91 |
+
"wandb"
|
| 92 |
+
],
|
| 93 |
+
"ddp_find_unused_parameters": null,
|
| 94 |
+
"ddp_bucket_cap_mb": null,
|
| 95 |
+
"ddp_broadcast_buffers": null,
|
| 96 |
+
"dataloader_pin_memory": true,
|
| 97 |
+
"dataloader_persistent_workers": false,
|
| 98 |
+
"skip_memory_metrics": true,
|
| 99 |
+
"use_legacy_prediction_loop": false,
|
| 100 |
+
"push_to_hub": false,
|
| 101 |
+
"resume_from_checkpoint": null,
|
| 102 |
+
"hub_model_id": null,
|
| 103 |
+
"hub_strategy": "every_save",
|
| 104 |
+
"hub_token": null,
|
| 105 |
+
"hub_private_repo": null,
|
| 106 |
+
"hub_always_push": false,
|
| 107 |
+
"hub_revision": null,
|
| 108 |
+
"gradient_checkpointing": true,
|
| 109 |
+
"gradient_checkpointing_kwargs": null,
|
| 110 |
+
"include_inputs_for_metrics": false,
|
| 111 |
+
"include_for_metrics": [],
|
| 112 |
+
"eval_do_concat_batches": true,
|
| 113 |
+
"fp16_backend": "auto",
|
| 114 |
+
"push_to_hub_model_id": null,
|
| 115 |
+
"push_to_hub_organization": null,
|
| 116 |
+
"push_to_hub_token": null,
|
| 117 |
+
"mp_parameters": "",
|
| 118 |
+
"auto_find_batch_size": false,
|
| 119 |
+
"full_determinism": false,
|
| 120 |
+
"torchdynamo": null,
|
| 121 |
+
"ray_scope": "last",
|
| 122 |
+
"ddp_timeout": 18000000,
|
| 123 |
+
"torch_compile": false,
|
| 124 |
+
"torch_compile_backend": null,
|
| 125 |
+
"torch_compile_mode": null,
|
| 126 |
+
"include_tokens_per_second": false,
|
| 127 |
+
"include_num_input_tokens_seen": false,
|
| 128 |
+
"neftune_noise_alpha": null,
|
| 129 |
+
"optim_target_modules": null,
|
| 130 |
+
"batch_eval_metrics": false,
|
| 131 |
+
"eval_on_start": false,
|
| 132 |
+
"use_liger_kernel": false,
|
| 133 |
+
"liger_kernel_config": null,
|
| 134 |
+
"eval_use_gather_object": false,
|
| 135 |
+
"average_tokens_across_devices": true,
|
| 136 |
+
"sortish_sampler": false,
|
| 137 |
+
"predict_with_generate": false,
|
| 138 |
+
"generation_max_length": null,
|
| 139 |
+
"generation_num_beams": null,
|
| 140 |
+
"generation_config": null,
|
| 141 |
+
"tuner_backend": "peft",
|
| 142 |
+
"vit_gradient_checkpointing": null,
|
| 143 |
+
"check_model": true,
|
| 144 |
+
"acc_strategy": "token",
|
| 145 |
+
"train_dataloader_shuffle": true,
|
| 146 |
+
"max_epochs": null,
|
| 147 |
+
"aligner_lr": null,
|
| 148 |
+
"vit_lr": null,
|
| 149 |
+
"optimizer": null,
|
| 150 |
+
"use_logits_to_keep": null,
|
| 151 |
+
"channels": null,
|
| 152 |
+
"ds3_gather_for_generation": true,
|
| 153 |
+
"metric_warmup_step": 0,
|
| 154 |
+
"fsdp_num": 1,
|
| 155 |
+
"acc_steps": 1,
|
| 156 |
+
"eval_use_evalscope": false,
|
| 157 |
+
"eval_dataset": [],
|
| 158 |
+
"eval_dataset_args": null,
|
| 159 |
+
"eval_limit": null,
|
| 160 |
+
"eval_generation_config": null,
|
| 161 |
+
"model": "/data/models/google_gemma-3n-E2B-it",
|
| 162 |
+
"model_type": "gemma3n",
|
| 163 |
+
"model_revision": null,
|
| 164 |
+
"task_type": "causal_lm",
|
| 165 |
+
"torch_dtype": "bfloat16",
|
| 166 |
+
"attn_impl": null,
|
| 167 |
+
"num_labels": null,
|
| 168 |
+
"problem_type": null,
|
| 169 |
+
"rope_scaling": null,
|
| 170 |
+
"device_map": null,
|
| 171 |
+
"max_memory": {},
|
| 172 |
+
"local_repo_path": null,
|
| 173 |
+
"init_strategy": null,
|
| 174 |
+
"template": "gemma3n",
|
| 175 |
+
"system": null,
|
| 176 |
+
"max_length": null,
|
| 177 |
+
"truncation_strategy": "delete",
|
| 178 |
+
"max_pixels": null,
|
| 179 |
+
"agent_template": null,
|
| 180 |
+
"norm_bbox": null,
|
| 181 |
+
"use_chat_template": true,
|
| 182 |
+
"padding_free": false,
|
| 183 |
+
"padding_side": "right",
|
| 184 |
+
"loss_scale": "default",
|
| 185 |
+
"sequence_parallel_size": 1,
|
| 186 |
+
"response_prefix": null,
|
| 187 |
+
"template_backend": "swift",
|
| 188 |
+
"dataset": [
|
| 189 |
+
"nayana_dococr_sft:en-en/kn-kn"
|
| 190 |
+
],
|
| 191 |
+
"val_dataset": [],
|
| 192 |
+
"split_dataset_ratio": 0.0,
|
| 193 |
+
"dataset_num_proc": 1,
|
| 194 |
+
"load_from_cache_file": true,
|
| 195 |
+
"dataset_shuffle": true,
|
| 196 |
+
"val_dataset_shuffle": false,
|
| 197 |
+
"streaming": false,
|
| 198 |
+
"interleave_prob": null,
|
| 199 |
+
"stopping_strategy": "first_exhausted",
|
| 200 |
+
"shuffle_buffer_size": 1000,
|
| 201 |
+
"download_mode": "reuse_dataset_if_exists",
|
| 202 |
+
"columns": {},
|
| 203 |
+
"strict": false,
|
| 204 |
+
"model_name": null,
|
| 205 |
+
"model_author": null,
|
| 206 |
+
"custom_dataset_info": [
|
| 207 |
+
"/data/custom_dataset_info.json"
|
| 208 |
+
],
|
| 209 |
+
"quant_method": null,
|
| 210 |
+
"quant_bits": null,
|
| 211 |
+
"hqq_axis": null,
|
| 212 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
| 213 |
+
"bnb_4bit_quant_type": "nf4",
|
| 214 |
+
"bnb_4bit_use_double_quant": true,
|
| 215 |
+
"bnb_4bit_quant_storage": null,
|
| 216 |
+
"max_new_tokens": 64,
|
| 217 |
+
"temperature": 0.0,
|
| 218 |
+
"top_k": null,
|
| 219 |
+
"top_p": null,
|
| 220 |
+
"repetition_penalty": null,
|
| 221 |
+
"num_beams": 1,
|
| 222 |
+
"stream": false,
|
| 223 |
+
"stop_words": [],
|
| 224 |
+
"logprobs": false,
|
| 225 |
+
"top_logprobs": null,
|
| 226 |
+
"ckpt_dir": null,
|
| 227 |
+
"lora_modules": [],
|
| 228 |
+
"train_type": "lora",
|
| 229 |
+
"adapters": [],
|
| 230 |
+
"external_plugins": [],
|
| 231 |
+
"model_kwargs": {},
|
| 232 |
+
"load_args": false,
|
| 233 |
+
"load_data_args": false,
|
| 234 |
+
"packing": false,
|
| 235 |
+
"packing_cache": null,
|
| 236 |
+
"custom_register_path": [],
|
| 237 |
+
"use_hf": true,
|
| 238 |
+
"ignore_args_error": false,
|
| 239 |
+
"use_swift_lora": false,
|
| 240 |
+
"freeze_parameters": [
|
| 241 |
+
"model.vision_tower",
|
| 242 |
+
"model.audio_tower"
|
| 243 |
+
],
|
| 244 |
+
"freeze_parameters_regex": null,
|
| 245 |
+
"freeze_parameters_ratio": 0.0,
|
| 246 |
+
"trainable_parameters": [
|
| 247 |
+
"model.embed_vision",
|
| 248 |
+
"model.embed_audio"
|
| 249 |
+
],
|
| 250 |
+
"trainable_parameters_regex": null,
|
| 251 |
+
"freeze_llm": false,
|
| 252 |
+
"freeze_vit": true,
|
| 253 |
+
"freeze_aligner": false,
|
| 254 |
+
"target_modules": [
|
| 255 |
+
"all-linear"
|
| 256 |
+
],
|
| 257 |
+
"target_regex": null,
|
| 258 |
+
"modules_to_save": [],
|
| 259 |
+
"lora_rank": 32,
|
| 260 |
+
"lora_alpha": 64,
|
| 261 |
+
"lora_dropout": 0.05,
|
| 262 |
+
"lora_bias": "none",
|
| 263 |
+
"lora_dtype": null,
|
| 264 |
+
"lorap_lr_ratio": null,
|
| 265 |
+
"use_rslora": false,
|
| 266 |
+
"use_dora": false,
|
| 267 |
+
"lora_ga_batch_size": 2,
|
| 268 |
+
"lora_ga_iters": 2,
|
| 269 |
+
"lora_ga_max_length": 1024,
|
| 270 |
+
"lora_ga_direction": "ArB2r",
|
| 271 |
+
"lora_ga_scale": "stable",
|
| 272 |
+
"lora_ga_stable_gamma": 16,
|
| 273 |
+
"init_weights": true,
|
| 274 |
+
"fourier_n_frequency": 2000,
|
| 275 |
+
"fourier_scaling": 300.0,
|
| 276 |
+
"boft_block_size": 4,
|
| 277 |
+
"boft_block_num": 0,
|
| 278 |
+
"boft_n_butterfly_factor": 1,
|
| 279 |
+
"boft_dropout": 0.0,
|
| 280 |
+
"vera_rank": 256,
|
| 281 |
+
"vera_projection_prng_key": 0,
|
| 282 |
+
"vera_dropout": 0.0,
|
| 283 |
+
"vera_d_initial": 0.1,
|
| 284 |
+
"adapter_act": "gelu",
|
| 285 |
+
"adapter_length": 128,
|
| 286 |
+
"use_galore": false,
|
| 287 |
+
"galore_target_modules": null,
|
| 288 |
+
"galore_rank": 128,
|
| 289 |
+
"galore_update_proj_gap": 50,
|
| 290 |
+
"galore_scale": 1.0,
|
| 291 |
+
"galore_proj_type": "std",
|
| 292 |
+
"galore_optim_per_parameter": false,
|
| 293 |
+
"galore_with_embedding": false,
|
| 294 |
+
"galore_quantization": false,
|
| 295 |
+
"galore_proj_quant": false,
|
| 296 |
+
"galore_proj_bits": 4,
|
| 297 |
+
"galore_proj_group_size": 256,
|
| 298 |
+
"galore_cos_threshold": 0.4,
|
| 299 |
+
"galore_gamma_proj": 2,
|
| 300 |
+
"galore_queue_size": 5,
|
| 301 |
+
"adalora_target_r": 8,
|
| 302 |
+
"adalora_init_r": 12,
|
| 303 |
+
"adalora_tinit": 0,
|
| 304 |
+
"adalora_tfinal": 0,
|
| 305 |
+
"adalora_deltaT": 1,
|
| 306 |
+
"adalora_beta1": 0.85,
|
| 307 |
+
"adalora_beta2": 0.85,
|
| 308 |
+
"adalora_orth_reg_weight": 0.5,
|
| 309 |
+
"llamapro_num_new_blocks": 4,
|
| 310 |
+
"llamapro_num_groups": null,
|
| 311 |
+
"lisa_activated_layers": 0,
|
| 312 |
+
"lisa_step_interval": 20,
|
| 313 |
+
"reft_layer_key": null,
|
| 314 |
+
"reft_layers": null,
|
| 315 |
+
"reft_rank": 4,
|
| 316 |
+
"reft_intervention_type": "LoreftIntervention",
|
| 317 |
+
"reft_args": null,
|
| 318 |
+
"swanlab_token": null,
|
| 319 |
+
"swanlab_project": null,
|
| 320 |
+
"swanlab_workspace": null,
|
| 321 |
+
"swanlab_exp_name": null,
|
| 322 |
+
"swanlab_lark_webhook_url": null,
|
| 323 |
+
"swanlab_lark_secret": null,
|
| 324 |
+
"swanlab_mode": "cloud",
|
| 325 |
+
"add_version": true,
|
| 326 |
+
"resume_only_model": false,
|
| 327 |
+
"create_checkpoint_symlink": false,
|
| 328 |
+
"lazy_tokenize": true,
|
| 329 |
+
"loss_type": null,
|
| 330 |
+
"metric": null,
|
| 331 |
+
"zero_hpz_partition_size": null,
|
| 332 |
+
"rank": -1,
|
| 333 |
+
"global_world_size": 1,
|
| 334 |
+
"local_world_size": 1,
|
| 335 |
+
"model_suffix": "google_gemma-3n-E2B-it",
|
| 336 |
+
"model_info": "ModelInfo(model_type='gemma3n', model_dir='/data/models/google_gemma-3n-E2B-it', torch_dtype=torch.bfloat16, max_model_len=32768, quant_method=None, quant_bits=None, rope_scaling=None, config=None, task_type='causal_lm', num_labels=None)",
|
| 337 |
+
"model_meta": "ModelMeta(model_type='gemma3n', model_groups=[ModelGroup(models=[Model(ms_model_id='google/gemma-3n-E2B', hf_model_id='google/gemma-3n-E2B', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='google/gemma-3n-E4B', hf_model_id='google/gemma-3n-E4B', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='google/gemma-3n-E2B-it', hf_model_id='google/gemma-3n-E2B-it', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='google/gemma-3n-E4B-it', hf_model_id='google/gemma-3n-E4B-it', model_path=None, ms_revision=None, hf_revision=None)], ignore_patterns=None, requires=None, tags=[])], template='gemma3n', get_function=<function get_model_tokenizer_gemma3n at 0x2ba9f1d06b60>, model_arch='gemma3n', architectures=['Gemma3nForConditionalGeneration'], additional_saved_files=[], torch_dtype=None, is_multimodal=True, is_reward=False, task_type=None, ignore_patterns=None, requires=['transformers>=4.53.1'], tags=[])",
|
| 338 |
+
"model_dir": "/data/models/google_gemma-3n-E2B-it",
|
| 339 |
+
"hub": "<class 'swift.hub.hub.HFHub'>",
|
| 340 |
+
"evaluation_strategy": "steps",
|
| 341 |
+
"training_args": "Seq2SeqTrainingArguments(output_dir='/data/DocOCR_SFT_v0/v0-20250802-230924', overwrite_output_dir=False, do_train=False, do_eval=False, do_predict=False, eval_strategy=<IntervalStrategy.NO: 'no'>, prediction_loss_only=False, per_device_train_batch_size=2, per_device_eval_batch_size=2, per_gpu_train_batch_size=None, per_gpu_eval_batch_size=None, gradient_accumulation_steps=2, eval_accumulation_steps=None, eval_delay=0, torch_empty_cache_steps=None, learning_rate=0.0003, weight_decay=0.1, adam_beta1=0.9, adam_beta2=0.95, adam_epsilon=1e-08, max_grad_norm=1.0, num_train_epochs=1.0, max_steps=-1, lr_scheduler_type=<SchedulerType.COSINE: 'cosine'>, lr_scheduler_kwargs=None, warmup_ratio=0.2, warmup_steps=0, log_level='passive', log_level_replica='warning', log_on_each_node=True, logging_dir='/data/DocOCR_SFT_v0/v0-20250802-230924/runs', logging_strategy=<IntervalStrategy.STEPS: 'steps'>, logging_first_step=True, logging_steps=10, logging_nan_inf_filter=True, save_strategy=<SaveStrategy.STEPS: 'steps'>, save_steps=500, save_total_limit=10, save_safetensors=True, save_on_each_node=False, save_only_model=False, restore_callback_states_from_checkpoint=False, no_cuda=False, use_cpu=False, use_mps_device=False, seed=42, data_seed=42, jit_mode_eval=False, use_ipex=False, bf16=True, fp16=False, fp16_opt_level='O1', half_precision_backend='auto', bf16_full_eval=False, fp16_full_eval=False, tf32=None, local_rank=0, ddp_backend=None, tpu_num_cores=None, tpu_metrics_debug=False, debug=[], dataloader_drop_last=False, eval_steps=500.0, dataloader_num_workers=1, dataloader_prefetch_factor=10, past_index=-1, run_name='/data/DocOCR_SFT_v0/v0-20250802-230924', disable_tqdm=False, remove_unused_columns=False, label_names=None, load_best_model_at_end=False, metric_for_best_model='loss', greater_is_better=False, ignore_data_skip=False, fsdp=[], fsdp_min_num_params=0, fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}, fsdp_transformer_layer_cls_to_wrap=None, accelerator_config=AcceleratorConfig(split_batches=False, dispatch_batches=False, even_batches=True, use_seedable_sampler=True, non_blocking=False, gradient_accumulation_kwargs=None, use_configured_state=False), deepspeed=None, label_smoothing_factor=0.0, optim=<OptimizerNames.ADAMW_TORCH: 'adamw_torch'>, optim_args=None, adafactor=False, group_by_length=False, length_column_name='length', report_to=['wandb'], ddp_find_unused_parameters=None, ddp_bucket_cap_mb=None, ddp_broadcast_buffers=None, dataloader_pin_memory=True, dataloader_persistent_workers=False, skip_memory_metrics=True, use_legacy_prediction_loop=False, push_to_hub=False, resume_from_checkpoint=None, hub_model_id=None, hub_strategy=<HubStrategy.EVERY_SAVE: 'every_save'>, hub_token=None, hub_private_repo=None, hub_always_push=False, hub_revision=None, gradient_checkpointing=True, gradient_checkpointing_kwargs=None, include_inputs_for_metrics=False, include_for_metrics=[], eval_do_concat_batches=True, fp16_backend='auto', push_to_hub_model_id=None, push_to_hub_organization=None, push_to_hub_token=None, mp_parameters='', auto_find_batch_size=False, full_determinism=False, torchdynamo=None, ray_scope='last', ddp_timeout=18000000, torch_compile=False, torch_compile_backend=None, torch_compile_mode=None, include_tokens_per_second=None, include_num_input_tokens_seen=None, neftune_noise_alpha=None, optim_target_modules=None, batch_eval_metrics=False, eval_on_start=False, use_liger_kernel=False, liger_kernel_config=None, eval_use_gather_object=False, average_tokens_across_devices=None, sortish_sampler=False, predict_with_generate=False, generation_max_length=None, generation_num_beams=None, generation_config=None, tuner_backend='peft', vit_gradient_checkpointing=True, check_model=True, acc_strategy='token', train_dataloader_shuffle=True, max_epochs=None, aligner_lr=None, vit_lr=None, optimizer=None, use_logits_to_keep=None, channels=None, ds3_gather_for_generation=True, metric_warmup_step=0, fsdp_num=1, acc_steps=1, eval_use_evalscope=False, eval_dataset=[], eval_dataset_args=None, eval_limit=None, eval_generation_config=None, sft_alpha=0, train_type='lora', local_repo_path=None, galore_config=None)"
|
| 342 |
+
}
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{{ bos_token }}
|
| 2 |
+
{%- if messages[0]['role'] == 'system' -%}
|
| 3 |
+
{%- if messages[0]['content'] is string -%}
|
| 4 |
+
{%- set first_user_prefix = messages[0]['content'] + '
|
| 5 |
+
|
| 6 |
+
' -%}
|
| 7 |
+
{%- else -%}
|
| 8 |
+
{%- set first_user_prefix = messages[0]['content'][0]['text'] + '
|
| 9 |
+
|
| 10 |
+
' -%}
|
| 11 |
+
{%- endif -%}
|
| 12 |
+
{%- set loop_messages = messages[1:] -%}
|
| 13 |
+
{%- else -%}
|
| 14 |
+
{%- set first_user_prefix = "" -%}
|
| 15 |
+
{%- set loop_messages = messages -%}
|
| 16 |
+
{%- endif -%}
|
| 17 |
+
{%- for message in loop_messages -%}
|
| 18 |
+
{%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) -%}
|
| 19 |
+
{{ raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") }}
|
| 20 |
+
{%- endif -%}
|
| 21 |
+
{%- if (message['role'] == 'assistant') -%}
|
| 22 |
+
{%- set role = "model" -%}
|
| 23 |
+
{%- else -%}
|
| 24 |
+
{%- set role = message['role'] -%}
|
| 25 |
+
{%- endif -%}
|
| 26 |
+
{{ '<start_of_turn>' + role + '
|
| 27 |
+
' + (first_user_prefix if loop.first else "") }}
|
| 28 |
+
{%- if message['content'] is string -%}
|
| 29 |
+
{{ message['content'] | trim }}
|
| 30 |
+
{%- elif message['content'] is iterable -%}
|
| 31 |
+
{%- for item in message['content'] -%}
|
| 32 |
+
{%- if item['type'] == 'audio' -%}
|
| 33 |
+
{{ '<audio_soft_token>' }}
|
| 34 |
+
{%- elif item['type'] == 'image' -%}
|
| 35 |
+
{{ '<image_soft_token>' }}
|
| 36 |
+
{%- elif item['type'] == 'text' -%}
|
| 37 |
+
{{ item['text'] | trim }}
|
| 38 |
+
{%- endif -%}
|
| 39 |
+
{%- endfor -%}
|
| 40 |
+
{%- else -%}
|
| 41 |
+
{{ raise_exception("Invalid content type") }}
|
| 42 |
+
{%- endif -%}
|
| 43 |
+
{{ '<end_of_turn>
|
| 44 |
+
' }}
|
| 45 |
+
{%- endfor -%}
|
| 46 |
+
{%- if add_generation_prompt -%}
|
| 47 |
+
{{'<start_of_turn>model
|
| 48 |
+
'}}
|
| 49 |
+
{%- endif -%}
|
config.json
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Gemma3nForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"audio_config": {
|
| 6 |
+
"conf_attention_chunk_size": 12,
|
| 7 |
+
"conf_attention_context_left": 13,
|
| 8 |
+
"conf_attention_context_right": 0,
|
| 9 |
+
"conf_attention_logit_cap": 50.0,
|
| 10 |
+
"conf_conv_kernel_size": 5,
|
| 11 |
+
"conf_num_attention_heads": 8,
|
| 12 |
+
"conf_num_hidden_layers": 12,
|
| 13 |
+
"conf_reduction_factor": 4,
|
| 14 |
+
"conf_residual_weight": 0.5,
|
| 15 |
+
"gradient_clipping": 10000000000.0,
|
| 16 |
+
"hidden_size": 1536,
|
| 17 |
+
"input_feat_size": 128,
|
| 18 |
+
"model_type": "gemma3n_audio",
|
| 19 |
+
"pad_token_id": 0,
|
| 20 |
+
"rms_norm_eps": 1e-06,
|
| 21 |
+
"sscp_conv_channel_size": [
|
| 22 |
+
128,
|
| 23 |
+
32
|
| 24 |
+
],
|
| 25 |
+
"sscp_conv_group_norm_eps": 0.001,
|
| 26 |
+
"sscp_conv_kernel_size": [
|
| 27 |
+
[
|
| 28 |
+
3,
|
| 29 |
+
3
|
| 30 |
+
],
|
| 31 |
+
[
|
| 32 |
+
3,
|
| 33 |
+
3
|
| 34 |
+
]
|
| 35 |
+
],
|
| 36 |
+
"sscp_conv_stride_size": [
|
| 37 |
+
[
|
| 38 |
+
2,
|
| 39 |
+
2
|
| 40 |
+
],
|
| 41 |
+
[
|
| 42 |
+
2,
|
| 43 |
+
2
|
| 44 |
+
]
|
| 45 |
+
],
|
| 46 |
+
"torch_dtype": "bfloat16",
|
| 47 |
+
"vocab_offset": 262272,
|
| 48 |
+
"vocab_size": 128
|
| 49 |
+
},
|
| 50 |
+
"audio_soft_tokens_per_image": 188,
|
| 51 |
+
"audio_token_id": 262273,
|
| 52 |
+
"boa_token_id": 256000,
|
| 53 |
+
"boi_token_id": 255999,
|
| 54 |
+
"eoa_token_id": 262272,
|
| 55 |
+
"eoi_token_id": 262144,
|
| 56 |
+
"eos_token_id": [
|
| 57 |
+
1,
|
| 58 |
+
106
|
| 59 |
+
],
|
| 60 |
+
"hidden_size": 2048,
|
| 61 |
+
"image_token_id": 262145,
|
| 62 |
+
"initializer_range": 0.02,
|
| 63 |
+
"keys_to_ignore_at_inference": [
|
| 64 |
+
"past_key_values"
|
| 65 |
+
],
|
| 66 |
+
"model_type": "gemma3n",
|
| 67 |
+
"pad_token_id": 0,
|
| 68 |
+
"text_config": {
|
| 69 |
+
"activation_sparsity_pattern": [
|
| 70 |
+
0.95,
|
| 71 |
+
0.95,
|
| 72 |
+
0.95,
|
| 73 |
+
0.95,
|
| 74 |
+
0.95,
|
| 75 |
+
0.95,
|
| 76 |
+
0.95,
|
| 77 |
+
0.95,
|
| 78 |
+
0.95,
|
| 79 |
+
0.95,
|
| 80 |
+
0.0,
|
| 81 |
+
0.0,
|
| 82 |
+
0.0,
|
| 83 |
+
0.0,
|
| 84 |
+
0.0,
|
| 85 |
+
0.0,
|
| 86 |
+
0.0,
|
| 87 |
+
0.0,
|
| 88 |
+
0.0,
|
| 89 |
+
0.0,
|
| 90 |
+
0.0,
|
| 91 |
+
0.0,
|
| 92 |
+
0.0,
|
| 93 |
+
0.0,
|
| 94 |
+
0.0,
|
| 95 |
+
0.0,
|
| 96 |
+
0.0,
|
| 97 |
+
0.0,
|
| 98 |
+
0.0,
|
| 99 |
+
0.0
|
| 100 |
+
],
|
| 101 |
+
"altup_active_idx": 0,
|
| 102 |
+
"altup_coef_clip": 120.0,
|
| 103 |
+
"altup_correct_scale": true,
|
| 104 |
+
"altup_num_inputs": 4,
|
| 105 |
+
"attention_bias": false,
|
| 106 |
+
"attention_dropout": 0.0,
|
| 107 |
+
"final_logit_softcapping": 30.0,
|
| 108 |
+
"head_dim": 256,
|
| 109 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
| 110 |
+
"hidden_size": 2048,
|
| 111 |
+
"hidden_size_per_layer_input": 256,
|
| 112 |
+
"initializer_range": 0.02,
|
| 113 |
+
"intermediate_size": [
|
| 114 |
+
8192,
|
| 115 |
+
8192,
|
| 116 |
+
8192,
|
| 117 |
+
8192,
|
| 118 |
+
8192,
|
| 119 |
+
8192,
|
| 120 |
+
8192,
|
| 121 |
+
8192,
|
| 122 |
+
8192,
|
| 123 |
+
8192,
|
| 124 |
+
8192,
|
| 125 |
+
8192,
|
| 126 |
+
8192,
|
| 127 |
+
8192,
|
| 128 |
+
8192,
|
| 129 |
+
8192,
|
| 130 |
+
8192,
|
| 131 |
+
8192,
|
| 132 |
+
8192,
|
| 133 |
+
8192,
|
| 134 |
+
8192,
|
| 135 |
+
8192,
|
| 136 |
+
8192,
|
| 137 |
+
8192,
|
| 138 |
+
8192,
|
| 139 |
+
8192,
|
| 140 |
+
8192,
|
| 141 |
+
8192,
|
| 142 |
+
8192,
|
| 143 |
+
8192
|
| 144 |
+
],
|
| 145 |
+
"laurel_rank": 64,
|
| 146 |
+
"layer_types": [
|
| 147 |
+
"sliding_attention",
|
| 148 |
+
"sliding_attention",
|
| 149 |
+
"sliding_attention",
|
| 150 |
+
"sliding_attention",
|
| 151 |
+
"full_attention",
|
| 152 |
+
"sliding_attention",
|
| 153 |
+
"sliding_attention",
|
| 154 |
+
"sliding_attention",
|
| 155 |
+
"sliding_attention",
|
| 156 |
+
"full_attention",
|
| 157 |
+
"sliding_attention",
|
| 158 |
+
"sliding_attention",
|
| 159 |
+
"sliding_attention",
|
| 160 |
+
"sliding_attention",
|
| 161 |
+
"full_attention",
|
| 162 |
+
"sliding_attention",
|
| 163 |
+
"sliding_attention",
|
| 164 |
+
"sliding_attention",
|
| 165 |
+
"sliding_attention",
|
| 166 |
+
"full_attention",
|
| 167 |
+
"sliding_attention",
|
| 168 |
+
"sliding_attention",
|
| 169 |
+
"sliding_attention",
|
| 170 |
+
"sliding_attention",
|
| 171 |
+
"full_attention",
|
| 172 |
+
"sliding_attention",
|
| 173 |
+
"sliding_attention",
|
| 174 |
+
"sliding_attention",
|
| 175 |
+
"sliding_attention",
|
| 176 |
+
"full_attention"
|
| 177 |
+
],
|
| 178 |
+
"max_position_embeddings": 32768,
|
| 179 |
+
"model_type": "gemma3n_text",
|
| 180 |
+
"num_attention_heads": 8,
|
| 181 |
+
"num_hidden_layers": 30,
|
| 182 |
+
"num_key_value_heads": 2,
|
| 183 |
+
"num_kv_shared_layers": 10,
|
| 184 |
+
"rms_norm_eps": 1e-06,
|
| 185 |
+
"rope_local_base_freq": 10000.0,
|
| 186 |
+
"rope_scaling": null,
|
| 187 |
+
"rope_theta": 1000000.0,
|
| 188 |
+
"sliding_window": 512,
|
| 189 |
+
"torch_dtype": "bfloat16",
|
| 190 |
+
"use_cache": true,
|
| 191 |
+
"vocab_size": 262400,
|
| 192 |
+
"vocab_size_per_layer_input": 262144
|
| 193 |
+
},
|
| 194 |
+
"torch_dtype": "bfloat16",
|
| 195 |
+
"transformers_version": "4.54.1",
|
| 196 |
+
"vision_config": {
|
| 197 |
+
"architecture": "mobilenetv5_300m_enc",
|
| 198 |
+
"do_pooling": false,
|
| 199 |
+
"hidden_size": 2048,
|
| 200 |
+
"initializer_range": 0.02,
|
| 201 |
+
"label_names": [
|
| 202 |
+
"LABEL_0",
|
| 203 |
+
"LABEL_1"
|
| 204 |
+
],
|
| 205 |
+
"model_args": null,
|
| 206 |
+
"model_type": "gemma3n_vision",
|
| 207 |
+
"num_classes": 2,
|
| 208 |
+
"pad_token_id": 0,
|
| 209 |
+
"rms_norm_eps": 1e-06,
|
| 210 |
+
"torch_dtype": "bfloat16",
|
| 211 |
+
"vocab_offset": 262144,
|
| 212 |
+
"vocab_size": 128
|
| 213 |
+
},
|
| 214 |
+
"vision_soft_tokens_per_image": 256
|
| 215 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 2,
|
| 3 |
+
"cache_implementation": "hybrid",
|
| 4 |
+
"do_sample": true,
|
| 5 |
+
"eos_token_id": [
|
| 6 |
+
1,
|
| 7 |
+
106
|
| 8 |
+
],
|
| 9 |
+
"pad_token_id": 0,
|
| 10 |
+
"top_k": 64,
|
| 11 |
+
"top_p": 0.95,
|
| 12 |
+
"transformers_version": "4.54.1"
|
| 13 |
+
}
|
model-00001-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d42585727cd181e32242e8ac0013a9cbff56270385f64f7026aa9ade91bd1016
|
| 3 |
+
size 4983256208
|
model-00002-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3738470718db816a8ae74f79193447e2a8e6f7be8bdb38c725c7944c26c73b45
|
| 3 |
+
size 4992754064
|
model-00003-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d5a6d4e33327f3069360a035fd0dee305d749ecf7d59b3e734d07035241de92
|
| 3 |
+
size 903075744
|
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,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": null,
|
| 3 |
+
"data_format": "channels_first",
|
| 4 |
+
"default_to_square": false,
|
| 5 |
+
"device": null,
|
| 6 |
+
"disable_grouping": null,
|
| 7 |
+
"dither": 0.0,
|
| 8 |
+
"do_center_crop": null,
|
| 9 |
+
"do_convert_rgb": null,
|
| 10 |
+
"do_normalize": false,
|
| 11 |
+
"do_rescale": true,
|
| 12 |
+
"do_resize": true,
|
| 13 |
+
"feature_extractor_type": "Gemma3nAudioFeatureExtractor",
|
| 14 |
+
"feature_size": 128,
|
| 15 |
+
"fft_length": 1024,
|
| 16 |
+
"fft_overdrive": true,
|
| 17 |
+
"frame_length": 512,
|
| 18 |
+
"hop_length": 160,
|
| 19 |
+
"image_mean": [
|
| 20 |
+
0.5,
|
| 21 |
+
0.5,
|
| 22 |
+
0.5
|
| 23 |
+
],
|
| 24 |
+
"image_processor_type": "SiglipImageProcessorFast",
|
| 25 |
+
"image_seq_length": 256,
|
| 26 |
+
"image_std": [
|
| 27 |
+
0.5,
|
| 28 |
+
0.5,
|
| 29 |
+
0.5
|
| 30 |
+
],
|
| 31 |
+
"input_data_format": null,
|
| 32 |
+
"input_scale_factor": 1.0,
|
| 33 |
+
"max_frequency": 7600.0,
|
| 34 |
+
"mel_floor": 1e-05,
|
| 35 |
+
"min_frequency": 125.0,
|
| 36 |
+
"padding_side": "right",
|
| 37 |
+
"padding_value": 0.0,
|
| 38 |
+
"per_bin_mean": null,
|
| 39 |
+
"per_bin_stddev": null,
|
| 40 |
+
"preemphasis": 0.97,
|
| 41 |
+
"preemphasis_htk_flavor": true,
|
| 42 |
+
"processor_class": "Gemma3nProcessor",
|
| 43 |
+
"resample": 2,
|
| 44 |
+
"rescale_factor": 0.00392156862745098,
|
| 45 |
+
"return_attention_mask": true,
|
| 46 |
+
"return_tensors": null,
|
| 47 |
+
"sampling_rate": 16000,
|
| 48 |
+
"size": {
|
| 49 |
+
"height": 768,
|
| 50 |
+
"width": 768
|
| 51 |
+
}
|
| 52 |
+
}
|
processor_config.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"audio_seq_length": 188,
|
| 3 |
+
"image_seq_length": 256,
|
| 4 |
+
"processor_class": "Gemma3nProcessor"
|
| 5 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"audio_token": "<audio_soft_token>",
|
| 3 |
+
"boa_token": "<start_of_audio>",
|
| 4 |
+
"boi_token": "<start_of_image>",
|
| 5 |
+
"bos_token": {
|
| 6 |
+
"content": "<bos>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false
|
| 11 |
+
},
|
| 12 |
+
"eoa_token": "<end_of_audio>",
|
| 13 |
+
"eoi_token": "<end_of_image>",
|
| 14 |
+
"eos_token": {
|
| 15 |
+
"content": "<eos>",
|
| 16 |
+
"lstrip": false,
|
| 17 |
+
"normalized": false,
|
| 18 |
+
"rstrip": false,
|
| 19 |
+
"single_word": false
|
| 20 |
+
},
|
| 21 |
+
"image_token": "<image_soft_token>",
|
| 22 |
+
"pad_token": {
|
| 23 |
+
"content": "<pad>",
|
| 24 |
+
"lstrip": false,
|
| 25 |
+
"normalized": false,
|
| 26 |
+
"rstrip": false,
|
| 27 |
+
"single_word": false
|
| 28 |
+
},
|
| 29 |
+
"unk_token": {
|
| 30 |
+
"content": "<unk>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false
|
| 35 |
+
}
|
| 36 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6c35ee648c07754b44cd9e371c75d4caa05c4504910b7ad29b1847ee9d8ba5d
|
| 3 |
+
size 33442553
|
tokenizer.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea5f0cc48abfbfc04d14562270a32e02149a3e7035f368cc5a462786f4a59961
|
| 3 |
+
size 4696020
|
tokenizer_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|