kon172verma commited on
Commit
fadc4b2
·
verified ·
1 Parent(s): 13b170e

Add AdaLoRA adapter: llama3.2-1b_A_1k [20260827-173745]

Browse files
.gitattributes CHANGED
@@ -102,3 +102,4 @@ v2.0/llama3.2-1b_QLoRA_A_1k_20260827-021645/tokenizer.json filter=lfs diff=lfs m
102
  v2.0/llama3.2-1b_QLoRA_B_1k_20260827-022811/tokenizer.json filter=lfs diff=lfs merge=lfs -text
103
  v2.0/qwen3-0.6b_AdaLoRA_D_1k_20260827-024250/tokenizer.json filter=lfs diff=lfs merge=lfs -text
104
  v2.0/llama3.2-1b_QLoRA_C_1k_20260827-173442/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
102
  v2.0/llama3.2-1b_QLoRA_B_1k_20260827-022811/tokenizer.json filter=lfs diff=lfs merge=lfs -text
103
  v2.0/qwen3-0.6b_AdaLoRA_D_1k_20260827-024250/tokenizer.json filter=lfs diff=lfs merge=lfs -text
104
  v2.0/llama3.2-1b_QLoRA_C_1k_20260827-173442/tokenizer.json filter=lfs diff=lfs merge=lfs -text
