Aakash010 commited on
Commit
f6a5946
·
verified ·
1 Parent(s): d45f998

Fine-tuned MedGemma-4B on medical vision dataset

Browse files
Files changed (3) hide show
  1. config.json +113 -0
  2. generation_config.json +10 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Gemma3ForConditionalGeneration"
4
+ ],
5
+ "boi_token_index": 255999,
6
+ "dtype": "float16",
7
+ "eoi_token_index": 256000,
8
+ "eos_token_id": [
9
+ 1,
10
+ 106
11
+ ],
12
+ "image_token_index": 262144,
13
+ "initializer_range": 0.02,
14
+ "mm_tokens_per_image": 256,
15
+ "model_type": "gemma3",
16
+ "quantization_config": {
17
+ "_load_in_4bit": true,
18
+ "_load_in_8bit": false,
19
+ "bnb_4bit_compute_dtype": "float16",
20
+ "bnb_4bit_quant_storage": "uint8",
21
+ "bnb_4bit_quant_type": "nf4",
22
+ "bnb_4bit_use_double_quant": true,
23
+ "llm_int8_enable_fp32_cpu_offload": false,
24
+ "llm_int8_has_fp16_weight": false,
25
+ "llm_int8_skip_modules": null,
26
+ "llm_int8_threshold": 6.0,
27
+ "load_in_4bit": true,
28
+ "load_in_8bit": false,
29
+ "quant_method": "bitsandbytes"
30
+ },
31
+ "text_config": {
32
+ "_sliding_window_pattern": 6,
33
+ "attention_bias": false,
34
+ "attention_dropout": 0.0,
35
+ "attn_logit_softcapping": null,
36
+ "dtype": "float16",
37
+ "final_logit_softcapping": null,
38
+ "head_dim": 256,
39
+ "hidden_activation": "gelu_pytorch_tanh",
40
+ "hidden_size": 2560,
41
+ "initializer_range": 0.02,
42
+ "intermediate_size": 10240,
43
+ "layer_types": [
44
+ "sliding_attention",
45
+ "sliding_attention",
46
+ "sliding_attention",
47
+ "sliding_attention",
48
+ "sliding_attention",
49
+ "full_attention",
50
+ "sliding_attention",
51
+ "sliding_attention",
52
+ "sliding_attention",
53
+ "sliding_attention",
54
+ "sliding_attention",
55
+ "full_attention",
56
+ "sliding_attention",
57
+ "sliding_attention",
58
+ "sliding_attention",
59
+ "sliding_attention",
60
+ "sliding_attention",
61
+ "full_attention",
62
+ "sliding_attention",
63
+ "sliding_attention",
64
+ "sliding_attention",
65
+ "sliding_attention",
66
+ "sliding_attention",
67
+ "full_attention",
68
+ "sliding_attention",
69
+ "sliding_attention",
70
+ "sliding_attention",
71
+ "sliding_attention",
72
+ "sliding_attention",
73
+ "full_attention",
74
+ "sliding_attention",
75
+ "sliding_attention",
76
+ "sliding_attention",
77
+ "sliding_attention"
78
+ ],
79
+ "max_position_embeddings": 131072,
80
+ "model_type": "gemma3_text",
81
+ "num_attention_heads": 8,
82
+ "num_hidden_layers": 34,
83
+ "num_key_value_heads": 4,
84
+ "query_pre_attn_scalar": 256,
85
+ "rms_norm_eps": 1e-06,
86
+ "rope_local_base_freq": 10000,
87
+ "rope_scaling": {
88
+ "factor": 8.0,
89
+ "rope_type": "linear"
90
+ },
91
+ "rope_theta": 1000000,
92
+ "sliding_window": 1024,
93
+ "use_bidirectional_attention": false,
94
+ "use_cache": true,
95
+ "vocab_size": 262208
96
+ },
97
+ "transformers_version": "4.57.3",
98
+ "vision_config": {
99
+ "attention_dropout": 0.0,
100
+ "dtype": "float16",
101
+ "hidden_act": "gelu_pytorch_tanh",
102
+ "hidden_size": 1152,
103
+ "image_size": 896,
104
+ "intermediate_size": 4304,
105
+ "layer_norm_eps": 1e-06,
106
+ "model_type": "siglip_vision_model",
107
+ "num_attention_heads": 16,
108
+ "num_channels": 3,
109
+ "num_hidden_layers": 27,
110
+ "patch_size": 14,
111
+ "vision_use_head": false
112
+ }
113
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "eos_token_id": [
5
+ 1,
6
+ 106
7
+ ],
8
+ "pad_token_id": 0,
9
+ "transformers_version": "4.57.3"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9b54a1cb4990751099c8026368cf3507e2a66933ee840411f6036b91b0a41c7
3
+ size 3228932629