doppler-gpu 0.4.8 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/models/catalog.json +21 -7
- package/package.json +8 -1
- package/src/config/conversion/qwen3/qwen-3-5-9b-f16-af32.json +474 -0
- package/src/config/conversion/qwen3/qwen-3-5-9b-q4k-ehaf16.json +509 -0
- package/src/config/kernels/backward-registry.json +13 -2
- package/src/config/kernels/kernel-ref-digests.js +8 -4
- package/src/config/kernels/registry.json +1035 -2677
- package/src/config/runtime/profiles/qwen-3-5-9b-metal-correctness.json +46 -0
- package/src/config/schema/training-metrics.schema.js +4 -0
- package/src/experimental/bridge/trainer-artifact-bridge.d.ts +161 -0
- package/src/experimental/bridge/trainer-artifact-bridge.js +573 -0
- package/src/experimental/training/attention-backward.js +123 -55
- package/src/experimental/training/autograd.js +101 -5
- package/src/experimental/training/clip.js +6 -1
- package/src/experimental/training/datasets/text-pairs.js +80 -8
- package/src/experimental/training/distillation/student-fixture.js +470 -114
- package/src/experimental/training/lora-pipeline.js +202 -27
- package/src/experimental/training/lora.js +10 -4
- package/src/experimental/training/optimizer.js +9 -1
- package/src/experimental/training/runner.js +18 -4
- package/src/experimental/training/workloads.js +11 -0
- package/src/gpu/kernels/backward/adam.js +6 -4
- package/src/gpu/kernels/backward/causal_conv1d_silu_backward.d.ts +24 -0
- package/src/gpu/kernels/backward/causal_conv1d_silu_backward.js +74 -0
- package/src/gpu/kernels/backward/causal_conv1d_silu_backward.wgsl +59 -0
- package/src/gpu/kernels/backward/cross_entropy_backward.wgsl +4 -0
- package/src/gpu/kernels/backward/gated_delta_recurrent_backward.d.ts +39 -0
- package/src/gpu/kernels/backward/gated_delta_recurrent_backward.js +124 -0
- package/src/gpu/kernels/backward/gated_delta_recurrent_backward.wgsl +177 -0
- package/src/gpu/kernels/backward/gated_rmsnorm_backward.d.ts +32 -0
- package/src/gpu/kernels/backward/gated_rmsnorm_backward.js +90 -0
- package/src/gpu/kernels/backward/gated_rmsnorm_backward.wgsl +86 -0
- package/src/gpu/kernels/backward/index.d.ts +3 -0
- package/src/gpu/kernels/backward/index.js +3 -0
- package/src/gpu/kernels/backward/matmul_backward.wgsl +6 -6
- package/src/gpu/kernels/backward/matmul_backward_f16w.wgsl +82 -0
- package/src/gpu/kernels/backward/rmsnorm_backward.js +26 -4
- package/src/gpu/kernels/backward/rmsnorm_backward.wgsl +6 -3
- package/src/gpu/kernels/backward/utils.d.ts +12 -2
- package/src/gpu/kernels/backward/utils.js +9 -2
- package/src/gpu/kernels/cast_f16_to_f32.wgsl +6 -2
- package/src/gpu/kernels/index.d.ts +5 -0
- package/src/gpu/kernels/index.js +5 -0
- package/src/gpu/kernels/matmul-selection.js +5 -0
- package/src/gpu/kernels/silu.d.ts +1 -0
- package/src/gpu/kernels/silu.js +19 -4
- package/src/inference/pipelines/text/embed.js +1 -1
- package/src/inference/pipelines/text/execution-v1.js +8 -2
- package/src/inference/pipelines/text/ffn/dense.js +2 -0
- package/src/inference/pipelines/text/generator.js +29 -0
- package/src/inference/pipelines/text/lora-apply.js +4 -4
- package/src/inference/pipelines/text/moe-cpu.js +1 -0
- package/src/inference/pipelines/text/moe-gpu.js +1 -0
- package/src/inference/tokenizers/bundled.js +105 -32
- package/src/rules/kernels/matmul.rules.json +1 -0
- package/src/tooling/node-converter.js +20 -5
- package/src/tooling-experimental-exports.shared.d.ts +25 -0
- package/src/tooling-experimental-exports.shared.js +18 -0
- package/src/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,16 @@ docs so the `0.1.x` line has one conventional npm-visible history surface.
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.4.9] - 2026-07-14
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- Corrected split gated SiLU/SwiGLU inference so dense and MoE FFNs compute
|
|
16
|
+
`SiLU(gate) * up` instead of applying SiLU to the up branch a second time.
|
|
17
|
+
Gated callers now fail closed unless the input-branch activation is explicit.
|
|
18
|
+
- Restored Qwen 3.5 9B F16 base and PEFT adapter parity with Transformers on the
|
|
19
|
+
frozen WGSL-repair probe without changing model, tokenizer, or adapter bytes.
|
|
20
|
+
|
|
11
21
|
## [0.4.8] - 2026-07-11
|
|
12
22
|
|
|
13
23
|
### Added
|
package/models/catalog.json
CHANGED
|
@@ -29,6 +29,10 @@
|
|
|
29
29
|
},
|
|
30
30
|
"baseUrl": null,
|
|
31
31
|
"quickstart": true,
|
|
32
|
+
"demoVisible": true,
|
|
33
|
+
"demoLabel": "Gemma 3 270M",
|
|
34
|
+
"demoRole": "Stable F32 browser lane",
|
|
35
|
+
"demoSortOrder": 10,
|
|
32
36
|
"sizeBytes": 418518521,
|
|
33
37
|
"recommended": false,
|
|
34
38
|
"sortOrder": 10,
|
|
@@ -228,6 +232,8 @@
|
|
|
228
232
|
},
|
|
229
233
|
"baseUrl": null,
|
|
230
234
|
"quickstart": true,
|
|
235
|
+
"demoLabel": "Gemma 3 1B",
|
|
236
|
+
"demoRole": "Larger Gemma text model",
|
|
231
237
|
"sizeBytes": 1044786820,
|
|
232
238
|
"recommended": false,
|
|
233
239
|
"sortOrder": 12,
|
|
@@ -359,6 +365,9 @@
|
|
|
359
365
|
},
|
|
360
366
|
"baseUrl": null,
|
|
361
367
|
"quickstart": true,
|
|
368
|
+
"demoLabel": "Gemma 4 E2B",
|
|
369
|
+
"demoRole": "Gemma 4 text and vision",
|
|
370
|
+
"demoSortOrder": 14,
|
|
362
371
|
"demoPreferredVariantId": "gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
|
|
363
372
|
"sizeBytes": 4009916310,
|
|
364
373
|
"recommended": false,
|
|
@@ -719,7 +728,7 @@
|
|
|
719
728
|
},
|
|
720
729
|
"baseUrl": null,
|
|
721
730
|
"quickstart": false,
|
|
722
|
-
"demoVisible":
|
|
731
|
+
"demoVisible": false,
|
|
723
732
|
"demoPreferredVariantId": "gemma-4-31b-it-text-q4k-ehf16-af16",
|
|
724
733
|
"demoWarningBadges": [
|
|
725
734
|
"19.3 GB / High RAM"
|
|
@@ -846,11 +855,8 @@
|
|
|
846
855
|
"baseUrl": null,
|
|
847
856
|
"quickstart": false,
|
|
848
857
|
"demoVisible": true,
|
|
849
|
-
"
|
|
850
|
-
|
|
851
|
-
"EN ↔ ES only"
|
|
852
|
-
],
|
|
853
|
-
"demoWarningText": "Experimental translation specialist. Public evidence is limited to EN/ES and does not establish general multilingual quality.",
|
|
858
|
+
"demoLabel": "TranslateGemma EN/ES",
|
|
859
|
+
"demoRole": "English and Spanish translation",
|
|
854
860
|
"sizeBytes": 1025493248,
|
|
855
861
|
"recommended": false,
|
|
856
862
|
"sortOrder": 14.9,
|
|
@@ -1272,6 +1278,10 @@
|
|
|
1272
1278
|
},
|
|
1273
1279
|
"baseUrl": null,
|
|
1274
1280
|
"quickstart": true,
|
|
1281
|
+
"demoVisible": true,
|
|
1282
|
+
"demoLabel": "Qwen 3.5 0.8B",
|
|
1283
|
+
"demoRole": "Compact general text",
|
|
1284
|
+
"demoSortOrder": 20,
|
|
1275
1285
|
"sizeBytes": 1155348912,
|
|
1276
1286
|
"recommended": false,
|
|
1277
1287
|
"sortOrder": 20,
|
|
@@ -1357,6 +1367,10 @@
|
|
|
1357
1367
|
},
|
|
1358
1368
|
"baseUrl": null,
|
|
1359
1369
|
"quickstart": true,
|
|
1370
|
+
"demoVisible": true,
|
|
1371
|
+
"demoLabel": "Qwen 3.5 2B",
|
|
1372
|
+
"demoRole": "Higher-capacity text",
|
|
1373
|
+
"demoSortOrder": 30,
|
|
1360
1374
|
"sizeBytes": 2496068973,
|
|
1361
1375
|
"recommended": false,
|
|
1362
1376
|
"sortOrder": 21,
|
|
@@ -1423,7 +1437,7 @@
|
|
|
1423
1437
|
},
|
|
1424
1438
|
"baseUrl": null,
|
|
1425
1439
|
"quickstart": false,
|
|
1426
|
-
"demoVisible":
|
|
1440
|
+
"demoVisible": false,
|
|
1427
1441
|
"demoPreferredVariantId": "qwen-3-6-27b-q4k-eaf16",
|
|
1428
1442
|
"demoWarningBadges": [
|
|
1429
1443
|
"15.8 GB / High RAM"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doppler-gpu",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"description": "Browser-native WebGPU inference engine for local intent and inference loops",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
"lean:check": "./lean/check.sh",
|
|
22
22
|
"ci:lean:execution-contract:configs": "node tools/lean-execution-contract-config-sweep.js --config-root src/config/conversion --manifest-root models --require-manifest-match",
|
|
23
23
|
"contracts:check": "node tools/check-contract-artifacts.js",
|
|
24
|
+
"trainer-handoff:verify": "node tools/verify-trainer-artifact-handoff.js verify --contract tools/policies/nativekd2-bf16-baseline-handoff.json --repo-root clocksmith/doppler=. --repo-root clocksmith/gamma=../gamma",
|
|
25
|
+
"trainer-handoff:import": "node tools/verify-trainer-artifact-handoff.js import --contract tools/policies/nativekd2-bf16-baseline-handoff.json --repo-root clocksmith/doppler=. --repo-root clocksmith/gamma=../gamma",
|
|
24
26
|
"program-bundle:export": "node tools/export-program-bundle.js",
|
|
25
27
|
"program-bundle:reference": "node tools/run-program-bundle-reference.js",
|
|
26
28
|
"program-bundle:reference:gemma4-int4ple": "node tools/run-program-bundle-reference.js --manifest models/local/gemma-4-e2b-it-q4k-ehf16-af32-int4ple/manifest.json --conversion-config src/config/conversion/gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple.json --out examples/program-bundles/gemma-4-e2b-it-q4k-ehf16-af32-int4ple.program-bundle.json --surface browser --prompt \"The color of the sky is\" --max-tokens 8",
|
|
@@ -34,6 +36,11 @@
|
|
|
34
36
|
"ci:training:contract": "node tools/ci-training-contract-gates.js",
|
|
35
37
|
"training:teachers:verify": "node tools/verify-host-teacher-contracts.js",
|
|
36
38
|
"training:teachers:qualify": "node tools/qualify-code-teachers.js",
|
|
39
|
+
"training:students:verify": "node tools/verify-student-code-experiment.js",
|
|
40
|
+
"training:students:run": "node tools/run-student-code-experiment.js",
|
|
41
|
+
"training:wgsl:corpus": "node tools/build-wgsl-repair-corpus.js",
|
|
42
|
+
"training:wgsl:experiment": "node tools/run-wgsl-repair-experiment.js",
|
|
43
|
+
"training:wgsl:rollouts": "node tools/run-wgsl-repair-rollouts.js",
|
|
37
44
|
"training:contract:delta": "node tools/emit-training-contract-delta.js",
|
|
38
45
|
"training:workloads:verify": "node tools/verify-training-workload-packs.js --registry src/experimental/training/workload-packs/registry.json",
|
|
39
46
|
"training:report-ids:publish": "node tools/publish-training-report-ids.js --registry src/experimental/training/workload-packs/registry.json",
|
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelType": "transformer",
|
|
3
|
+
"output": {
|
|
4
|
+
"baseDir": "models/local",
|
|
5
|
+
"modelBaseId": "qwen-3-5-9b-f16-af32",
|
|
6
|
+
"textOnly": true,
|
|
7
|
+
"fast": false
|
|
8
|
+
},
|
|
9
|
+
"quantization": {
|
|
10
|
+
"weights": "f16",
|
|
11
|
+
"embeddings": "f16",
|
|
12
|
+
"lmHead": "f16",
|
|
13
|
+
"computePrecision": "f32"
|
|
14
|
+
},
|
|
15
|
+
"manifest": {
|
|
16
|
+
"hashAlgorithm": "blake3",
|
|
17
|
+
"artifactIdentity": {
|
|
18
|
+
"sourceCheckpointId": "Qwen/Qwen3.5-9B",
|
|
19
|
+
"sourceRepo": "Qwen/Qwen3.5-9B",
|
|
20
|
+
"sourceRevision": "c202236235762e1c871ad0ccb60c8ee5ba337b9a",
|
|
21
|
+
"weightPackId": "qwen-3-5-9b-f16-af32-wp-catalog-v1",
|
|
22
|
+
"manifestVariantId": "qwen-3-5-9b-f16-af32-mv-exec-v1",
|
|
23
|
+
"artifactCompleteness": "complete"
|
|
24
|
+
},
|
|
25
|
+
"eosTokenId": [
|
|
26
|
+
248046,
|
|
27
|
+
248044
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"inference": {
|
|
31
|
+
"attention": {
|
|
32
|
+
"queryPreAttnScalar": 256,
|
|
33
|
+
"attnLogitSoftcapping": null,
|
|
34
|
+
"slidingWindow": null,
|
|
35
|
+
"queryKeyNorm": true,
|
|
36
|
+
"valueNorm": false,
|
|
37
|
+
"causal": true,
|
|
38
|
+
"attentionBias": false,
|
|
39
|
+
"attentionOutputGate": true
|
|
40
|
+
},
|
|
41
|
+
"normalization": {
|
|
42
|
+
"rmsNormEps": 0.000001,
|
|
43
|
+
"rmsNormWeightOffset": true,
|
|
44
|
+
"postAttentionNorm": true,
|
|
45
|
+
"preFeedforwardNorm": false,
|
|
46
|
+
"postFeedforwardNorm": false
|
|
47
|
+
},
|
|
48
|
+
"ffn": {
|
|
49
|
+
"activation": "silu",
|
|
50
|
+
"gatedActivation": true,
|
|
51
|
+
"branchMode": "auto",
|
|
52
|
+
"useDoubleWideMlp": false,
|
|
53
|
+
"swigluLimit": null
|
|
54
|
+
},
|
|
55
|
+
"rope": {
|
|
56
|
+
"ropeTheta": 10000000,
|
|
57
|
+
"ropeLocalTheta": null,
|
|
58
|
+
"mropeInterleaved": true,
|
|
59
|
+
"mropeSection": [
|
|
60
|
+
11,
|
|
61
|
+
11,
|
|
62
|
+
10
|
|
63
|
+
],
|
|
64
|
+
"partialRotaryFactor": 0.25,
|
|
65
|
+
"ropeLocalPartialRotaryFactor": null,
|
|
66
|
+
"ropeFrequencyBaseDim": null,
|
|
67
|
+
"ropeLocalFrequencyBaseDim": null,
|
|
68
|
+
"ropeScalingType": null,
|
|
69
|
+
"ropeScalingFactor": 1,
|
|
70
|
+
"ropeLocalScalingType": null,
|
|
71
|
+
"ropeLocalScalingFactor": 1,
|
|
72
|
+
"yarnBetaFast": null,
|
|
73
|
+
"yarnBetaSlow": null,
|
|
74
|
+
"yarnOriginalMaxPos": null,
|
|
75
|
+
"ropeLocalYarnBetaFast": null,
|
|
76
|
+
"ropeLocalYarnBetaSlow": null,
|
|
77
|
+
"ropeLocalYarnOriginalMaxPos": null,
|
|
78
|
+
"longropeShortFactor": null,
|
|
79
|
+
"longropeLongFactor": null,
|
|
80
|
+
"longropeOriginalMaxPos": null
|
|
81
|
+
},
|
|
82
|
+
"output": {
|
|
83
|
+
"finalLogitSoftcapping": null,
|
|
84
|
+
"tieWordEmbeddings": false,
|
|
85
|
+
"scaleEmbeddings": false,
|
|
86
|
+
"embeddingTranspose": false,
|
|
87
|
+
"embeddingVocabSize": null,
|
|
88
|
+
"embeddingPostprocessor": null,
|
|
89
|
+
"embeddingScale": null,
|
|
90
|
+
"logitInputScale": 1
|
|
91
|
+
},
|
|
92
|
+
"layerPattern": {
|
|
93
|
+
"type": "custom",
|
|
94
|
+
"globalPattern": null,
|
|
95
|
+
"period": null,
|
|
96
|
+
"offset": null,
|
|
97
|
+
"layerTypes": [
|
|
98
|
+
"linear_attention",
|
|
99
|
+
"linear_attention",
|
|
100
|
+
"linear_attention",
|
|
101
|
+
"full_attention",
|
|
102
|
+
"linear_attention",
|
|
103
|
+
"linear_attention",
|
|
104
|
+
"linear_attention",
|
|
105
|
+
"full_attention",
|
|
106
|
+
"linear_attention",
|
|
107
|
+
"linear_attention",
|
|
108
|
+
"linear_attention",
|
|
109
|
+
"full_attention",
|
|
110
|
+
"linear_attention",
|
|
111
|
+
"linear_attention",
|
|
112
|
+
"linear_attention",
|
|
113
|
+
"full_attention",
|
|
114
|
+
"linear_attention",
|
|
115
|
+
"linear_attention",
|
|
116
|
+
"linear_attention",
|
|
117
|
+
"full_attention",
|
|
118
|
+
"linear_attention",
|
|
119
|
+
"linear_attention",
|
|
120
|
+
"linear_attention",
|
|
121
|
+
"full_attention",
|
|
122
|
+
"linear_attention",
|
|
123
|
+
"linear_attention",
|
|
124
|
+
"linear_attention",
|
|
125
|
+
"full_attention",
|
|
126
|
+
"linear_attention",
|
|
127
|
+
"linear_attention",
|
|
128
|
+
"linear_attention",
|
|
129
|
+
"full_attention"
|
|
130
|
+
],
|
|
131
|
+
"residualBranchScale": 1
|
|
132
|
+
},
|
|
133
|
+
"chatTemplate": {
|
|
134
|
+
"type": "qwen",
|
|
135
|
+
"enabled": true
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"session": {
|
|
139
|
+
"compute": {
|
|
140
|
+
"defaults": {
|
|
141
|
+
"activationDtype": "f32",
|
|
142
|
+
"mathDtype": "f32",
|
|
143
|
+
"accumDtype": "f32",
|
|
144
|
+
"outputDtype": "f32"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"kvcache": {
|
|
148
|
+
"kvDtype": "f16",
|
|
149
|
+
"layout": "contiguous",
|
|
150
|
+
"maxSeqLen": 8192,
|
|
151
|
+
"pageSize": 256,
|
|
152
|
+
"tiering": {
|
|
153
|
+
"mode": "off",
|
|
154
|
+
"hotWindow": 1024,
|
|
155
|
+
"coldPageSize": 256,
|
|
156
|
+
"coldDtype": "f16",
|
|
157
|
+
"compression": {
|
|
158
|
+
"mode": "none",
|
|
159
|
+
"blockSize": 1,
|
|
160
|
+
"bitWidth": 4,
|
|
161
|
+
"prodMode": false
|
|
162
|
+
},
|
|
163
|
+
"gating": {
|
|
164
|
+
"mode": "auto",
|
|
165
|
+
"minAluBwRatio": 0
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"quantization": {
|
|
169
|
+
"mode": "none",
|
|
170
|
+
"bitWidth": 4,
|
|
171
|
+
"prodMode": false
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"decodeLoop": {
|
|
175
|
+
"batchSize": 12,
|
|
176
|
+
"stopCheckMode": "batch",
|
|
177
|
+
"readbackInterval": 32,
|
|
178
|
+
"readbackMode": "sequential",
|
|
179
|
+
"submitLatencyThresholdMs": null,
|
|
180
|
+
"ringTokens": 1,
|
|
181
|
+
"ringStop": 1,
|
|
182
|
+
"ringStaging": 1,
|
|
183
|
+
"disableCommandBatching": true
|
|
184
|
+
},
|
|
185
|
+
"perLayerInputs": {
|
|
186
|
+
"materialization": "auto",
|
|
187
|
+
"rowCache": {
|
|
188
|
+
"mode": "lru",
|
|
189
|
+
"maxRows": 256,
|
|
190
|
+
"maxBytes": 134217728,
|
|
191
|
+
"decodedDtype": "f32"
|
|
192
|
+
},
|
|
193
|
+
"prefetch": {
|
|
194
|
+
"mode": "next_token",
|
|
195
|
+
"rowsAhead": 1
|
|
196
|
+
},
|
|
197
|
+
"gpuUpload": {
|
|
198
|
+
"mode": "per_step_slices",
|
|
199
|
+
"stagingRows": 2
|
|
200
|
+
},
|
|
201
|
+
"hotCache": {
|
|
202
|
+
"mode": "prepared_tokens",
|
|
203
|
+
"maxTokens": 1024,
|
|
204
|
+
"maxBytes": 134217728,
|
|
205
|
+
"outputDtype": "f32"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"speculation": {
|
|
209
|
+
"mode": "self",
|
|
210
|
+
"tokens": 1,
|
|
211
|
+
"verify": "greedy",
|
|
212
|
+
"threshold": null,
|
|
213
|
+
"rollbackOnReject": true
|
|
214
|
+
},
|
|
215
|
+
"prefillChunkSubmitMode": "async",
|
|
216
|
+
"useFlashPrefillAttention": false,
|
|
217
|
+
"useWideTileQ4KPrefill": false,
|
|
218
|
+
"retainQ4KMaterialization": false
|
|
219
|
+
},
|
|
220
|
+
"largeWeights": {
|
|
221
|
+
"gpuResidentOverrides": null
|
|
222
|
+
},
|
|
223
|
+
"execution": {
|
|
224
|
+
"inlineKernelPath": true,
|
|
225
|
+
"kernels": {
|
|
226
|
+
"embed": {
|
|
227
|
+
"kernel": "gather_f16.wgsl",
|
|
228
|
+
"entry": "main",
|
|
229
|
+
"digest": "sha256:8995b4a790a1f3b89fbb801f89d595985eee46c9bfca4133f74396259083eda9"
|
|
230
|
+
},
|
|
231
|
+
"rmsnorm": {
|
|
232
|
+
"kernel": "rmsnorm.wgsl",
|
|
233
|
+
"entry": "main",
|
|
234
|
+
"digest": "sha256:284d3efb0ad0991fc57ece5f634cbc8a931fcab36f193b2b6832561d4cc79ef1"
|
|
235
|
+
},
|
|
236
|
+
"gemv": {
|
|
237
|
+
"kernel": "matmul_gemv_subgroup.wgsl",
|
|
238
|
+
"entry": "main_vec4",
|
|
239
|
+
"digest": "sha256:2ea9aea659367210fbf61d922c0d4ee17cdac68ffb506b3bc5516e498071e011"
|
|
240
|
+
},
|
|
241
|
+
"rope": {
|
|
242
|
+
"kernel": "rope.wgsl",
|
|
243
|
+
"entry": "main",
|
|
244
|
+
"digest": "sha256:b2da9d396668981dab9794c2973b668279f768994466b083d2105730555e1a5b"
|
|
245
|
+
},
|
|
246
|
+
"attn_decode": {
|
|
247
|
+
"kernel": "attention_decode_online_f16kv.wgsl",
|
|
248
|
+
"entry": "main",
|
|
249
|
+
"digest": "sha256:91808be35895e921c0fa43fc47bfe8cab69c437c388ab561f595d9dc983f66e1",
|
|
250
|
+
"precision": {
|
|
251
|
+
"kvDtype": "f16"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"residual": {
|
|
255
|
+
"kernel": "residual.wgsl",
|
|
256
|
+
"entry": "main",
|
|
257
|
+
"digest": "sha256:abd19bc08ad668a7cad562e2bc0a4be1aa8827ad4300d8d474b7fc2af4c27117"
|
|
258
|
+
},
|
|
259
|
+
"silu": {
|
|
260
|
+
"kernel": "silu.wgsl",
|
|
261
|
+
"entry": "main",
|
|
262
|
+
"digest": "sha256:7b52d30fb741beef2dbf728e0c4ecffe5b08d9661d63c306caecb4cb3ced85e5",
|
|
263
|
+
"constants": {
|
|
264
|
+
"HAS_GATE": true
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"tiled": {
|
|
268
|
+
"kernel": "matmul_f16w_f32a.wgsl",
|
|
269
|
+
"entry": "main",
|
|
270
|
+
"digest": "sha256:027a8f1cd9713cbe0b0ada160bd175e0542bb90896ad85441b023522d9a1befc"
|
|
271
|
+
},
|
|
272
|
+
"attn_stream": {
|
|
273
|
+
"kernel": "attention_streaming_f16kv.wgsl",
|
|
274
|
+
"entry": "main",
|
|
275
|
+
"digest": "sha256:c3ec920699a81ee6df04a64eb0ea2477bec168ebb809af29f2d4b0924a4bdf8f",
|
|
276
|
+
"precision": {
|
|
277
|
+
"kvDtype": "f16"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"attn_head256": {
|
|
281
|
+
"kernel": "attention_head256_f16kv.wgsl",
|
|
282
|
+
"entry": "main",
|
|
283
|
+
"digest": "sha256:4ecdc079e322a770350414244cb383d72ae7ffa47ed620c64ff425c93413e97a",
|
|
284
|
+
"precision": {
|
|
285
|
+
"kvDtype": "f16"
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"lm_head_gemv": {
|
|
289
|
+
"kernel": "matmul_gemv_subgroup.wgsl",
|
|
290
|
+
"entry": "main_multicol",
|
|
291
|
+
"digest": "sha256:e41f94574d5ac54dd2710036da5d5acc643a483b79b2d74b86825efdaaa7438f",
|
|
292
|
+
"constants": {
|
|
293
|
+
"MULTICOL_COLS_PER_WG": 64,
|
|
294
|
+
"MULTICOL_THREADS_PER_COL": 4
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"sample": {
|
|
298
|
+
"kernel": "sample.wgsl",
|
|
299
|
+
"entry": "sample_single_pass",
|
|
300
|
+
"digest": "sha256:7ff3dd675b4737d920e0b3889e15c4fedde8410a353bbc6d4651db76ce69eb9b"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"preLayer": [
|
|
304
|
+
[
|
|
305
|
+
"embed",
|
|
306
|
+
"embed",
|
|
307
|
+
"embed_tokens"
|
|
308
|
+
]
|
|
309
|
+
],
|
|
310
|
+
"decode": [
|
|
311
|
+
[
|
|
312
|
+
"input_norm",
|
|
313
|
+
"rmsnorm"
|
|
314
|
+
],
|
|
315
|
+
[
|
|
316
|
+
"q_proj",
|
|
317
|
+
"gemv",
|
|
318
|
+
"layer.{L}.self_attn.q_proj"
|
|
319
|
+
],
|
|
320
|
+
[
|
|
321
|
+
"k_proj",
|
|
322
|
+
"gemv",
|
|
323
|
+
"layer.{L}.self_attn.k_proj"
|
|
324
|
+
],
|
|
325
|
+
[
|
|
326
|
+
"v_proj",
|
|
327
|
+
"gemv",
|
|
328
|
+
"layer.{L}.self_attn.v_proj"
|
|
329
|
+
],
|
|
330
|
+
[
|
|
331
|
+
"rope_q",
|
|
332
|
+
"rope"
|
|
333
|
+
],
|
|
334
|
+
[
|
|
335
|
+
"rope_k",
|
|
336
|
+
"rope"
|
|
337
|
+
],
|
|
338
|
+
[
|
|
339
|
+
"attention",
|
|
340
|
+
"attn_decode"
|
|
341
|
+
],
|
|
342
|
+
[
|
|
343
|
+
"o_proj",
|
|
344
|
+
"gemv",
|
|
345
|
+
"layer.{L}.self_attn.o_proj"
|
|
346
|
+
],
|
|
347
|
+
[
|
|
348
|
+
"attn_residual",
|
|
349
|
+
"residual"
|
|
350
|
+
],
|
|
351
|
+
[
|
|
352
|
+
"post_attn_norm",
|
|
353
|
+
"rmsnorm"
|
|
354
|
+
],
|
|
355
|
+
[
|
|
356
|
+
"gate_proj",
|
|
357
|
+
"gemv",
|
|
358
|
+
"layer.{L}.mlp.gate_proj"
|
|
359
|
+
],
|
|
360
|
+
[
|
|
361
|
+
"up_proj",
|
|
362
|
+
"gemv",
|
|
363
|
+
"layer.{L}.mlp.up_proj"
|
|
364
|
+
],
|
|
365
|
+
[
|
|
366
|
+
"activation",
|
|
367
|
+
"silu"
|
|
368
|
+
],
|
|
369
|
+
[
|
|
370
|
+
"down_proj",
|
|
371
|
+
"gemv",
|
|
372
|
+
"layer.{L}.mlp.down_proj"
|
|
373
|
+
],
|
|
374
|
+
[
|
|
375
|
+
"ffn_residual",
|
|
376
|
+
"residual"
|
|
377
|
+
]
|
|
378
|
+
],
|
|
379
|
+
"prefill": [
|
|
380
|
+
[
|
|
381
|
+
"input_norm",
|
|
382
|
+
"rmsnorm"
|
|
383
|
+
],
|
|
384
|
+
[
|
|
385
|
+
"q_proj",
|
|
386
|
+
"tiled",
|
|
387
|
+
"layer.{L}.self_attn.q_proj"
|
|
388
|
+
],
|
|
389
|
+
[
|
|
390
|
+
"k_proj",
|
|
391
|
+
"tiled",
|
|
392
|
+
"layer.{L}.self_attn.k_proj"
|
|
393
|
+
],
|
|
394
|
+
[
|
|
395
|
+
"v_proj",
|
|
396
|
+
"tiled",
|
|
397
|
+
"layer.{L}.self_attn.v_proj"
|
|
398
|
+
],
|
|
399
|
+
[
|
|
400
|
+
"rope_q",
|
|
401
|
+
"rope"
|
|
402
|
+
],
|
|
403
|
+
[
|
|
404
|
+
"rope_k",
|
|
405
|
+
"rope"
|
|
406
|
+
],
|
|
407
|
+
[
|
|
408
|
+
"attention",
|
|
409
|
+
"attn_head256"
|
|
410
|
+
],
|
|
411
|
+
[
|
|
412
|
+
"o_proj",
|
|
413
|
+
"tiled",
|
|
414
|
+
"layer.{L}.self_attn.o_proj"
|
|
415
|
+
],
|
|
416
|
+
[
|
|
417
|
+
"attn_residual",
|
|
418
|
+
"residual"
|
|
419
|
+
],
|
|
420
|
+
[
|
|
421
|
+
"post_attn_norm",
|
|
422
|
+
"rmsnorm"
|
|
423
|
+
],
|
|
424
|
+
[
|
|
425
|
+
"gate_proj",
|
|
426
|
+
"tiled",
|
|
427
|
+
"layer.{L}.mlp.gate_proj"
|
|
428
|
+
],
|
|
429
|
+
[
|
|
430
|
+
"up_proj",
|
|
431
|
+
"tiled",
|
|
432
|
+
"layer.{L}.mlp.up_proj"
|
|
433
|
+
],
|
|
434
|
+
[
|
|
435
|
+
"activation",
|
|
436
|
+
"silu"
|
|
437
|
+
],
|
|
438
|
+
[
|
|
439
|
+
"down_proj",
|
|
440
|
+
"tiled",
|
|
441
|
+
"layer.{L}.mlp.down_proj"
|
|
442
|
+
],
|
|
443
|
+
[
|
|
444
|
+
"ffn_residual",
|
|
445
|
+
"residual"
|
|
446
|
+
]
|
|
447
|
+
],
|
|
448
|
+
"postLayer": [
|
|
449
|
+
[
|
|
450
|
+
"final_norm",
|
|
451
|
+
"rmsnorm"
|
|
452
|
+
],
|
|
453
|
+
[
|
|
454
|
+
"lm_head",
|
|
455
|
+
"lm_head_gemv",
|
|
456
|
+
"lm_head"
|
|
457
|
+
],
|
|
458
|
+
[
|
|
459
|
+
"lm_head_prefill",
|
|
460
|
+
"tiled",
|
|
461
|
+
"lm_head"
|
|
462
|
+
],
|
|
463
|
+
[
|
|
464
|
+
"sample",
|
|
465
|
+
"sample"
|
|
466
|
+
]
|
|
467
|
+
],
|
|
468
|
+
"policies": {
|
|
469
|
+
"unsupportedPrecision": "error",
|
|
470
|
+
"dtypeTransition": "require_cast_step",
|
|
471
|
+
"unresolvedKernel": "error"
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|