105
+ v2.0/llama3.2-1b_AdaLoRA_A_1k_20260827-173745/tokenizer.json filter=lfs diff=lfs merge=lfs -text
v2.0/llama3.2-1b_AdaLoRA_A_1k_20260827-173745/README.md ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Llama-3.2-1B-Instruct
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:meta-llama/Llama-3.2-1B-Instruct
7
+ - sft
8
+ - transformers
9
+ - trl
10
+ ---
11
+
12
+ # Model Card for Model ID
13
+
14
+ <!-- Provide a quick summary of what the model is/does. -->
15
+
16
+
17
+
18
+ ## Model Details
19
+
20
+ ### Model Description
21
+
22
+ <!-- Provide a longer summary of what this model is. -->
23
+
24
+
25
+
26
+ - **Developed by:** [More Information Needed]
27
+ - **Funded by [optional]:** [More Information Needed]
28
+ - **Shared by [optional]:** [More Information Needed]
29
+ - **Model type:** [More Information Needed]
30
+ - **Language(s) (NLP):** [More Information Needed]
31
+ - **License:** [More Information Needed]
32
+ - **Finetuned from model [optional]:** [More Information Needed]
33
+
34
+ ### Model Sources [optional]
35
+
36
+ <!-- Provide the basic links for the model. -->
37
+
38
+ - **Repository:** [More Information Needed]
39
+ - **Paper [optional]:** [More Information Needed]
40
+ - **Demo [optional]:** [More Information Needed]
41
+
42
+ ## Uses
43
+
44
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
45
+
46
+ ### Direct Use
47
+
48
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Downstream Use [optional]
53
+
54
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
55
+
56
+ [More Information Needed]
57
+
58
+ ### Out-of-Scope Use
59
+
60
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ## Bias, Risks, and Limitations
65
+
66
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
67
+
68
+ [More Information Needed]
69
+
70
+ ### Recommendations
71
+
72
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
73
+
74
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
75
+
76
+ ## How to Get Started with the Model
77
+
78
+ Use the code below to get started with the model.
79
+
80
+ [More Information Needed]
81
+
82
+ ## Training Details
83
+
84
+ ### Training Data
85
+
86
+ <!-- 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. -->
87
+
88
+ [More Information Needed]
89
+
90
+ ### Training Procedure
91
+
92
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
93
+
94
+ #### Preprocessing [optional]
95
+
96
+ [More Information Needed]
97
+
98
+
99
+ #### Training Hyperparameters
100
+
101
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
102
+
103
+ #### Speeds, Sizes, Times [optional]
104
+
105
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
106
+
107
+ [More Information Needed]
108
+
109
+ ## Evaluation
110
+
111
+ <!-- This section describes the evaluation protocols and provides the results. -->
112
+
113
+ ### Testing Data, Factors & Metrics
114
+
115
+ #### Testing Data
116
+
117
+ <!-- This should link to a Dataset Card if possible. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Factors
122
+
123
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
124
+
125
+ [More Information Needed]
126
+
127
+ #### Metrics
128
+
129
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
130
+
131
+ [More Information Needed]
132
+
133
+ ### Results
134
+
135
+ [More Information Needed]
136
+
137
+ #### Summary
138
+
139
+
140
+
141
+ ## Model Examination [optional]
142
+
143
+ <!-- Relevant interpretability work for the model goes here -->
144
+
145
+ [More Information Needed]
146
+
147
+ ## Environmental Impact
148
+
149
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
150
+
151
+ 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).
152
+
153
+ - **Hardware Type:** [More Information Needed]
154
+ - **Hours used:** [More Information Needed]
155
+ - **Cloud Provider:** [More Information Needed]
156
+ - **Compute Region:** [More Information Needed]
157
+ - **Carbon Emitted:** [More Information Needed]
158
+
159
+ ## Technical Specifications [optional]
160
+
161
+ ### Model Architecture and Objective
162
+
163
+ [More Information Needed]
164
+
165
+ ### Compute Infrastructure
166
+
167
+ [More Information Needed]
168
+
169
+ #### Hardware
170
+
171
+ [More Information Needed]
172
+
173
+ #### Software
174
+
175
+ [More Information Needed]
176
+
177
+ ## Citation [optional]
178
+
179
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
180
+
181
+ **BibTeX:**
182
+
183
+ [More Information Needed]
184
+
185
+ **APA:**
186
+
187
+ [More Information Needed]
188
+
189
+ ## Glossary [optional]
190
+
191
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
192
+
193
+ [More Information Needed]
194
+
195
+ ## More Information [optional]
196
+
197
+ [More Information Needed]
198
+
199
+ ## Model Card Authors [optional]
200
+
201
+ [More Information Needed]
202
+
203
+ ## Model Card Contact
204
+
205
+ [More Information Needed]
206
+ ### Framework versions
207
+
208
+ - PEFT 0.20.0
v2.0/llama3.2-1b_AdaLoRA_A_1k_20260827-173745/adapter_config.json ADDED
@@ -0,0 +1,503 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "meta-llama/Llama-3.2-1B-Instruct",
7
+ "beta1": 0.85,
8
+ "beta2": 0.85,
9
+ "bias": "none",
10
+ "corda_config": null,
11
+ "deltaT": 10,
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
+ "init_r": 12,
19
+ "layer_replication": null,
20
+ "layers_pattern": null,
21
+ "layers_to_transform": null,
22
+ "loftq_config": {},
23
+ "lora_alpha": 24,
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
+ "orth_reg_weight": 0.1,
32
+ "peft_type": "ADALORA",
33
+ "peft_version": "0.20.0",
34
+ "qalora_group_size": 16,
35
+ "r": 8,
36
+ "rank_pattern": {
37
+ "model.layers.0.self_attn.q_proj.lora_E": [
38
+ false,
39
+ false,
40
+ false,
41
+ false,
42
+ false,
43
+ false,
44
+ false,
45
+ false,
46
+ false,
47
+ false,
48
+ false,
49
+ false
50
+ ],
51
+ "model.layers.0.self_attn.v_proj.lora_E": [
52
+ false,
53
+ false,
54
+ true,
55
+ false,
56
+ false,
57
+ true,
58
+ false,
59
+ false,
60
+ false,
61
+ false,
62
+ false,
63
+ false
64
+ ],
65
+ "model.layers.1.self_attn.q_proj.lora_E": [
66
+ true,
67
+ false,
68
+ true,
69
+ true,
70
+ false,
71
+ false,
72
+ false,
73
+ false,
74
+ false,
75
+ true,
76
+ true,
77
+ false
78
+ ],
79
+ "model.layers.1.self_attn.v_proj.lora_E": [
80
+ false,
81
+ true,
82
+ false,
83
+ true,
84
+ true,
85
+ false,
86
+ false,
87
+ true,
88
+ false,
89
+ false,
90
+ true,
91
+ false
92
+ ],
93
+ "model.layers.10.self_attn.q_proj.lora_E": [
94
+ true,
95
+ true,
96
+ true,
97
+ true,
98
+ true,
99
+ true,
100
+ true,
101
+ true,
102
+ true,
103
+ false,
104
+ false,
105
+ true
106
+ ],
107
+ "model.layers.10.self_attn.v_proj.lora_E": [
108
+ false,
109
+ false,
110
+ true,
111
+ true,
112
+ false,
113
+ true,
114
+ true,
115
+ false,
116
+ false,
117
+ false,
118
+ true,
119
+ false
120
+ ],
121
+ "model.layers.11.self_attn.q_proj.lora_E": [
122
+ false,
123
+ false,
124
+ false,
125
+ true,
126
+ false,
127
+ false,
128
+ false,
129
+ false,
130
+ false,
131
+ false,
132
+ false,
133
+ false
134
+ ],
135
+ "model.layers.11.self_attn.v_proj.lora_E": [
136
+ true,
137
+ false,
138
+ false,
139
+ false,
140
+ false,
141
+ true,
142
+ false,
143
+ false,
144
+ false,
145
+ false,
146
+ true,
147
+ true
148
+ ],
149
+ "model.layers.12.self_attn.q_proj.lora_E": [
150
+ false,
151
+ false,
152
+ false,
153
+ false,
154
+ false,
155
+ false,
156
+ false,
157
+ false,
158
+ false,
159
+ false,
160
+ false,
161
+ false
162
+ ],
163
+ "model.layers.12.self_attn.v_proj.lora_E": [
164
+ false,
165
+ false,
166
+ true,
167
+ false,
168
+ false,
169
+ false,
170
+ false,
171
+ false,
172
+ false,
173
+ false,
174
+ false,
175
+ false
176
+ ],
177
+ "model.layers.13.self_attn.q_proj.lora_E": [
178
+ false,
179
+ false,
180
+ false,
181
+ false,
182
+ false,
183
+ false,
184
+ false,
185
+ false,
186
+ false,
187
+ false,
188
+ false,
189
+ false
190
+ ],
191
+ "model.layers.13.self_attn.v_proj.lora_E": [
192
+ true,
193
+ false,
194
+ false,
195
+ true,
196
+ false,
197
+ false,
198
+ true,
199
+ false,
200
+ false,
201
+ false,
202
+ false,
203
+ false
204
+ ],
205
+ "model.layers.14.self_attn.q_proj.lora_E": [
206
+ false,
207
+ true,
208
+ false,
209
+ false,
210
+ false,
211
+ false,
212
+ false,
213
+ false,
214
+ false,
215
+ false,
216
+ false,
217
+ true
218
+ ],
219
+ "model.layers.14.self_attn.v_proj.lora_E": [
220
+ false,
221
+ false,
222
+ false,
223
+ false,
224
+ false,
225
+ false,
226
+ false,
227
+ false,
228
+ false,
229
+ false,
230
+ false,
231
+ false
232
+ ],
233
+ "model.layers.15.self_attn.q_proj.lora_E": [
234
+ false,
235
+ false,
236
+ false,
237
+ false,
238
+ false,
239
+ false,
240
+ false,
241
+ false,
242
+ false,
243
+ false,
244
+ false,
245
+ false
246
+ ],
247
+ "model.layers.15.self_attn.v_proj.lora_E": [
248
+ false,
249
+ false,
250
+ false,
251
+ false,
252
+ false,
253
+ false,
254
+ false,
255
+ false,
256
+ false,
257
+ false,
258
+ false,
259
+ false
260
+ ],
261
+ "model.layers.2.self_attn.q_proj.lora_E": [
262
+ true,
263
+ false,
264
+ false,
265
+ false,
266
+ false,
267
+ false,
268
+ false,
269
+ true,
270
+ true,
271
+ false,
272
+ false,
273
+ false
274
+ ],
275
+ "model.layers.2.self_attn.v_proj.lora_E": [
276
+ true,
277
+ false,
278
+ true,
279
+ true,
280
+ true,
281
+ true,
282
+ true,
283
+ true,
284
+ false,
285
+ true,
286
+ true,
287
+ false
288
+ ],
289
+ "model.layers.3.self_attn.q_proj.lora_E": [
290
+ false,
291
+ false,
292
+ false,
293
+ true,
294
+ false,
295
+ false,
296
+ false,
297
+ false,
298
+ false,
299
+ false,
300
+ false,
301
+ false
302
+ ],
303
+ "model.layers.3.self_attn.v_proj.lora_E": [
304
+ true,
305
+ false,
306
+ false,
307
+ false,
308
+ false,
309
+ true,
310
+ true,
311
+ true,
312
+ true,
313
+ true,
314
+ false,
315
+ false
316
+ ],
317
+ "model.layers.4.self_attn.q_proj.lora_E": [
318
+ true,
319
+ false,
320
+ false,
321
+ false,
322
+ false,
323
+ true,
324
+ false,
325
+ false,
326
+ false,
327
+ false,
328
+ false,
329
+ false
330
+ ],
331
+ "model.layers.4.self_attn.v_proj.lora_E": [
332
+ true,
333
+ true,
334
+ true,
335
+ true,
336
+ true,
337
+ false,
338
+ true,
339
+ true,
340
+ false,
341
+ true,
342
+ true,
343
+ true
344
+ ],
345
+ "model.layers.5.self_attn.q_proj.lora_E": [
346
+ true,
347
+ true,
348
+ true,
349
+ false,
350
+ false,
351
+ false,
352
+ false,
353
+ false,
354
+ false,
355
+ true,
356
+ true,
357
+ false
358
+ ],
359
+ "model.layers.5.self_attn.v_proj.lora_E": [
360
+ true,
361
+ true,
362
+ true,
363
+ false,
364
+ true,
365
+ false,
366
+ false,
367
+ false,
368
+ true,
369
+ true,
370
+ true,
371
+ true
372
+ ],
373
+ "model.layers.6.self_attn.q_proj.lora_E": [
374
+ false,
375
+ false,
376
+ false,
377
+ true,
378
+ false,
379
+ true,
380
+ true,
381
+ true,
382
+ false,
383
+ true,
384
+ true,
385
+ false
386
+ ],
387
+ "model.layers.6.self_attn.v_proj.lora_E": [
388
+ true,
389
+ true,
390
+ true,
391
+ false,
392
+ false,
393
+ false,
394
+ false,
395
+ true,
396
+ false,
397
+ false,
398
+ false,
399
+ true
400
+ ],
401
+ "model.layers.7.self_attn.q_proj.lora_E": [
402
+ true,
403
+ false,
404
+ false,
405
+ false,
406
+ false,
407
+ false,
408
+ true,
409
+ true,
410
+ true,
411
+ true,
412
+ false,
413
+ true
414
+ ],
415
+ "model.layers.7.self_attn.v_proj.lora_E": [
416
+ false,
417
+ true,
418
+ true,
419
+ false,
420
+ true,
421
+ true,
422
+ false,
423
+ true,
424
+ true,
425
+ false,
426
+ true,
427
+ true
428
+ ],
429
+ "model.layers.8.self_attn.q_proj.lora_E": [
430
+ false,
431
+ true,
432
+ true,
433
+ false,
434
+ true,
435
+ true,
436
+ true,
437
+ true,
438
+ false,
439
+ false,
440
+ true,
441
+ true
442
+ ],
443
+ "model.layers.8.self_attn.v_proj.lora_E": [
444
+ false,
445
+ true,
446
+ false,
447
+ false,
448
+ false,
449
+ true,
450
+ false,
451
+ false,
452
+ true,
453
+ false,
454
+ true,
455
+ true
456
+ ],
457
+ "model.layers.9.self_attn.q_proj.lora_E": [
458
+ true,
459
+ false,
460
+ false,
461
+ false,
462
+ false,
463
+ false,
464
+ false,
465
+ false,
466
+ false,
467
+ false,
468
+ false,
469
+ true
470
+ ],
471
+ "model.layers.9.self_attn.v_proj.lora_E": [
472
+ true,
473
+ true,
474
+ false,
475
+ true,
476
+ true,
477
+ false,
478
+ true,
479
+ false,
480
+ true,
481
+ false,
482
+ false,
483
+ false
484
+ ]
485
+ },
486
+ "revision": null,
487
+ "target_modules": [
488
+ "v_proj",
489
+ "q_proj"
490
+ ],
491
+ "target_parameters": null,
492
+ "target_r": 4,
493
+ "task_type": "CAUSAL_LM",
494
+ "tfinal": 50,
495
+ "tinit": 50,
496
+ "total_step": 500,
497
+ "trainable_token_indices": null,
498
+ "use_bdlora": null,
499
+ "use_dora": false,
500
+ "use_qalora": false,
501
+ "use_rslora": false,
502
+ "velora_config": null
503
+ }
v2.0/llama3.2-1b_AdaLoRA_A_1k_20260827-173745/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6aeecfdf0c65df1fdb74587df15eb367e9ffe521632457c2a092008237e3b93
3
+ size 1636272
v2.0/llama3.2-1b_AdaLoRA_A_1k_20260827-173745/chat_template.jinja ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{- bos_token }}
2
+ {%- if custom_tools is defined %}
3
+ {%- set tools = custom_tools %}
4
+ {%- endif %}
5
+ {%- if not tools_in_user_message is defined %}
6
+ {%- set tools_in_user_message = true %}
7
+ {%- endif %}
8
+ {%- if not date_string is defined %}
9
+ {%- if strftime_now is defined %}
10
+ {%- set date_string = strftime_now("%d %b %Y") %}
11
+ {%- else %}
12
+ {%- set date_string = "26 Jul 2024" %}
13
+ {%- endif %}
14
+ {%- endif %}
15
+ {%- if not tools is defined %}
16
+ {%- set tools = none %}
17
+ {%- endif %}
18
+
19
+ {#- This block extracts the system message, so we can slot it into the right place. #}
20
+ {%- if messages[0]['role'] == 'system' %}
21
+ {%- set system_message = messages[0]['content']|trim %}
22
+ {%- set messages = messages[1:] %}
23
+ {%- else %}
24
+ {%- set system_message = "" %}
25
+ {%- endif %}
26
+
27
+ {#- System message #}
28
+ {{- "<|start_header_id|>system<|end_header_id|>\n\n" }}
29
+ {%- if tools is not none %}
30
+ {{- "Environment: ipython\n" }}
31
+ {%- endif %}
32
+ {{- "Cutting Knowledge Date: December 2023\n" }}
33
+ {{- "Today Date: " + date_string + "\n\n" }}
34
+ {%- if tools is not none and not tools_in_user_message %}
35
+ {{- "You have access to the following functions. To call a function, please respond with JSON for a function call." }}
36
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
37
+ {{- "Do not use variables.\n\n" }}
38
+ {%- for t in tools %}
39
+ {{- t | tojson(indent=4) }}
40
+ {{- "\n\n" }}
41
+ {%- endfor %}
42
+ {%- endif %}
43
+ {{- system_message }}
44
+ {{- "<|eot_id|>" }}
45
+
46
+ {#- Custom tools are passed in a user message with some extra guidance #}
47
+ {%- if tools_in_user_message and not tools is none %}
48
+ {#- Extract the first user message so we can plug it in here #}
49
+ {%- if messages | length != 0 %}
50
+ {%- set first_user_message = messages[0]['content']|trim %}
51
+ {%- set messages = messages[1:] %}
52
+ {%- else %}
53
+ {{- raise_exception("Cannot put tools in the first user message when there's no first user message!") }}
54
+ {%- endif %}
55
+ {{- '<|start_header_id|>user<|end_header_id|>\n\n' -}}
56
+ {{- "Given the following functions, please respond with a JSON for a function call " }}
57
+ {{- "with its proper arguments that best answers the given prompt.\n\n" }}
58
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
59
+ {{- "Do not use variables.\n\n" }}
60
+ {%- for t in tools %}
61
+ {{- t | tojson(indent=4) }}
62
+ {{- "\n\n" }}
63
+ {%- endfor %}
64
+ {{- first_user_message + "<|eot_id|>"}}
65
+ {%- endif %}
66
+
67
+ {%- for message in messages %}
68
+ {%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}
69
+ {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' }}
70
+ {%- elif 'tool_calls' in message %}
71
+ {%- if not message.tool_calls|length == 1 %}
72
+ {{- raise_exception("This model only supports single tool-calls at once!") }}
73
+ {%- endif %}
74
+ {%- set tool_call = message.tool_calls[0].function %}
75
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' -}}
76
+ {{- '{"name": "' + tool_call.name + '", ' }}
77
+ {{- '"parameters": ' }}
78
+ {{- tool_call.arguments | tojson }}
79
+ {{- "}" }}
80
+ {{- "<|eot_id|>" }}
81
+ {%- elif message.role == "tool" or message.role == "ipython" %}
82
+ {{- "<|start_header_id|>ipython<|end_header_id|>\n\n" }}
83
+ {%- if message.content is mapping or message.content is iterable %}
84
+ {{- message.content | tojson }}
85
+ {%- else %}
86
+ {{- message.content }}
87
+ {%- endif %}
88
+ {{- "<|eot_id|>" }}
89
+ {%- endif %}
90
+ {%- endfor %}
91
+ {%- if add_generation_prompt %}
92
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}
93
+ {%- endif %}
v2.0/llama3.2-1b_AdaLoRA_A_1k_20260827-173745/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
3
+ size 17209920
v2.0/llama3.2-1b_AdaLoRA_A_1k_20260827-173745/tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|begin_of_text|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|eot_id|>",
6
+ "is_local": false,
7
+ "local_files_only": false,
8
+ "model_input_names": [
9
+ "input_ids",
10
+ "attention_mask"
11
+ ],
12
+ "model_max_length": 131072,
13
+ "pad_token": "<|eot_id|>",
14
+ "tokenizer_class": "TokenizersBackend"
15
+ }