cagataydev commited on
Commit
3e903bc
·
verified ·
1 Parent(s): 61515be

loopl_sft.py 1.3.0: MLX 4-bit

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* 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
 
 
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
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: cagataydev/loopl-4b
3
+ library_name: mlx
4
+ license: apache-2.0
5
+ tags: [loopl, post-tuned, sft, trl, on-device, qwen3_5, mlx]
6
+ language: [en]
7
+ loopl_round: 2
8
+ loopl_lineage: ["Qwen/Qwen3.5-4B", "cagataydev/loopl-4b"]
9
+ loopl_script: 1.3.0
10
+ loopl_parent: cagataydev/tin-4b
11
+ ---
12
+
13
+ # tin-4b
14
+
15
+ Post-tuned with **[loopl](https://loopl.dev)** from **29199 conversations** (`cagataydev/tin-train`@b89e6bb3).
16
+ Base `cagataydev/loopl-4b` · LoRA r=64 α=128 → merged · 1 epochs, best-eval-loss checkpoint · assistant-only loss · both loopl tool dialects
17
+ (native Qwen3.5 `<function=…>` and hermes JSON `<tool_call>`) · `enable_thinking=false`-style empty think blocks.
18
+ Round **2** of continual tuning — lineage `Qwen/Qwen3.5-4B` → `cagataydev/loopl-4b` → `cagataydev/tin-4b` · replayed every shard of the dataset.
19
+
20
+ MLX **4-bit** (group 64) conversion of `cagataydev/tin-4b` with mlx_vlm — the vision tower is kept, so it reads images like its base. Load it in the loopl app (Models › Mine).
21
+
22
+ | | |
23
+ |---|---|
24
+ | eval loss base → tuned | 1.0184 → 0.4931 (760 held-out conversations) |
25
+ | tool-call probes | name match 6 / 24 turns · prose stayed prose 12 / 12 |
26
+ | rows / tokens | 36944 · 63,481,590 (max_length 8192) |
27
+ | eval loss per epoch | e1 0.4931 |
28
+ | job | 6afd8f53e5cad0e4dc3e6f02 · 19808 s · loopl_sft.py 1.3.0 |
29
+
30
+ Artifacts: `cagataydev/tin-4b` (merged, transformers) · `cagataydev/tin-4b-4bit` (MLX) · `cagataydev/tin-4b-GGUF` (Q4_K_M). Full numbers in `scorecard.json`.
31
+ Made by the loopl app's Train screen — your conversations, your model, your Hugging Face account.
chat_template.jinja ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set image_count = namespace(value=0) %}
2
+ {%- set video_count = namespace(value=0) %}
3
+ {%- macro render_content(content, do_vision_count, is_system_content=false) %}
4
+ {%- if content is string %}
5
+ {{- content }}
6
+ {%- elif content is iterable and content is not mapping %}
7
+ {%- for item in content %}
8
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
9
+ {%- if is_system_content %}
10
+ {{- raise_exception('System message cannot contain images.') }}
11
+ {%- endif %}
12
+ {%- if do_vision_count %}
13
+ {%- set image_count.value = image_count.value + 1 %}
14
+ {%- endif %}
15
+ {%- if add_vision_id %}
16
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
17
+ {%- endif %}
18
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
19
+ {%- elif 'video' in item or item.type == 'video' %}
20
+ {%- if is_system_content %}
21
+ {{- raise_exception('System message cannot contain videos.') }}
22
+ {%- endif %}
23
+ {%- if do_vision_count %}
24
+ {%- set video_count.value = video_count.value + 1 %}
25
+ {%- endif %}
26
+ {%- if add_vision_id %}
27
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
28
+ {%- endif %}
29
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
30
+ {%- elif 'text' in item %}
31
+ {{- item.text }}
32
+ {%- else %}
33
+ {{- raise_exception('Unexpected item type in content.') }}
34
+ {%- endif %}
35
+ {%- endfor %}
36
+ {%- elif content is none or content is undefined %}
37
+ {{- '' }}
38
+ {%- else %}
39
+ {{- raise_exception('Unexpected content type.') }}
40
+ {%- endif %}
41
+ {%- endmacro %}
42
+ {%- if not messages %}
43
+ {{- raise_exception('No messages provided.') }}
44
+ {%- endif %}
45
+ {%- if tools and tools is iterable and tools is not mapping %}
46
+ {{- '<|im_start|>system\n' }}
47
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
48
+ {%- for tool in tools %}
49
+ {{- "\n" }}
50
+ {{- tool | tojson }}
51
+ {%- endfor %}
52
+ {{- "\n</tools>" }}
53
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
54
+ {%- if messages[0].role == 'system' %}
55
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
56
+ {%- if content %}
57
+ {{- '\n\n' + content }}
58
+ {%- endif %}
59
+ {%- endif %}
60
+ {{- '<|im_end|>\n' }}
61
+ {%- else %}
62
+ {%- if messages[0].role == 'system' %}
63
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
64
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
65
+ {%- endif %}
66
+ {%- endif %}
67
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
68
+ {%- for message in messages[::-1] %}
69
+ {%- set index = (messages|length - 1) - loop.index0 %}
70
+ {%- if ns.multi_step_tool and message.role == "user" %}
71
+ {%- set content = render_content(message.content, false)|trim %}
72
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
73
+ {%- set ns.multi_step_tool = false %}
74
+ {%- set ns.last_query_index = index %}
75
+ {%- endif %}
76
+ {%- endif %}
77
+ {%- endfor %}
78
+ {%- if ns.multi_step_tool %}
79
+ {{- raise_exception('No user query found in messages.') }}
80
+ {%- endif %}
81
+ {%- for message in messages %}
82
+ {%- set content = render_content(message.content, true)|trim %}
83
+ {%- if message.role == "system" %}
84
+ {%- if not loop.first %}
85
+ {{- raise_exception('System message must be at the beginning.') }}
86
+ {%- endif %}
87
+ {%- elif message.role == "user" %}
88
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
89
+ {%- elif message.role == "assistant" %}
90
+ {%- set reasoning_content = '' %}
91
+ {%- if message.reasoning_content is string %}
92
+ {%- set reasoning_content = message.reasoning_content %}
93
+ {%- else %}
94
+ {%- if '</think>' in content %}
95
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
96
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
97
+ {%- endif %}
98
+ {%- endif %}
99
+ {%- set reasoning_content = reasoning_content|trim %}
100
+ {%- if loop.index0 > ns.last_query_index %}
101
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
102
+ {%- else %}
103
+ {{- '<|im_start|>' + message.role + '\n' + content }}
104
+ {%- endif %}
105
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
106
+ {%- for tool_call in message.tool_calls %}
107
+ {%- if tool_call.function is defined %}
108
+ {%- set tool_call = tool_call.function %}
109
+ {%- endif %}
110
+ {%- if loop.first %}
111
+ {%- if content|trim %}
112
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
113
+ {%- else %}
114
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
115
+ {%- endif %}
116
+ {%- else %}
117
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
118
+ {%- endif %}
119
+ {%- if tool_call.arguments is defined %}
120
+ {%- for args_name, args_value in tool_call.arguments|items %}
121
+ {{- '<parameter=' + args_name + '>\n' }}
122
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
123
+ {{- args_value }}
124
+ {{- '\n</parameter>\n' }}
125
+ {%- endfor %}
126
+ {%- endif %}
127
+ {{- '</function>\n</tool_call>' }}
128
+ {%- endfor %}
129
+ {%- endif %}
130
+ {{- '<|im_end|>\n' }}
131
+ {%- elif message.role == "tool" %}
132
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
133
+ {{- '<|im_start|>user' }}
134
+ {%- endif %}
135
+ {{- '\n<tool_response>\n' }}
136
+ {{- content }}
137
+ {{- '\n</tool_response>' }}
138
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
139
+ {{- '<|im_end|>\n' }}
140
+ {%- elif loop.last %}
141
+ {{- '<|im_end|>\n' }}
142
+ {%- endif %}
143
+ {%- else %}
144
+ {{- raise_exception('Unexpected message role.') }}
145
+ {%- endif %}
146
+ {%- endfor %}
147
+ {%- if add_generation_prompt %}
148
+ {{- '<|im_start|>assistant\n' }}
149
+ {%- if enable_thinking is defined and enable_thinking is false %}
150
+ {{- '<think>\n\n</think>\n\n' }}
151
+ {%- else %}
152
+ {{- '<think>\n' }}
153
+ {%- endif %}
154
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "eos_token_id": [
7
+ 248046,
8
+ 248044
9
+ ],
10
+ "generation_config": {
11
+ "_from_model_config": true,
12
+ "eos_token_id": [
13
+ 248046,
14
+ 248044
15
+ ],
16
+ "pad_token_id": 248044,
17
+ "transformers_version": "5.23.0",
18
+ "use_cache": true
19
+ },
20
+ "image_token_id": 248056,
21
+ "model_type": "qwen3_5",
22
+ "quantization": {
23
+ "group_size": 64,
24
+ "bits": 4,
25
+ "mode": "affine"
26
+ },
27
+ "quantization_config": {
28
+ "group_size": 64,
29
+ "bits": 4,
30
+ "mode": "affine"
31
+ },
32
+ "text_config": {
33
+ "attention_bias": false,
34
+ "attention_dropout": 0.0,
35
+ "attn_output_gate": true,
36
+ "bos_token_id": null,
37
+ "dtype": "bfloat16",
38
+ "eos_token_id": 248046,
39
+ "full_attention_interval": 4,
40
+ "head_dim": 256,
41
+ "hidden_act": "silu",
42
+ "hidden_size": 2560,
43
+ "initializer_range": 0.02,
44
+ "intermediate_size": 9216,
45
+ "layer_types": [
46
+ "linear_attention",
47
+ "linear_attention",
48
+ "linear_attention",
49
+ "full_attention",
50
+ "linear_attention",
51
+ "linear_attention",
52
+ "linear_attention",
53
+ "full_attention",
54
+ "linear_attention",
55
+ "linear_attention",
56
+ "linear_attention",
57
+ "full_attention",
58
+ "linear_attention",
59
+ "linear_attention",
60
+ "linear_attention",
61
+ "full_attention",
62
+ "linear_attention",
63
+ "linear_attention",
64
+ "linear_attention",
65
+ "full_attention",
66
+ "linear_attention",
67
+ "linear_attention",
68
+ "linear_attention",
69
+ "full_attention",
70
+ "linear_attention",
71
+ "linear_attention",
72
+ "linear_attention",
73
+ "full_attention",
74
+ "linear_attention",
75
+ "linear_attention",
76
+ "linear_attention",
77
+ "full_attention"
78
+ ],
79
+ "linear_conv_kernel_dim": 4,
80
+ "linear_key_head_dim": 128,
81
+ "linear_num_key_heads": 16,
82
+ "linear_num_value_heads": 32,
83
+ "linear_value_head_dim": 128,
84
+ "mamba_ssm_dtype": "float32",
85
+ "max_position_embeddings": 262144,
86
+ "mlp_only_layers": [],
87
+ "model_type": "qwen3_5_text",
88
+ "mtp_num_hidden_layers": 0,
89
+ "mtp_use_dedicated_embeddings": false,
90
+ "num_attention_heads": 16,
91
+ "num_hidden_layers": 32,
92
+ "num_key_value_heads": 4,
93
+ "pad_token_id": 248044,
94
+ "rms_norm_eps": 1e-06,
95
+ "rope_parameters": {
96
+ "mrope_interleaved": true,
97
+ "mrope_section": [
98
+ 11,
99
+ 11,
100
+ 10
101
+ ],
102
+ "partial_rotary_factor": 0.25,
103
+ "rope_theta": 10000000,
104
+ "rope_type": "default"
105
+ },
106
+ "tie_word_embeddings": true,
107
+ "use_cache": true,
108
+ "vocab_size": 248320,
109
+ "rope_theta": 10000000,
110
+ "rope_scaling": {
111
+ "mrope_interleaved": true,
112
+ "mrope_section": [
113
+ 11,
114
+ 11,
115
+ 10
116
+ ],
117
+ "partial_rotary_factor": 0.25,
118
+ "rope_type": "default"
119
+ }
120
+ },
121
+ "tie_word_embeddings": true,
122
+ "transformers_version": "5.23.0",
123
+ "use_cache": true,
124
+ "video_token_id": 248057,
125
+ "vision_config": {
126
+ "deepstack_visual_indexes": [],
127
+ "depth": 24,
128
+ "dtype": "bfloat16",
129
+ "hidden_act": "gelu_pytorch_tanh",
130
+ "hidden_size": 1024,
131
+ "in_channels": 3,
132
+ "initializer_range": 0.02,
133
+ "intermediate_size": 4096,
134
+ "model_type": "qwen3_5_vision",
135
+ "num_heads": 16,
136
+ "num_position_embeddings": 2304,
137
+ "out_hidden_size": 2560,
138
+ "patch_size": 16,
139
+ "rope_parameters": {
140
+ "rope_theta": 10000.0,
141
+ "rope_type": "axial"
142
+ },
143
+ "spatial_merge_size": 2,
144
+ "temporal_patch_size": 2
145
+ },
146
+ "vision_end_token_id": 248054,
147
+ "vision_start_token_id": 248053
148
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": [
4
+ 248046,
5
+ 248044
6
+ ],
7
+ "pad_token_id": 248044,
8
+ "transformers_version": "5.23.0",
9
+ "use_cache": true
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:205573e2b35ba2e3a2872da194d933858c6887f3ef20555614276a777dd3c14d
3
+ size 3034299525
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,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 16777216,
4
+ "shortest_edge": 65536
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "image_processor_type": "Qwen2VLImageProcessorFast"
21
+ }
processor_config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "do_convert_rgb": true,
4
+ "do_normalize": true,
5
+ "do_rescale": true,
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "Qwen3VLImageProcessor",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "max_pixels": 16777216,
18
+ "merge_size": 2,
19
+ "min_pixels": 65536,
20
+ "patch_size": 16,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "temporal_patch_size": 2
23
+ },
24
+ "processor_class": "Qwen3VLProcessor",
25
+ "video_processor": {
26
+ "do_convert_rgb": true,
27
+ "do_normalize": true,
28
+ "do_rescale": true,
29
+ "fps": 2.0,
30
+ "image_mean": [
31
+ 0.5,
32
+ 0.5,
33
+ 0.5
34
+ ],
35
+ "image_std": [
36
+ 0.5,
37
+ 0.5,
38
+ 0.5
39
+ ],
40
+ "max_frames": 768,
41
+ "max_pixels": 25165824,
42
+ "merge_size": 2,
43
+ "min_frames": 4,
44
+ "min_pixels": 4096,
45
+ "patch_size": 16,
46
+ "rescale_factor": 0.00392156862745098,
47
+ "temporal_patch_size": 2,
48
+ "video_processor_type": "Qwen3VLVideoProcessor"
49
+ }
50
+ }
scorecard.json ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "script": "1.3.0",
3
+ "base": "cagataydev/loopl-4b",
4
+ "root": "Qwen/Qwen3.5-4B",
5
+ "family": "qwen3_5",
6
+ "think": "qwen3_5",
7
+ "dataset": "cagataydev/tin-train",
8
+ "revision": "b89e6bb347f960ee285a1fc0c36662bf83a9f769",
9
+ "method": "lora",
10
+ "epochs": 1.0,
11
+ "epochs_mode": "fixed",
12
+ "epochs_heuristic": "1\u20132",
13
+ "round": 2,
14
+ "lineage": [
15
+ "Qwen/Qwen3.5-4B",
16
+ "cagataydev/loopl-4b"
17
+ ],
18
+ "stitched": 0,
19
+ "train_conversations": 28439,
20
+ "eval_conversations": 760,
21
+ "eval_loss_base": 1.0184,
22
+ "eval_loss_tuned": 0.4931,
23
+ "eval_history": [
24
+ {
25
+ "epoch": 1,
26
+ "eval_loss": 0.4931
27
+ }
28
+ ],
29
+ "best_checkpoint": "/tmp/loopl-sft/ckpt/checkpoint-2309",
30
+ "best_epoch": 1,
31
+ "epochs_trained": 1.0,
32
+ "train_loss": 0.5125,
33
+ "probed": 36,
34
+ "tool_turns": 24,
35
+ "tool_name_match": 6,
36
+ "tool_call_emitted": 14,
37
+ "prose_turns": 12,
38
+ "prose_kept_prose": 12,
39
+ "malformed_calls": 0,
40
+ "examples": [
41
+ {
42
+ "dialect": "native",
43
+ "user": "Write a Tin program that calculates compound interest for a savings goal. Define a Goal type with principal, rate (as percentage), and years. Show the final amount formatted to two decimals.\n\nCheck it",
44
+ "gold_tools": [
45
+ "tin_run"
46
+ ],
47
+ "gold": "",
48
+ "generated": "<tool_call>\n<function=tin_run>\n<parameter=source>\ntype Goal = {\n /// Starting amount in dollars\n principal: float,\n /// Annual interest rate as a percentage\n rate: float,\n /// Number of years to compound\n years: int\n}\n\nfn Goal.finalAmount(g: Goal): float {\n let rate = g.rate / 100.0\n let principal = g.principal\n let years = float(g.years)\n principal * (1.0 + rate).pow(years)\n}\n\nfn Goal.s"
49
+ },
50
+ {
51
+ "dialect": "loopl",
52
+ "user": "Write a Tin program that calculates compound interest for a savings goal. Define a Goal type with principal, rate (as percentage), and years. Show the final amount formatted to two decimals.\n\nCheck it",
53
+ "gold_tools": [
54
+ "tin_run"
55
+ ],
56
+ "gold": "",
57
+ "generated": "<tool_call>\n{\"name\": \"tin_run\", \"arguments\": {\"source\":\"type Goal = { principal: float, rate: float, years: int }\\n\\nfn Goal.finalAmount(g: Goal): float {\\n let r = g.rate / 100.0\\n let factor = 1.0 + r\\n let growth = factor.pow(float(g.years))\\n g.principal * growth\\n}\\n\\nfn Goal.description(g: Goal): string {\\n \\\"Start: ${g.principal.fixed(2)}\\\"\\n}\\n\\nfn main() {\\n let savings = Goal { pri"
58
+ },
59
+ {
60
+ "dialect": "native",
61
+ "user": "Write a Tin program that models a library book with title, ISBN, year published, and whether it's available. Create three books and use `==` to check if two of them are identical (they should have dif",
62
+ "gold_tools": [
63
+ "tin_check"
64
+ ],
65
+ "gold": "",
66
+ "generated": "<tool_call>\n<function=tin_run>\n<parameter=source>\ntype Book = { title: string, isbn: string, year: int, available: bool }\n\nfn main() {\n let book1 = Book { title: \"Dune\", isbn: \"978-0441013879\", year: 1965, available: true }\n let book2 = Book { title: \"Dune\", isbn: \"978-0441013886\", year: 1965, available: true }\n let book3 = Book { title: \"Foundation\", isbn: \"978-0060850524\", year"
67
+ },
68
+ {
69
+ "dialect": "loopl",
70
+ "user": "Write a Tin program that models a library book with title, ISBN, year published, and whether it's available. Create three books and use `==` to check if two of them are identical (they should have dif",
71
+ "gold_tools": [
72
+ "tin_check"
73
+ ],
74
+ "gold": "",
75
+ "generated": "<tool_call>\n{\"name\": \"tin_run\", \"arguments\": {\"source\":\"type Book = { title: string, isbn: string, year: int, available: bool }\\n\\nfn main() {\\n let book1 = Book { title: \\\"Dune\\\", isbn: \\\"978-0441013879\\\", year: 1965, available: true }\\n let book2 = Book { title: \\\"Dune\\\", isbn: \\\"978-0441013886\\\", year: 1965, available: false }\\n let book3 = Book { title: \\\"Foundation\\\", isbn: \\\"978-006085052"
76
+ },
77
+ {
78
+ "dialect": "native",
79
+ "user": "How do I model a pH meter in Tin that takes readings? Each reading has a pH value and a timestamp in seconds. Write a function that receives a meter's readings array and returns a copy with only readi",
80
+ "gold_tools": [
81
+ "tin_check"
82
+ ],
83
+ "gold": "",
84
+ "generated": "<tool_call>\n<function=tin_run>\n<parameter=source>\ntype Reading = { pH: float, time: int }\n\nfn filterReadings(readings: Reading[]): Reading[] {\n var filtered: Reading[] = []\n for r in readings {\n if r.pH >= 6.5 && r.pH <= 7.5 {\n filtered.push(r)\n }\n }\n filtered\n}\n\nfn main() {\n let meter = [\n Reading { pH: 6.8, time: 0 },\n Reading { pH: 7.2, time: 10 },\n Reading { pH: 5.9, t"
85
+ },
86
+ {
87
+ "dialect": "loopl",
88
+ "user": "How do I model a pH meter in Tin that takes readings? Each reading has a pH value and a timestamp in seconds. Write a function that receives a meter's readings array and returns a copy with only readi",
89
+ "gold_tools": [
90
+ "tin_check"
91
+ ],
92
+ "gold": "",
93
+ "generated": "<tool_call>\n{\"name\": \"tin_run\", \"arguments\": {\"source\":\"type Reading = { pH: float, time: int }\\n\\nfn filterReadings(readings: Reading[]): Reading[] {\\n var filtered: Reading[] = []\\n for r in readings {\\n if r.pH >= 6.5 && r.pH <= 7.5 {\\n filtered.push(r)\\n }\\n }\\n filtered\\n}\\n\\nfn main() {\\n let meter = [\\n Reading { pH: 6.8, time: 0 },\\n Reading { pH: 5.2, time: 10 },\\n "
94
+ }
95
+ ],
96
+ "tool_name_match_rate": 0.25
97
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87a7830d63fcf43bf241c3c5242e96e62dd3fdc29224ca26fed8ea333db72de4
3
+ size 19989343
tokenizer_config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "audio_bos_token": "<|audio_start|>",
4
+ "audio_eos_token": "<|audio_end|>",
5
+ "audio_token": "<|audio_pad|>",
6
+ "bos_token": null,
7
+ "clean_up_tokenization_spaces": false,
8
+ "eos_token": "<|im_end|>",
9
+ "errors": "replace",
10
+ "extra_special_tokens": [
11
+ "<|im_start|>",
12
+ "<|im_end|>",
13
+ "<|object_ref_start|>",
14
+ "<|object_ref_end|>",
15
+ "<|box_start|>",
16
+ "<|box_end|>",
17
+ "<|quad_start|>",
18
+ "<|quad_end|>",
19
+ "<|vision_start|>",
20
+ "<|vision_end|>",
21
+ "<|vision_pad|>",
22
+ "<|image_pad|>",
23
+ "<|video_pad|>"
24
+ ],
25
+ "image_token": "<|image_pad|>",
26
+ "is_local": true,
27
+ "local_files_only": false,
28
+ "max_length": 4096,
29
+ "merges_file": null,
30
+ "model_max_length": 262144,
31
+ "model_specific_special_tokens": {
32
+ "audio_bos_token": "<|audio_start|>",
33
+ "audio_eos_token": "<|audio_end|>",
34
+ "audio_token": "<|audio_pad|>",
35
+ "image_token": "<|image_pad|>",
36
+ "video_token": "<|video_pad|>",
37
+ "vision_bos_token": "<|vision_start|>",
38
+ "vision_eos_token": "<|vision_end|>"
39
+ },
40
+ "pad_token": "<|endoftext|>",
41
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
42
+ "processor_class": "Qwen3VLProcessor",
43
+ "split_special_tokens": false,
44
+ "stride": 0,
45
+ "tokenizer_class": "Qwen2Tokenizer",
46
+ "truncation_side": "right",
47
+ "truncation_strategy": "longest_first",
48
+ "unk_token": null,
49
+ "video_token": "<|video_pad|>",
50
+ "vision_bos_token": "<|vision_start|>",
51
+ "vision_eos_token": "<|vision_end|>"
52
+ }
video_preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 25165824,
4
+ "shortest_edge": 4096
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "video_processor_type": "Qwen3VLVideoProcessor"
21
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff