momosushi commited on
Commit
2d22c85
·
verified ·
1 Parent(s): a3bbf92

Upload folder using huggingface_hub

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,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ base_model: nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16
4
+ tags: [code-translation, sas, r, python, lora-merged, nemotron]
5
+ ---
6
+ # polykode-30B merged (step 800)
7
+
8
+ Nemotron 3.5 Lightning 30B-A3B fine-tuned (LoRA, merged bf16) for bidirectional
9
+ SAS / Python / R program translation, all 6 directions. Trained on 12,962 paired
10
+ programs; this checkpoint is the eval-loss minimum (epoch-1 boundary, step 800).
11
+
12
+ ## REQUIRED inference contract — the model is conditioned on this exactly
13
+ - System prompt: send `system_prompt.txt` from this repo VERBATIM.
14
+ - User message: `Translate the following {SAS|Python|R} program to {SAS|Python|R}.\n\n{program}`
15
+ - Chat template: `enable_thinking=False`
16
+ - Decoding: greedy (temperature 0); stop tokens: eos AND `<|im_end|>` (id 11)
17
+ - `max_new_tokens`: >= 6000 for real programs
18
+ - Output is the bare translated program (no fences, no prose).
19
+
20
+ ## Serving
21
+ vllm serve momosushi/polykode-30B-merged-step800 --max-model-len 8192 --mamba-ssm-cache-dtype float16
22
+
23
+ ## Known limitations (spot-check findings)
24
+ - May invent I/O steps (e.g. read_csv) when the source references an unbound dataset.
25
+ - Statistical-option semantics (NA/missing handling flags) should be verified.
26
+ - Translations are drafts: verify behavioural equivalence by executing source and
27
+ translation on the same inputs before trusting results.
28
+
29
+ ## Provenance
30
+ Adapters, checkpoints, training metrics: momosushi/polykode-30B
chat_template.jinja ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {% macro render_extra_keys(json_dict, handled_keys) %}
2
+ {%- if json_dict is mapping %}
3
+ {%- for json_key in json_dict if json_key not in handled_keys %}
4
+ {%- if json_dict[json_key] is mapping or (json_dict[json_key] is sequence and json_dict[json_key] is not string) %}
5
+ {{- '\n<' ~ json_key ~ '>' ~ (json_dict[json_key] | tojson | safe) ~ '</' ~ json_key ~ '>' }}
6
+ {%- else %}
7
+ {{-'\n<' ~ json_key ~ '>' ~ (json_dict[json_key] | string) ~ '</' ~ json_key ~ '>' }}
8
+ {%- endif %}
9
+ {%- endfor %}
10
+ {%- endif %}
11
+ {% endmacro %}
12
+ {%- set enable_thinking = enable_thinking if enable_thinking is defined else True %}
13
+ {%- set truncate_history_thinking = truncate_history_thinking if truncate_history_thinking is defined else True %}
14
+ {%- set ns = namespace(last_user_idx = -1) %}
15
+ {%- set loop_messages = messages %}
16
+ {%- for m in loop_messages %}
17
+ {%- if m["role"] == "user" %}
18
+ {%- set ns.last_user_idx = loop.index0 %}
19
+ {%- endif %}
20
+ {%- endfor %}
21
+ {%- if messages[0]["role"] == "system" %}
22
+ {%- set system_message = messages[0]["content"] %}
23
+ {%- set loop_messages = messages[1:] %}
24
+ {%- else %}
25
+ {%- set system_message = "" %}
26
+ {%- set loop_messages = messages %}
27
+ {%- endif %}
28
+ {%- if not tools is defined %}
29
+ {%- set tools = [] %}
30
+ {%- endif %}
31
+ {%- set ns = namespace(last_user_idx = -1) %}
32
+ {%- for m in loop_messages %}
33
+ {%- if m["role"] == "user" %}
34
+ {%- set ns.last_user_idx = loop.index0 %}
35
+ {%- endif %}
36
+ {%- endfor %}
37
+ {%- if system_message is defined %}
38
+ {{- "<|im_start|>system\n" + system_message }}
39
+ {%- else %}
40
+ {%- if tools is iterable and tools | length > 0 %}
41
+ {{- "<|im_start|>system\n" }}
42
+ {%- endif %}
43
+ {%- endif %}
44
+ {%- if tools is iterable and tools | length > 0 %}
45
+ {%- if system_message is defined and system_message | length > 0 %}
46
+ {{- "\n\n" }}
47
+ {%- endif %}
48
+ {{- "# Tools\n\nYou have access to the following functions:\n\n" }}
49
+ {{- "<tools>" }}
50
+ {%- for tool in tools %}
51
+ {%- if tool.function is defined %}
52
+ {%- set tool = tool.function %}
53
+ {%- endif %}
54
+ {{- "\n<function>\n<name>" ~ tool.name ~ "</name>" }}
55
+ {%- if tool.description is defined %}
56
+ {{- '\n<description>' ~ (tool.description | trim) ~ '</description>' }}
57
+ {%- endif %}
58
+ {{- '\n<parameters>' }}
59
+ {%- if tool.parameters is defined and tool.parameters is mapping and tool.parameters.properties is defined and tool.parameters.properties is mapping %}
60
+ {%- for param_name, param_fields in tool.parameters.properties|items %}
61
+ {{- '\n<parameter>' }}
62
+ {{- '\n<name>' ~ param_name ~ '</name>' }}
63
+ {%- if param_fields.type is defined %}
64
+ {{- '\n<type>' ~ (param_fields.type | string) ~ '</type>' }}
65
+ {%- endif %}
66
+ {%- if param_fields.description is defined %}
67
+ {{- '\n<description>' ~ (param_fields.description | trim) ~ '</description>' }}
68
+ {%- endif %}
69
+ {%- if param_fields.enum is defined %}
70
+ {{- '\n<enum>' ~ (param_fields.enum | tojson | safe) ~ '</enum>' }}
71
+ {%- endif %}
72
+ {%- set handled_keys = ['name', 'type', 'description', 'enum'] %}
73
+ {{- render_extra_keys(param_fields, handled_keys) }}
74
+ {{- '\n</parameter>' }}
75
+ {%- endfor %}
76
+ {%- endif %}
77
+ {% set handled_keys = ['type', 'properties', 'required'] %}
78
+ {{- render_extra_keys(tool.parameters, handled_keys) }}
79
+ {%- if tool.parameters is defined and tool.parameters.required is defined %}
80
+ {{- '\n<required>' ~ (tool.parameters.required | tojson | safe) ~ '</required>' }}
81
+ {%- endif %}
82
+ {{- '\n</parameters>' }}
83
+ {%- set handled_keys = ['type', 'name', 'description', 'parameters'] %}
84
+ {{- render_extra_keys(tool, handled_keys) }}
85
+ {{- '\n</function>' }}
86
+ {%- endfor %}
87
+ {{- "\n</tools>" }}
88
+ {{- '\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>' }}
89
+ {%- endif %}
90
+ {%- if system_message is defined %}
91
+ {{- '<|im_end|>\n' }}
92
+ {%- else %}
93
+ {%- if tools is iterable and tools | length > 0 %}
94
+ {{- '<|im_end|>\n' }}
95
+ {%- endif %}
96
+ {%- endif %}
97
+ {%- for message in loop_messages %}
98
+ {%- if message.role == "assistant" %}
99
+ {%- if message.reasoning_content is defined and message.reasoning_content is string and message.reasoning_content | trim | length > 0 %}
100
+ {%- set content = "<think>\n" ~ message.reasoning_content ~ "</think>" ~ (message.content | default('', true)) %}
101
+ {%- else %}
102
+ {%- set content = message.content | default('', true) %}
103
+ {%- if content is string -%}
104
+ {%- if '<think>' not in content and '</think>' not in content -%}
105
+ {%- set content = "<think></think>" ~ content -%}
106
+ {%- endif -%}
107
+ {%- else -%}
108
+ {%- set content = content -%}
109
+ {%- endif -%}
110
+ {%- endif %}
111
+ {%- if message.tool_calls is defined and message.tool_calls is iterable and message.tool_calls | length > 0 %}
112
+ {{- '<|im_start|>assistant\n' }}
113
+ {%- set include_content = not (truncate_history_thinking and loop.index0 < ns.last_user_idx) %}
114
+ {%- if content is string and content | trim | length > 0 %}
115
+ {%- if include_content %}
116
+ {{- (content | trim) ~ '\n' -}}
117
+ {%- else %}
118
+ {%- set c = (content | string) %}
119
+ {%- if '</think>' in c %}
120
+ {%- set c = c.split('</think>')[-1] %}
121
+ {%- elif '<think>' in c %}
122
+ {%- set c = c.split('<think>')[0] %}
123
+ {%- endif %}
124
+ {%- set c = "<think></think>" ~ c %}
125
+ {%- if c | length > 0 %}
126
+ {{- c ~ '\n' -}}
127
+ {%- endif %}
128
+ {%- endif %}
129
+ {%- else %}
130
+ {{- "<think></think>" -}}
131
+ {%- endif %}
132
+ {%- for tool_call in message.tool_calls %}
133
+ {%- if tool_call.function is defined %}
134
+ {%- set tool_call = tool_call.function %}
135
+ {%- endif %}
136
+ {{- '<tool_call>\n<function=' ~ tool_call.name ~ '>\n' -}}
137
+ {%- if tool_call.arguments is defined %}
138
+ {%- for args_name, args_value in tool_call.arguments|items %}
139
+ {{- '<parameter=' ~ args_name ~ '>\n' -}}
140
+ {%- 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 %}
141
+ {{- args_value ~ '\n</parameter>\n' -}}
142
+ {%- endfor %}
143
+ {%- endif %}
144
+ {{- '</function>\n</tool_call>\n' -}}
145
+ {%- endfor %}
146
+ {{- '<|im_end|>\n' }}
147
+ {%- else %}
148
+ {%- if not (truncate_history_thinking and loop.index0 < ns.last_user_idx) %}
149
+ {{- '<|im_start|>assistant\n' ~ (content | default('', true) | string | trim) ~ '<|im_end|>\n' }}
150
+ {%- else %}
151
+ {%- set c = (content | default('', true) | string) %}
152
+ {%- if '<think>' in c and '</think>' in c %}
153
+ {%- set c = "<think></think>" ~ c.split('</think>')[-1] %}
154
+ {%- endif %}
155
+ {%- set c = c | trim %}
156
+ {%- if c | length > 0 %}
157
+ {{- '<|im_start|>assistant\n' ~ c ~ '<|im_end|>\n' }}
158
+ {%- else %}
159
+ {{- '<|im_start|>assistant\n<|im_end|>\n' }}
160
+ {%- endif %}
161
+ {%- endif %}
162
+ {%- endif %}
163
+ {%- elif message.role == "user" or message.role == "system" %}
164
+ {{- '<|im_start|>' + message.role + '\n' }}
165
+ {%- set content = message.content | string %}
166
+ {{- content }}
167
+ {{- '<|im_end|>\n' }}
168
+ {%- elif message.role == "tool" %}
169
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
170
+ {{- '<|im_start|>user\n' }}
171
+ {%- endif %}
172
+ {{- '<tool_response>\n' }}
173
+ {{- message.content }}
174
+ {{- '\n</tool_response>\n' }}
175
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
176
+ {{- '<|im_end|>\n' }}
177
+ {%- elif loop.last %}
178
+ {{- '<|im_end|>\n' }}
179
+ {%- endif %}
180
+ {%- else %}
181
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>\n' }}
182
+ {%- endif %}
183
+ {%- endfor %}
184
+ {%- if add_generation_prompt %}
185
+ {%- if enable_thinking %}
186
+ {{- '<|im_start|>assistant\n<think>\n' }}
187
+ {%- else %}
188
+ {{- '<|im_start|>assistant\n<think></think>' }}
189
+ {%- endif %}
190
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "NemotronHForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "chunk_size": 128,
9
+ "conv_kernel": 4,
10
+ "torch_dtype": "bfloat16",
11
+ "eos_token_id": 2,
12
+ "expand": 2,
13
+ "head_dim": 128,
14
+ "hidden_dropout": 0.0,
15
+ "hidden_size": 2688,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 1856,
18
+ "layer_norm_epsilon": 1e-05,
19
+ "layers_block_type": [
20
+ "mamba",
21
+ "moe",
22
+ "mamba",
23
+ "moe",
24
+ "mamba",
25
+ "attention",
26
+ "moe",
27
+ "mamba",
28
+ "moe",
29
+ "mamba",
30
+ "moe",
31
+ "mamba",
32
+ "attention",
33
+ "moe",
34
+ "mamba",
35
+ "moe",
36
+ "mamba",
37
+ "moe",
38
+ "mamba",
39
+ "attention",
40
+ "moe",
41
+ "mamba",
42
+ "moe",
43
+ "mamba",
44
+ "moe",
45
+ "mamba",
46
+ "attention",
47
+ "moe",
48
+ "mamba",
49
+ "moe",
50
+ "mamba",
51
+ "moe",
52
+ "mamba",
53
+ "attention",
54
+ "moe",
55
+ "mamba",
56
+ "moe",
57
+ "mamba",
58
+ "moe",
59
+ "mamba",
60
+ "moe",
61
+ "mamba",
62
+ "attention",
63
+ "moe",
64
+ "mamba",
65
+ "moe",
66
+ "mamba",
67
+ "moe",
68
+ "mamba",
69
+ "moe",
70
+ "mamba",
71
+ "moe"
72
+ ],
73
+ "mamba_head_dim": 64,
74
+ "mamba_hidden_act": "silu",
75
+ "mamba_num_heads": 64,
76
+ "mamba_proj_bias": false,
77
+ "mamba_ssm_cache_dtype": "float32",
78
+ "max_position_embeddings": 262144,
79
+ "mlp_bias": false,
80
+ "mlp_hidden_act": "relu2",
81
+ "model_name": "nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16",
82
+ "model_type": "nemotron_h",
83
+ "moe_intermediate_size": 1856,
84
+ "moe_latent_size": null,
85
+ "moe_shared_expert_intermediate_size": 3712,
86
+ "moe_shared_expert_overlap": true,
87
+ "mtp_layers_block_type": [
88
+ "attention",
89
+ "moe"
90
+ ],
91
+ "n_group": 1,
92
+ "n_groups": 8,
93
+ "n_routed_experts": 128,
94
+ "n_shared_experts": 1,
95
+ "norm_eps": 1e-05,
96
+ "norm_topk_prob": true,
97
+ "num_attention_heads": 32,
98
+ "num_experts_per_tok": 6,
99
+ "num_key_value_heads": 2,
100
+ "num_logits_to_keep": 1,
101
+ "num_nextn_predict_layers": 1,
102
+ "pad_token_id": 0,
103
+ "partial_rotary_factor": 1.0,
104
+ "rescale_prenorm_residual": true,
105
+ "residual_in_fp32": false,
106
+ "rope_theta": 10000,
107
+ "routed_scaling_factor": 2.5,
108
+ "sliding_window": null,
109
+ "ssm_state_size": 128,
110
+ "tie_word_embeddings": false,
111
+ "time_step_floor": 0.0001,
112
+ "time_step_limit": [
113
+ 0.0,
114
+ {
115
+ "__float__": "Infinity"
116
+ }
117
+ ],
118
+ "time_step_max": 0.1,
119
+ "time_step_min": 0.001,
120
+ "topk_group": 1,
121
+ "unsloth_version": "2026.8.18",
122
+ "use_bias": false,
123
+ "use_cache": false,
124
+ "use_conv_bias": true,
125
+ "use_mamba_kernels": true,
126
+ "vocab_size": 131072
127
+ }
generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "do_sample": true,
5
+ "eos_token_id": [
6
+ 2,
7
+ 11
8
+ ],
9
+ "max_length": 262144,
10
+ "pad_token_id": 0,
11
+ "temperature": 1.0,
12
+ "top_p": 0.95,
13
+ "transformers_version": "5.5.4"
14
+ }
model-00001-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a3e74d24969eac6657cb9b6422091fd062b7d30fd4bc90ecee6c3d7f692626a
3
+ size 4991210024
model-00002-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a80c3846e959f6dda34aa031cbb668b766643691ac7e5c9f43f62e6fb1221059
3
+ size 4992601016
model-00003-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:996bf3a46668e14075cb82259390267c2b1f71446caeb3a5f1f9e0bd7a079ae7
3
+ size 4992601368
model-00004-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cce1d79e7ff2e2b746b9d97166156aa1dcec796116675cc7fd1aa70a8d73ccb2
3
+ size 4995692800
model-00005-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9338f59d3fd5f074288c71a9559452d5b5c581da00e9ccb9fe7aa2ce9b04d2ad
3
+ size 4980553832
model-00006-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e947fa4097c68263ba3d097fceb32a300a22cebd9d909fb5198af7d18a4022fe
3
+ size 4989423536
model-00007-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7362630bf4256275ca58354ed8f31506cec67ffab30573e753703fd5ae48795
3
+ size 4992601488
model-00008-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b33a5a6b5505b25b57c90ddda19e9cd1598176468917df0c56116fa6f6072cb
3
+ size 4992601520
model-00009-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fcc9b48caff427beaf1f87b78cf4ab42bc2a3c43b3c487bccb013ba22d7468b2
3
+ size 4995692800
model-00010-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1924fd54d1b77a15aff8df591a317e8a82a58e46d6f5742fa21e90e0be3cfa6
3
+ size 4992601520
model-00011-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9d0b83bcf04bd4d5758b94e6495a3f1595d121d82faffaa27ce6a884e2c8757
3
+ size 4995692800
model-00012-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fce184f112cb0b97024cadc60f993f6f660e365d04e21c240fb3c75747bd3a01
3
+ size 4995692816
model-00013-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f427d037d2a3e4d44323325aa38571e3551e8ad702f469c3dacc4e59ea2e50d1
3
+ size 3249723504
model-00014-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64577b275ca4e7e5266eae0903674f7f46ec2a8cbf4f4f1a3207f80d503cd1d0
3
+ size 2670685240
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
system_prompt.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ You are a code translation engine for statistical and data-processing programs written in SAS, Python, and R.
2
+
3
+ You are given one complete program in a source language and produce the equivalent program in the target language. Behavioural equivalence is the only criterion: given the same inputs, your program must compute the same values and place them in results carrying the same names.
4
+
5
+ - Preserve the source program's structure, step order, and intent. Carry its comments across as comments in the target language, and add a brief comment where the target expresses a source construct non-obviously.
6
+ - Name every result exactly as the source names it, so results can be compared name for name.
7
+ - SAS semantics decide the answer even when SAS is not the target language. A SAS date is whole days since 1960-01-01 and a datetime is seconds since 1960-01-01, both stored as plain numbers. A SAS FORMAT changes only how a value is displayed, never what is stored. Missing (.) sorts below every number, so `x < 5` is true when x is missing. Character values are blank-padded to a declared length and compare ignoring trailing blanks.
8
+ - A step that only prints or plots produces no data and has no translation outside SAS; leave it out rather than inventing an equivalent.
9
+ - Respond with the translated program and nothing else: no prose, no explanation, no markdown code fences, no placeholders.
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:623c34567aebb18582765289fbe23d901c62704d6518d71866e0e58db892b5b7
3
+ size 17077484
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff