doppler-gpu 0.4.5 → 0.4.7
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/README.md +45 -29
- package/assets/doppler-runtime-map.svg +82 -0
- package/assets/doppler.svg +1 -3
- package/package.json +25 -17
- package/src/cli/doppler-quickstart.js +1 -1
- package/src/cli/doppler-serve.js +2 -2
- package/src/client/doppler-registry.d.ts +19 -0
- package/src/client/doppler-registry.js +12 -0
- package/src/client/doppler-registry.json +50 -1
- package/src/client/runtime/model-session.d.ts +1 -0
- package/src/client/runtime/model-session.js +9 -0
- package/src/config/conversion/README.md +4 -0
- package/src/config/conversion/diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16.json +28 -4
- package/src/config/conversion/embeddinggemma/google-embeddinggemma-300m-q4k-ehf16-af32.json +29 -4
- package/src/config/conversion/gemma3/gemma-3-1b-it-f16-af32.json +29 -4
- package/src/config/conversion/gemma3/gemma-3-1b-it-q4k-ehf16-af32.json +29 -4
- package/src/config/conversion/gemma3/gemma-3-270m-it-f16-af32.json +29 -4
- package/src/config/conversion/gemma3/gemma-3-270m-it-q4k-ehf16-af16.json +29 -4
- package/src/config/conversion/gemma3/gemma-3-270m-it-q4k-ehf16-af32.json +29 -4
- package/src/config/conversion/gemma3/translategemma-4b-1b-enes-q4k-ehf16-af32.json +29 -4
- package/src/config/conversion/gemma3/translategemma-4b-it-q4k-ehf16-af32.json +29 -4
- package/src/config/conversion/gemma4/gemma-4-12b-it-text-q4k-ehf16-af16.json +31 -5
- package/src/config/conversion/gemma4/gemma-4-12b-it-text-q4k-ehf16-af32.json +30 -4
- package/src/config/conversion/gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16.json +30 -4
- package/src/config/conversion/gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16.json +30 -4
- package/src/config/conversion/gemma4/gemma-4-31b-it-text-q4k-ehf16-af16.json +30 -5
- package/src/config/conversion/gemma4/gemma-4-31b-it-text-q4k-ehf16-af32.json +29 -4
- package/src/config/conversion/gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple.json +30 -5
- package/src/config/conversion/gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple.json +29 -4
- package/src/config/conversion/gemma4/gemma-4-e2b-it-q4k-ehf16-af32.json +29 -4
- package/src/config/conversion/gemma4/gemma-4-moe-q4k-ehf16-af32.json +29 -4
- package/src/config/conversion/gpt-oss-20b-f16-xmxfp4.json +29 -4
- package/src/config/conversion/janus/janus-pro-1b-text-q4k-ehaf16.json +29 -4
- package/src/config/conversion/lfm2/lfm2.5-1.2b-instruct-q4k-ehf16-af32.json +29 -4
- package/src/config/conversion/minicpm/minicpm4-0-5b-f16-af32.json +481 -0
- package/src/config/conversion/qwen3/qwen-3-5-0-8b-q4k-ehaf16.json +29 -4
- package/src/config/conversion/qwen3/qwen-3-5-2b-q4k-ehaf16.json +29 -4
- package/src/config/conversion/qwen3/qwen-3-6-27b-q4k-eaf16.json +30 -5
- package/src/config/conversion/qwen3/qwen-3-6-27b-q4k-ehaf16.json +29 -4
- package/src/config/conversion/qwen3/qwen-3-embedding-0-6b-q4k-ehf16-af32.json +395 -0
- package/src/config/conversion/qwen3/qwen-3-reranker-0-6b-f16-af32.json +429 -0
- package/src/config/conversion/qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32.json +540 -0
- package/src/config/execution-contract-check.js +14 -10
- package/src/config/merge-contract-check.js +1 -0
- package/src/config/merge.js +30 -0
- package/src/config/param-validator.d.ts +5 -0
- package/src/config/param-validator.js +42 -8
- package/src/config/required-inference-fields-contract-check.js +14 -0
- package/src/config/schema/debug.schema.d.ts +2 -0
- package/src/config/schema/debug.schema.js +1 -0
- package/src/config/schema/doppler.schema.d.ts +5 -1
- package/src/config/schema/doppler.schema.js +82 -292
- package/src/config/schema/inference.schema.d.ts +17 -3
- package/src/config/schema/kvcache.schema.d.ts +19 -3
- package/src/config/schema/kvcache.schema.js +2 -1
- package/src/config/schema/manifest.schema.d.ts +38 -1
- package/src/config/schema/manifest.schema.js +18 -0
- package/src/config/schema/policy-schema-registry.json +5 -0
- package/src/config/source-packages/litert/gemma-4-12b-it.json +20 -1
- package/src/config/source-packages/litert/gemma-4-e2b-it.json +20 -1
- package/src/config/source-packages/litert/gemma-4-e4b-it.json +21 -1
- package/src/config/transforms/execution-graph-transforms.d.ts +6 -0
- package/src/config/transforms/execution-graph-transforms.js +8 -0
- package/src/converter/conversion-plan.js +2 -0
- package/src/converter/parsers/transformer.js +27 -1
- package/src/converter/quantization-info.js +16 -4
- package/src/converter/rope-config.js +55 -3
- package/src/experimental/training/distillation/student-fixture.js +1 -1
- package/src/experimental/training/lora-pipeline.js +1 -1
- package/src/experimental/training/lora.js +2 -2
- package/src/experimental/training/suite.js +1 -1
- package/src/gpu/device.js +54 -11
- package/src/gpu/kernels/README.md +8 -1
- package/src/gpu/kernels/backward/attention_backward.js +8 -0
- package/src/gpu/kernels/dequant.d.ts +6 -6
- package/src/gpu/kernels/dequant.js +17 -6
- package/src/gpu/kernels/linear-attention-core.js +1 -6
- package/src/gpu/kernels/matmul-selection.d.ts +2 -2
- package/src/gpu/kernels/matmul-selection.js +9 -2
- package/src/gpu/kernels/matmul.d.ts +1 -1
- package/src/gpu/kernels/matmul.js +63 -9
- package/src/gpu/kernels/moe.d.ts +5 -1
- package/src/gpu/kernels/moe.js +5 -2
- package/src/gpu/kernels/softmax.d.ts +3 -3
- package/src/gpu/kernels/softmax.js +9 -2
- package/src/gpu/kernels/turboquant-codebook.js +1 -1
- package/src/gpu/kernels/types.d.ts +1 -1
- package/src/gpu/profiler.js +11 -1
- package/src/inference/browser-harness-model-helpers.js +4 -1
- package/src/inference/browser-harness-text-helpers.d.ts +28 -0
- package/src/inference/browser-harness-text-helpers.js +357 -116
- package/src/inference/browser-harness.d.ts +3 -3
- package/src/inference/browser-harness.js +266 -11
- package/src/inference/fixtures/rerank-semantic-fixtures.json +38 -0
- package/src/inference/kv-cache/quantized.js +16 -2
- package/src/inference/kv-cache/tiered.js +50 -15
- package/src/inference/moe-router.js +38 -7
- package/src/inference/pipelines/diffusion/text-encoder-gpu.d.ts +1 -1
- package/src/inference/pipelines/diffusion/text-encoder-gpu.js +8 -6
- package/src/inference/pipelines/text/config.d.ts +5 -1
- package/src/inference/pipelines/text/config.js +135 -112
- package/src/inference/pipelines/text/embed.d.ts +1 -0
- package/src/inference/pipelines/text/embed.js +39 -12
- package/src/inference/pipelines/text/execution-plan.js +8 -2
- package/src/inference/pipelines/text/ffn/dense.js +15 -4
- package/src/inference/pipelines/text/ffn/moe.js +4 -3
- package/src/inference/pipelines/text/ffn/standard.d.ts +2 -1
- package/src/inference/pipelines/text/ffn/standard.js +25 -2
- package/src/inference/pipelines/text/generator-helpers.js +2 -1
- package/src/inference/pipelines/text/generator-runtime.d.ts +6 -2
- package/src/inference/pipelines/text/generator-runtime.js +53 -20
- package/src/inference/pipelines/text/generator-steps.js +3 -0
- package/src/inference/pipelines/text/generator.d.ts +1 -0
- package/src/inference/pipelines/text/generator.js +14 -1
- package/src/inference/pipelines/text/init-rope.js +54 -6
- package/src/inference/pipelines/text/init.js +63 -15
- package/src/inference/pipelines/text/layer.js +32 -5
- package/src/inference/pipelines/text/linear-attention.js +12 -8
- package/src/inference/pipelines/text/logits/gpu.d.ts +1 -1
- package/src/inference/pipelines/text/logits/gpu.js +76 -113
- package/src/inference/pipelines/text/logits/index.js +44 -87
- package/src/inference/pipelines/text/logits/precision-policy.d.ts +11 -0
- package/src/inference/pipelines/text/logits/precision-policy.js +103 -0
- package/src/inference/pipelines/text/logits/types.d.ts +1 -0
- package/src/inference/pipelines/text/logits/utils.d.ts +2 -0
- package/src/inference/pipelines/text/logits/utils.js +11 -0
- package/src/inference/pipelines/text/lora-apply.js +6 -4
- package/src/inference/pipelines/text/moe-cpu.js +25 -0
- package/src/inference/pipelines/text/moe-gpu.js +148 -97
- package/src/inference/pipelines/text/moe-shape-validator.d.ts +33 -3
- package/src/inference/pipelines/text/moe-shape-validator.js +149 -31
- package/src/inference/pipelines/text/ops.d.ts +3 -0
- package/src/inference/pipelines/text/ops.js +26 -1
- package/src/inference/pipelines/text/per-layer-inputs.js +27 -12
- package/src/inference/pipelines/text/sampling.js +52 -10
- package/src/inference/pipelines/text/weights.js +7 -2
- package/src/inference/pipelines/text.js +24 -4
- package/src/inference/tokenizers/behavior-flags.js +23 -2
- package/src/loader/final-weights-loader.js +12 -1
- package/src/loader/tensors/tensor-loader.js +37 -3
- package/src/rules/execution-rules-contract-check.js +12 -3
- package/src/rules/inference/capability-transforms.rules.json +14 -2
- package/src/rules/inference/config.rules.json +26 -2
- package/src/rules/inference/dtype.rules.json +12 -5
- package/src/rules/inference/execution.rules.json +5 -19
- package/src/rules/inference/moe.rules.json +97 -0
- package/src/rules/loader/weights.rules.json +1 -0
- package/src/tooling/command-api-constants.js +2 -2
- package/src/tooling/command-api-family-normalizers.js +2 -1
- package/src/tooling/command-api.d.ts +1 -1
- package/src/tooling/command-runner-shared.d.ts +1 -1
- package/src/tooling/command-runner-shared.js +3 -1
- package/src/tooling/node-converter.js +20 -0
- package/src/tooling/node-source-runtime.js +5 -1
- package/src/version.js +1 -1
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelType": "transformer",
|
|
3
|
+
"output": {
|
|
4
|
+
"baseDir": "models/local",
|
|
5
|
+
"modelBaseId": "qwen-3-reranker-0-6b-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-Reranker-0.6B",
|
|
19
|
+
"weightPackId": "qwen-3-reranker-0-6b-f16-af32-wp-catalog-v1",
|
|
20
|
+
"manifestVariantId": "qwen-3-reranker-0-6b-f16-af32-mv-exec-v1",
|
|
21
|
+
"artifactCompleteness": "complete"
|
|
22
|
+
},
|
|
23
|
+
"eosTokenId": 151645
|
|
24
|
+
},
|
|
25
|
+
"inference": {
|
|
26
|
+
"supportsRerank": true,
|
|
27
|
+
"attention": {
|
|
28
|
+
"queryPreAttnScalar": 128,
|
|
29
|
+
"attnLogitSoftcapping": null,
|
|
30
|
+
"slidingWindow": null,
|
|
31
|
+
"queryKeyNorm": true,
|
|
32
|
+
"valueNorm": false,
|
|
33
|
+
"causal": true,
|
|
34
|
+
"attentionBias": false,
|
|
35
|
+
"attentionOutputGate": false
|
|
36
|
+
},
|
|
37
|
+
"normalization": {
|
|
38
|
+
"rmsNormEps": 0.000001,
|
|
39
|
+
"rmsNormWeightOffset": false,
|
|
40
|
+
"postAttentionNorm": true,
|
|
41
|
+
"preFeedforwardNorm": false,
|
|
42
|
+
"postFeedforwardNorm": false
|
|
43
|
+
},
|
|
44
|
+
"ffn": {
|
|
45
|
+
"activation": "silu",
|
|
46
|
+
"gatedActivation": true,
|
|
47
|
+
"branchMode": "dense",
|
|
48
|
+
"useDoubleWideMlp": false,
|
|
49
|
+
"swigluLimit": null
|
|
50
|
+
},
|
|
51
|
+
"rope": {
|
|
52
|
+
"ropeTheta": 1000000,
|
|
53
|
+
"ropeLocalTheta": null,
|
|
54
|
+
"mropeInterleaved": false,
|
|
55
|
+
"mropeSection": null,
|
|
56
|
+
"partialRotaryFactor": null,
|
|
57
|
+
"ropeLocalPartialRotaryFactor": null,
|
|
58
|
+
"ropeFrequencyBaseDim": null,
|
|
59
|
+
"ropeLocalFrequencyBaseDim": null,
|
|
60
|
+
"ropeScalingType": null,
|
|
61
|
+
"ropeScalingFactor": 1,
|
|
62
|
+
"ropeLocalScalingType": null,
|
|
63
|
+
"ropeLocalScalingFactor": 1,
|
|
64
|
+
"yarnBetaFast": null,
|
|
65
|
+
"yarnBetaSlow": null,
|
|
66
|
+
"yarnOriginalMaxPos": null,
|
|
67
|
+
"ropeLocalYarnBetaFast": null,
|
|
68
|
+
"ropeLocalYarnBetaSlow": null,
|
|
69
|
+
"ropeLocalYarnOriginalMaxPos": null,
|
|
70
|
+
"longropeShortFactor": null,
|
|
71
|
+
"longropeLongFactor": null,
|
|
72
|
+
"longropeOriginalMaxPos": null
|
|
73
|
+
},
|
|
74
|
+
"output": {
|
|
75
|
+
"finalLogitSoftcapping": null,
|
|
76
|
+
"tieWordEmbeddings": true,
|
|
77
|
+
"scaleEmbeddings": false,
|
|
78
|
+
"embeddingTranspose": false,
|
|
79
|
+
"embeddingVocabSize": null,
|
|
80
|
+
"embeddingPostprocessor": null,
|
|
81
|
+
"embeddingScale": null,
|
|
82
|
+
"logitInputScale": 1
|
|
83
|
+
},
|
|
84
|
+
"layerPattern": {
|
|
85
|
+
"type": "uniform",
|
|
86
|
+
"globalPattern": null,
|
|
87
|
+
"period": null,
|
|
88
|
+
"offset": null,
|
|
89
|
+
"layerTypes": null,
|
|
90
|
+
"residualBranchScale": 1
|
|
91
|
+
},
|
|
92
|
+
"chatTemplate": {
|
|
93
|
+
"type": "chatml",
|
|
94
|
+
"enabled": true
|
|
95
|
+
},
|
|
96
|
+
"rerank": {
|
|
97
|
+
"format": "qwen3_yes_no_logit",
|
|
98
|
+
"instruction": "Given a web search query, retrieve relevant passages that answer the query",
|
|
99
|
+
"inputTemplate": "<Instruct>: {instruction}\n<Query>: {query}\n<Document>: {document}",
|
|
100
|
+
"prefix": "<|im_start|>system\nJudge whether the Document meets the requirements based on the Query and the Instruct provided. Note that the answer can only be \"yes\" or \"no\".<|im_end|>\n<|im_start|>user\n",
|
|
101
|
+
"suffix": "<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",
|
|
102
|
+
"trueToken": "yes",
|
|
103
|
+
"trueTokenId": 9693,
|
|
104
|
+
"falseToken": "no",
|
|
105
|
+
"falseTokenId": 2152,
|
|
106
|
+
"score": "logit_difference",
|
|
107
|
+
"probability": "sigmoid"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"session": {
|
|
111
|
+
"compute": {
|
|
112
|
+
"defaults": {
|
|
113
|
+
"activationDtype": "f32",
|
|
114
|
+
"mathDtype": "f32",
|
|
115
|
+
"accumDtype": "f32",
|
|
116
|
+
"outputDtype": "f32"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"kvcache": {
|
|
120
|
+
"kvDtype": "f16",
|
|
121
|
+
"layout": "contiguous",
|
|
122
|
+
"maxSeqLen": 8192,
|
|
123
|
+
"pageSize": 256,
|
|
124
|
+
"tiering": {
|
|
125
|
+
"mode": "off",
|
|
126
|
+
"hotWindow": 1024,
|
|
127
|
+
"coldPageSize": 256,
|
|
128
|
+
"coldDtype": "f16",
|
|
129
|
+
"compression": {
|
|
130
|
+
"mode": "none",
|
|
131
|
+
"blockSize": 1,
|
|
132
|
+
"bitWidth": 4,
|
|
133
|
+
"prodMode": false
|
|
134
|
+
},
|
|
135
|
+
"gating": {
|
|
136
|
+
"mode": "auto",
|
|
137
|
+
"minAluBwRatio": 0
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"quantization": {
|
|
141
|
+
"mode": "none",
|
|
142
|
+
"bitWidth": 4,
|
|
143
|
+
"prodMode": false
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"decodeLoop": {
|
|
147
|
+
"batchSize": 4,
|
|
148
|
+
"stopCheckMode": "batch",
|
|
149
|
+
"readbackInterval": 1,
|
|
150
|
+
"readbackMode": "sequential",
|
|
151
|
+
"submitLatencyThresholdMs": null,
|
|
152
|
+
"ringTokens": 1,
|
|
153
|
+
"ringStop": 1,
|
|
154
|
+
"ringStaging": 1,
|
|
155
|
+
"disableCommandBatching": false
|
|
156
|
+
},
|
|
157
|
+
"perLayerInputs": {
|
|
158
|
+
"materialization": "auto",
|
|
159
|
+
"rowCache": {
|
|
160
|
+
"mode": "lru",
|
|
161
|
+
"maxRows": 256,
|
|
162
|
+
"maxBytes": 134217728,
|
|
163
|
+
"decodedDtype": "f32"
|
|
164
|
+
},
|
|
165
|
+
"prefetch": {
|
|
166
|
+
"mode": "next_token",
|
|
167
|
+
"rowsAhead": 1
|
|
168
|
+
},
|
|
169
|
+
"gpuUpload": {
|
|
170
|
+
"mode": "per_step_slices",
|
|
171
|
+
"stagingRows": 2
|
|
172
|
+
},
|
|
173
|
+
"hotCache": {
|
|
174
|
+
"mode": "prepared_tokens",
|
|
175
|
+
"maxTokens": 1024,
|
|
176
|
+
"maxBytes": 134217728,
|
|
177
|
+
"outputDtype": "f32"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"prefillChunkSubmitMode": "sync",
|
|
181
|
+
"useFlashPrefillAttention": false,
|
|
182
|
+
"useWideTileQ4KPrefill": false,
|
|
183
|
+
"retainQ4KMaterialization": false
|
|
184
|
+
},
|
|
185
|
+
"largeWeights": {
|
|
186
|
+
"gpuResidentOverrides": null
|
|
187
|
+
},
|
|
188
|
+
"execution": {
|
|
189
|
+
"inlineKernelPath": true,
|
|
190
|
+
"policies": {
|
|
191
|
+
"unsupportedPrecision": "error",
|
|
192
|
+
"dtypeTransition": "require_cast_step",
|
|
193
|
+
"unresolvedKernel": "error"
|
|
194
|
+
},
|
|
195
|
+
"kernels": {
|
|
196
|
+
"embed": {
|
|
197
|
+
"kernel": "gather_f16.wgsl",
|
|
198
|
+
"entry": "main",
|
|
199
|
+
"digest": "sha256:8995b4a790a1f3b89fbb801f89d595985eee46c9bfca4133f74396259083eda9"
|
|
200
|
+
},
|
|
201
|
+
"rmsnorm": {
|
|
202
|
+
"kernel": "rmsnorm.wgsl",
|
|
203
|
+
"entry": "main",
|
|
204
|
+
"digest": "sha256:284d3efb0ad0991fc57ece5f634cbc8a931fcab36f193b2b6832561d4cc79ef1"
|
|
205
|
+
},
|
|
206
|
+
"tiled": {
|
|
207
|
+
"kernel": "matmul_f16w_f32a.wgsl",
|
|
208
|
+
"entry": "main",
|
|
209
|
+
"digest": "sha256:027a8f1cd9713cbe0b0ada160bd175e0542bb90896ad85441b023522d9a1befc"
|
|
210
|
+
},
|
|
211
|
+
"lm_head_gemv": {
|
|
212
|
+
"kernel": "matmul_gemv_subgroup.wgsl",
|
|
213
|
+
"entry": "main_multicol",
|
|
214
|
+
"digest": "sha256:e41f94574d5ac54dd2710036da5d5acc643a483b79b2d74b86825efdaaa7438f",
|
|
215
|
+
"constants": {
|
|
216
|
+
"MULTICOL_COLS_PER_WG": 8,
|
|
217
|
+
"MULTICOL_THREADS_PER_COL": 32
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"rope": {
|
|
221
|
+
"kernel": "rope.wgsl",
|
|
222
|
+
"entry": "main",
|
|
223
|
+
"digest": "sha256:b2da9d396668981dab9794c2973b668279f768994466b083d2105730555e1a5b"
|
|
224
|
+
},
|
|
225
|
+
"attn_decode": {
|
|
226
|
+
"kernel": "attention_decode_online_f16kv.wgsl",
|
|
227
|
+
"entry": "main",
|
|
228
|
+
"digest": "sha256:91808be35895e921c0fa43fc47bfe8cab69c437c388ab561f595d9dc983f66e1",
|
|
229
|
+
"precision": {
|
|
230
|
+
"kvDtype": "f16"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"attn_stream": {
|
|
234
|
+
"kernel": "attention_streaming_f16kv.wgsl",
|
|
235
|
+
"entry": "main",
|
|
236
|
+
"digest": "sha256:c3ec920699a81ee6df04a64eb0ea2477bec168ebb809af29f2d4b0924a4bdf8f",
|
|
237
|
+
"precision": {
|
|
238
|
+
"kvDtype": "f16"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"residual": {
|
|
242
|
+
"kernel": "residual.wgsl",
|
|
243
|
+
"entry": "main",
|
|
244
|
+
"digest": "sha256:abd19bc08ad668a7cad562e2bc0a4be1aa8827ad4300d8d474b7fc2af4c27117"
|
|
245
|
+
},
|
|
246
|
+
"silu": {
|
|
247
|
+
"kernel": "silu.wgsl",
|
|
248
|
+
"entry": "main",
|
|
249
|
+
"digest": "sha256:7b52d30fb741beef2dbf728e0c4ecffe5b08d9661d63c306caecb4cb3ced85e5"
|
|
250
|
+
},
|
|
251
|
+
"sample": {
|
|
252
|
+
"kernel": "sample.wgsl",
|
|
253
|
+
"entry": "sample_single_pass",
|
|
254
|
+
"digest": "sha256:7ff3dd675b4737d920e0b3889e15c4fedde8410a353bbc6d4651db76ce69eb9b"
|
|
255
|
+
},
|
|
256
|
+
"gemv": {
|
|
257
|
+
"kernel": "matmul_gemv_subgroup.wgsl",
|
|
258
|
+
"entry": "main_vec4",
|
|
259
|
+
"digest": "sha256:2ea9aea659367210fbf61d922c0d4ee17cdac68ffb506b3bc5516e498071e011"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"preLayer": [
|
|
263
|
+
[
|
|
264
|
+
"embed",
|
|
265
|
+
"embed",
|
|
266
|
+
"embed_tokens"
|
|
267
|
+
]
|
|
268
|
+
],
|
|
269
|
+
"decode": [
|
|
270
|
+
[
|
|
271
|
+
"input_norm",
|
|
272
|
+
"rmsnorm"
|
|
273
|
+
],
|
|
274
|
+
[
|
|
275
|
+
"q_proj",
|
|
276
|
+
"gemv",
|
|
277
|
+
"layer.{L}.self_attn.q_proj"
|
|
278
|
+
],
|
|
279
|
+
[
|
|
280
|
+
"k_proj",
|
|
281
|
+
"gemv",
|
|
282
|
+
"layer.{L}.self_attn.k_proj"
|
|
283
|
+
],
|
|
284
|
+
[
|
|
285
|
+
"v_proj",
|
|
286
|
+
"gemv",
|
|
287
|
+
"layer.{L}.self_attn.v_proj"
|
|
288
|
+
],
|
|
289
|
+
[
|
|
290
|
+
"rope_q",
|
|
291
|
+
"rope"
|
|
292
|
+
],
|
|
293
|
+
[
|
|
294
|
+
"rope_k",
|
|
295
|
+
"rope"
|
|
296
|
+
],
|
|
297
|
+
[
|
|
298
|
+
"attention",
|
|
299
|
+
"attn_decode"
|
|
300
|
+
],
|
|
301
|
+
[
|
|
302
|
+
"o_proj",
|
|
303
|
+
"gemv",
|
|
304
|
+
"layer.{L}.self_attn.o_proj"
|
|
305
|
+
],
|
|
306
|
+
[
|
|
307
|
+
"attn_residual",
|
|
308
|
+
"residual"
|
|
309
|
+
],
|
|
310
|
+
[
|
|
311
|
+
"post_attn_norm",
|
|
312
|
+
"rmsnorm"
|
|
313
|
+
],
|
|
314
|
+
[
|
|
315
|
+
"gate_proj",
|
|
316
|
+
"gemv",
|
|
317
|
+
"layer.{L}.mlp.gate_proj"
|
|
318
|
+
],
|
|
319
|
+
[
|
|
320
|
+
"up_proj",
|
|
321
|
+
"gemv",
|
|
322
|
+
"layer.{L}.mlp.up_proj"
|
|
323
|
+
],
|
|
324
|
+
[
|
|
325
|
+
"activation",
|
|
326
|
+
"silu"
|
|
327
|
+
],
|
|
328
|
+
[
|
|
329
|
+
"down_proj",
|
|
330
|
+
"gemv",
|
|
331
|
+
"layer.{L}.mlp.down_proj"
|
|
332
|
+
],
|
|
333
|
+
[
|
|
334
|
+
"ffn_residual",
|
|
335
|
+
"residual"
|
|
336
|
+
]
|
|
337
|
+
],
|
|
338
|
+
"prefill": [
|
|
339
|
+
[
|
|
340
|
+
"input_norm",
|
|
341
|
+
"rmsnorm"
|
|
342
|
+
],
|
|
343
|
+
[
|
|
344
|
+
"q_proj",
|
|
345
|
+
"tiled",
|
|
346
|
+
"layer.{L}.self_attn.q_proj"
|
|
347
|
+
],
|
|
348
|
+
[
|
|
349
|
+
"k_proj",
|
|
350
|
+
"tiled",
|
|
351
|
+
"layer.{L}.self_attn.k_proj"
|
|
352
|
+
],
|
|
353
|
+
[
|
|
354
|
+
"v_proj",
|
|
355
|
+
"tiled",
|
|
356
|
+
"layer.{L}.self_attn.v_proj"
|
|
357
|
+
],
|
|
358
|
+
[
|
|
359
|
+
"rope_q",
|
|
360
|
+
"rope"
|
|
361
|
+
],
|
|
362
|
+
[
|
|
363
|
+
"rope_k",
|
|
364
|
+
"rope"
|
|
365
|
+
],
|
|
366
|
+
[
|
|
367
|
+
"attention",
|
|
368
|
+
"attn_stream"
|
|
369
|
+
],
|
|
370
|
+
[
|
|
371
|
+
"o_proj",
|
|
372
|
+
"tiled",
|
|
373
|
+
"layer.{L}.self_attn.o_proj"
|
|
374
|
+
],
|
|
375
|
+
[
|
|
376
|
+
"attn_residual",
|
|
377
|
+
"residual"
|
|
378
|
+
],
|
|
379
|
+
[
|
|
380
|
+
"post_attn_norm",
|
|
381
|
+
"rmsnorm"
|
|
382
|
+
],
|
|
383
|
+
[
|
|
384
|
+
"gate_proj",
|
|
385
|
+
"tiled",
|
|
386
|
+
"layer.{L}.mlp.gate_proj"
|
|
387
|
+
],
|
|
388
|
+
[
|
|
389
|
+
"up_proj",
|
|
390
|
+
"tiled",
|
|
391
|
+
"layer.{L}.mlp.up_proj"
|
|
392
|
+
],
|
|
393
|
+
[
|
|
394
|
+
"activation",
|
|
395
|
+
"silu"
|
|
396
|
+
],
|
|
397
|
+
[
|
|
398
|
+
"down_proj",
|
|
399
|
+
"tiled",
|
|
400
|
+
"layer.{L}.mlp.down_proj"
|
|
401
|
+
],
|
|
402
|
+
[
|
|
403
|
+
"ffn_residual",
|
|
404
|
+
"residual"
|
|
405
|
+
]
|
|
406
|
+
],
|
|
407
|
+
"postLayer": [
|
|
408
|
+
[
|
|
409
|
+
"final_norm",
|
|
410
|
+
"rmsnorm"
|
|
411
|
+
],
|
|
412
|
+
[
|
|
413
|
+
"lm_head",
|
|
414
|
+
"lm_head_gemv",
|
|
415
|
+
"lm_head"
|
|
416
|
+
],
|
|
417
|
+
[
|
|
418
|
+
"lm_head_prefill",
|
|
419
|
+
"tiled",
|
|
420
|
+
"lm_head"
|
|
421
|
+
],
|
|
422
|
+
[
|
|
423
|
+
"sample",
|
|
424
|
+
"sample"
|
|
425
|
+
]
|
|
426
|
+
],
|
|
427
|
+
"sampling": null
|
|
428
|
+
}
|
|
429
|
+
}
|