Lalaa-a commited on
Commit
12b7742
·
verified ·
1 Parent(s): f265cb9

Copy SinhalaMMLU-SharedTask/team-zeroShot-gemma4-lora

Browse files
team-zeroShot-gemma4-lora/.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
team-zeroShot-gemma4-lora/README.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Lalaa-a/gemma4-8b-text-only
3
+ library_name: peft
4
+ license: gemma
5
+ tags: [sinhala, mmlu, multiple-choice, lora]
6
+ ---
7
+
8
+ # Sinhala MMLU: LoRA adapter + choice head
9
+
10
+ LoRA adapter (rank 32, all 24 kept layers) for
11
+ [Lalaa-a/gemma4-8b-text-only](https://huggingface.co/Lalaa-a/gemma4-8b-text-only) (text weights of
12
+ google/gemma-4-E4B-it) cut after layer 24, plus `head.pt`: a small transformer choice head that scores each
13
+ option from Gemma's hidden states. Not usable with plain `AutoModelForCausalLM`: load it with the team's
14
+ `inference.py` (main repository), which rebuilds the cut model from `meta.json`.
15
+
16
+ | File | What |
17
+ |---|---|
18
+ | `lora/` | PEFT adapter (`adapter_config.json`, `adapter_model.safetensors`) |
19
+ | `head.pt` | choice head weights (PyTorch state dict) |
20
+ | `meta.json` | how to rebuild the network: layer cut, head size, token limits, readout |
21
+ | `config.yaml` | the full training config of this checkpoint |
team-zeroShot-gemma4-lora/config.yaml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ seed: 0
2
+ model:
3
+ name: Lalaa-a/gemma4-8b-text-only
4
+ num_layers: 24
5
+ dtype: bfloat16
6
+ attn_implementation: sdpa
7
+ choice_readout: marker
8
+ gradient_checkpointing: true
9
+ offload_embeddings: true
10
+ data:
11
+ max_train_questions: null
12
+ max_test_questions: 0
13
+ max_state_tokens: 512
14
+ max_choice_tokens: 64
15
+ max_question_tokens: 512
16
+ batch_size: 4
17
+ num_workers: 4
18
+ lora:
19
+ last_k_layers: 24
20
+ modules: all
21
+ r: 32
22
+ alpha: 64
23
+ dropout: 0.0
24
+ head:
25
+ new_dim: 512
26
+ num_layers: 2
27
+ optim:
28
+ epochs: 2
29
+ lr_lora: 0.0001
30
+ lr_head: 0.001
31
+ weight_decay: 0.01
32
+ warmup_ratio: 0.05
33
+ grad_clip: 1.0
34
+ grad_accum_steps: 4
35
+ logging:
36
+ log_every: 10
37
+ eval_every: 100
38
+ save_every: 876
39
+ distill:
40
+ enabled: false
41
+ teacher_ce: 1.0
42
+ kl: 0.5
43
+ hidden: 0.5
44
+ temperature: 2.0
45
+ eval:
46
+ grade_weights:
47
+ '6': 179
48
+ '7': 209
49
+ '8': 254
50
+ '9': 93
51
+ '10': 373
52
+ '11': 645
53
+ AL: 485
54
+ best_metric: accuracy_test_mix
team-zeroShot-gemma4-lora/head.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3f86c1353ebcf533e30f74e5daeda6a717206dda6d02b05d5ecca974313106c
3
+ size 73604763
team-zeroShot-gemma4-lora/lora/README.md ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: /home/ubuntu/gemma_model/models
3
+ library_name: peft
4
+ tags:
5
+ - base_model:adapter:/home/ubuntu/gemma_model/models
6
+ - lora
7
+ - transformers
8
+ ---
9
+
10
+ # Model Card for Model ID
11
+
12
+ <!-- Provide a quick summary of what the model is/does. -->
13
+
14
+
15
+
16
+ ## Model Details
17
+
18
+ ### Model Description
19
+
20
+ <!-- Provide a longer summary of what this model is. -->
21
+
22
+
23
+
24
+ - **Developed by:** [More Information Needed]
25
+ - **Funded by [optional]:** [More Information Needed]
26
+ - **Shared by [optional]:** [More Information Needed]
27
+ - **Model type:** [More Information Needed]
28
+ - **Language(s) (NLP):** [More Information Needed]
29
+ - **License:** [More Information Needed]
30
+ - **Finetuned from model [optional]:** [More Information Needed]
31
+
32
+ ### Model Sources [optional]
33
+
34
+ <!-- Provide the basic links for the model. -->
35
+
36
+ - **Repository:** [More Information Needed]
37
+ - **Paper [optional]:** [More Information Needed]
38
+ - **Demo [optional]:** [More Information Needed]
39
+
40
+ ## Uses
41
+
42
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
43
+
44
+ ### Direct Use
45
+
46
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
47
+
48
+ [More Information Needed]
49
+
50
+ ### Downstream Use [optional]
51
+
52
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
53
+
54
+ [More Information Needed]
55
+
56
+ ### Out-of-Scope Use
57
+
58
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
59
+
60
+ [More Information Needed]
61
+
62
+ ## Bias, Risks, and Limitations
63
+
64
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
65
+
66
+ [More Information Needed]
67
+
68
+ ### Recommendations
69
+
70
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
71
+
72
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
73
+
74
+ ## How to Get Started with the Model
75
+
76
+ Use the code below to get started with the model.
77
+
78
+ [More Information Needed]
79
+
80
+ ## Training Details
81
+
82
+ ### Training Data
83
+
84
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
85
+
86
+ [More Information Needed]
87
+
88
+ ### Training Procedure
89
+
90
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
91
+
92
+ #### Preprocessing [optional]
93
+
94
+ [More Information Needed]
95
+
96
+
97
+ #### Training Hyperparameters
98
+
99
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
100
+
101
+ #### Speeds, Sizes, Times [optional]
102
+
103
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
104
+
105
+ [More Information Needed]
106
+
107
+ ## Evaluation
108
+
109
+ <!-- This section describes the evaluation protocols and provides the results. -->
110
+
111
+ ### Testing Data, Factors & Metrics
112
+
113
+ #### Testing Data
114
+
115
+ <!-- This should link to a Dataset Card if possible. -->
116
+
117
+ [More Information Needed]
118
+
119
+ #### Factors
120
+
121
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
122
+
123
+ [More Information Needed]
124
+
125
+ #### Metrics
126
+
127
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
128
+
129
+ [More Information Needed]
130
+
131
+ ### Results
132
+
133
+ [More Information Needed]
134
+
135
+ #### Summary
136
+
137
+
138
+
139
+ ## Model Examination [optional]
140
+
141
+ <!-- Relevant interpretability work for the model goes here -->
142
+
143
+ [More Information Needed]
144
+
145
+ ## Environmental Impact
146
+
147
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
148
+
149
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
150
+
151
+ - **Hardware Type:** [More Information Needed]
152
+ - **Hours used:** [More Information Needed]
153
+ - **Cloud Provider:** [More Information Needed]
154
+ - **Compute Region:** [More Information Needed]
155
+ - **Carbon Emitted:** [More Information Needed]
156
+
157
+ ## Technical Specifications [optional]
158
+
159
+ ### Model Architecture and Objective
160
+
161
+ [More Information Needed]
162
+
163
+ ### Compute Infrastructure
164
+
165
+ [More Information Needed]
166
+
167
+ #### Hardware
168
+
169
+ [More Information Needed]
170
+
171
+ #### Software
172
+
173
+ [More Information Needed]
174
+
175
+ ## Citation [optional]
176
+
177
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
178
+
179
+ **BibTeX:**
180
+
181
+ [More Information Needed]
182
+
183
+ **APA:**
184
+
185
+ [More Information Needed]
186
+
187
+ ## Glossary [optional]
188
+
189
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
190
+
191
+ [More Information Needed]
192
+
193
+ ## More Information [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Authors [optional]
198
+
199
+ [More Information Needed]
200
+
201
+ ## Model Card Contact
202
+
203
+ [More Information Needed]
204
+ ### Framework versions
205
+
206
+ - PEFT 0.21.0
team-zeroShot-gemma4-lora/lora/adapter_config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": {
6
+ "base_model_class": "Gemma4TextModel",
7
+ "parent_library": "transformers.models.gemma4.modeling_gemma4"
8
+ },
9
+ "base_model_name_or_path": "Lalaa-a/gemma4-8b-text-only",
10
+ "bias": "none",
11
+ "corda_config": null,
12
+ "ensure_weight_tying": false,
13
+ "eva_config": null,
14
+ "exclude_modules": null,
15
+ "fan_in_fan_out": false,
16
+ "inference_mode": true,
17
+ "init_lora_weights": true,
18
+ "kasa_config": null,
19
+ "layer_replication": null,
20
+ "layers_pattern": null,
21
+ "layers_to_transform": null,
22
+ "loftq_config": {},
23
+ "lora_alpha": 64,
24
+ "lora_bias": false,
25
+ "lora_dropout": 0.0,
26
+ "lora_ga_config": null,
27
+ "megatron_config": null,
28
+ "megatron_core": "megatron.core",
29
+ "modules_to_save": null,
30
+ "monteclora_config": null,
31
+ "peft_type": "LORA",
32
+ "peft_version": "0.21.0",
33
+ "qalora_group_size": 16,
34
+ "r": 32,
35
+ "rank_pattern": {},
36
+ "revision": null,
37
+ "target_modules": ".*(layers\\.0\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.0\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.1\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.1\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.2\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.2\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.3\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.3\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.4\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.4\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.5\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.5\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.6\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.6\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.7\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.7\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.8\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.8\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.9\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.9\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.10\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.10\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.11\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.11\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.12\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.12\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.13\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.13\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.14\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.14\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.15\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.15\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.16\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.16\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.17\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.17\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.18\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.18\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.19\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.19\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.20\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.20\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.21\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.21\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.22\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.22\\.mlp\\.(gate_proj|up_proj|down_proj)|layers\\.23\\.self_attn\\.(q_proj|k_proj|v_proj|o_proj)|layers\\.23\\.mlp\\.(gate_proj|up_proj|down_proj))",
38
+ "target_parameters": null,
39
+ "task_type": null,
40
+ "trainable_token_indices": null,
41
+ "use_bdlora": null,
42
+ "use_dora": false,
43
+ "use_qalora": false,
44
+ "use_rslora": false,
45
+ "velora_config": null
46
+ }
team-zeroShot-gemma4-lora/lora/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b63f7f58d31a4fb34145bc9fde515c71f1d4fa3467220b283b977ea741c3e7d
3
+ size 167815144
team-zeroShot-gemma4-lora/meta.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "exp_id": "v8_final-20261028-182325",
3
+ "step": 876,
4
+ "model_name": "Lalaa-a/gemma4-8b-text-only",
5
+ "num_layers": 24,
6
+ "dtype": "bfloat16",
7
+ "attn_implementation": "sdpa",
8
+ "head_config": {
9
+ "new_dim": 512,
10
+ "num_layers": 2
11
+ },
12
+ "max_state_tokens": 512,
13
+ "max_choice_tokens": 64,
14
+ "max_question_tokens": 512,
15
+ "choice_readout": "marker",
16
+ "offload_embeddings": true,
17
+ "lora_modules": "all"
18
+ }