doppler-gpu 0.6.0 → 0.7.0
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 +100 -38
- package/README.md +47 -195
- package/models/catalog.json +108 -51
- package/package.json +99 -123
- package/src/capsule-runtime.d.ts +17 -8
- package/src/capsule-runtime.js +8 -3
- package/src/cli/cli-output.js +85 -9
- package/src/cli/doppler-cli.js +23 -21
- package/src/client/capsule-host.browser.js +7 -0
- package/src/client/capsule-host.d.ts +13 -0
- package/src/client/capsule-host.js +7 -0
- package/src/client/doppler-api.browser.js +1 -1
- package/src/client/doppler-api.d.ts +3 -0
- package/src/client/doppler-api.js +2 -1
- package/src/client/doppler-registry.js +6 -0
- package/src/client/inspection.d.ts +10 -1
- package/src/client/inspection.js +24 -12
- package/src/client/model-host/index.d.ts +3 -0
- package/src/client/model-host/index.js +73 -18
- package/src/client/model-host/model-session.d.ts +42 -17
- package/src/client/model-host/model-session.js +291 -150
- package/src/client/model-host/source-loading.js +910 -0
- package/src/client/provider.js +6 -6
- package/src/client/resident-partitions.d.ts +30 -0
- package/src/client/resident-partitions.js +114 -0
- package/src/client/runtime/capsule-acquisition.d.ts +17 -2
- package/src/client/runtime/capsule-artifact-source.js +23 -1
- package/src/client/runtime/capsule-operation-adapters.d.ts +3 -2
- package/src/client/runtime/capsule-operation-adapters.js +55 -18
- package/src/client/runtime/capsule-operation-deltas.js +44 -0
- package/src/client/runtime/capsule-operation-executor.d.ts +2 -2
- package/src/client/runtime/capsule-operation-executor.js +14 -7
- package/src/client/runtime/capsule-operation-stream.d.ts +10 -0
- package/src/client/runtime/capsule-operation-stream.js +81 -0
- package/src/client/runtime/capsule-piece-reader.js +88 -0
- package/src/client/runtime/capsule-program-adapter.js +51 -19
- package/src/client/runtime/capsule-session-execution.js +9 -5
- package/src/client/runtime/command-executor.d.ts +13 -0
- package/src/client/runtime/command-executor.js +54 -11
- package/src/client/runtime/composition-root.d.ts +41 -15
- package/src/client/runtime/composition-root.js +198 -61
- package/src/client/runtime/fetch-capsule-artifact-store.d.ts +3 -2
- package/src/client/runtime/fetch-capsule-artifact-store.js +56 -1
- package/src/client/runtime/lora.d.ts +22 -0
- package/src/client/runtime/lora.js +86 -26
- package/src/client/runtime/model-manager.js +10 -75
- package/src/client/runtime/model-source.d.ts +1 -0
- package/src/client/runtime/model-source.js +1 -1
- package/src/client/runtime/node-quickstart-cache.js +7 -2
- package/src/client/runtime/resource-binder.d.ts +1 -0
- package/src/client/runtime/resource-binder.js +20 -14
- package/src/client/runtime/scoped-session.d.ts +10 -0
- package/src/client/runtime/scoped-session.js +41 -3
- package/src/client/runtime/session-controller.d.ts +19 -16
- package/src/client/runtime/session-controller.js +128 -134
- package/src/client/runtime/verified-capsule-artifact-store.d.ts +27 -0
- package/src/client/runtime/verified-capsule-artifact-store.js +266 -40
- package/src/client/wrap-pipeline-handle.js +23 -17
- package/src/config/canonical-contract-codec.d.ts +10 -0
- package/src/config/canonical-contract-codec.js +144 -0
- package/src/config/canonical-generation-policy.d.ts +7 -0
- package/src/config/canonical-generation-policy.js +66 -0
- package/src/config/capsule-loading.d.ts +5 -1
- package/src/config/capsule-loading.js +1 -1
- package/src/config/capsule-loading.schema.json +63 -3
- package/src/config/capsule-operation.d.ts +10 -3
- package/src/config/capsule-operation.js +12 -2
- package/src/config/capsule-operations.json +27 -3
- package/src/config/capsule-release-contract.js +2 -29
- package/src/config/capsule-token-selection.d.ts +15 -0
- package/src/config/capsule-token-selection.js +39 -0
- package/src/config/capsule-token-selection.json +11 -0
- package/src/config/capsule-v2.d.ts +1 -0
- package/src/config/capsule-v2.js +14 -21
- package/src/config/choice-scoring-reference.js +66 -0
- package/src/config/choice-scoring.d.ts +21 -0
- package/src/config/choice-scoring.js +66 -0
- package/src/config/choice-scoring.json +8 -0
- package/src/config/conversion/amplify/amplify-120m-f16-af32.json +4 -4
- package/src/config/conversion/diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16.json +9 -9
- package/src/config/conversion/embeddinggemma/google-embeddinggemma-300m-q4k-ehf16-af32.json +4 -4
- package/src/config/conversion/esm/esm2-t12-35m-ur50d-f32-af32.json +42 -20
- package/src/config/conversion/esmc/esmc-300m-f32-af32.json +260 -55
- package/src/config/conversion/gemma3/gemma-3-1b-it-f16-af32.json +17 -11
- package/src/config/conversion/gemma3/gemma-3-1b-it-q4k-ehf16-af32.json +10 -9
- package/src/config/conversion/gemma3/gemma-3-270m-it-f16-af32.json +7 -7
- package/src/config/conversion/gemma3/gemma-3-270m-it-q4k-ehf16-af16.json +10 -10
- package/src/config/conversion/gemma3/gemma-3-270m-it-q4k-ehf16-af32.json +9 -8
- package/src/config/conversion/gemma3/gemma-3-270m-it-w8a8-ehf16-af32.json +491 -0
- package/src/config/conversion/gemma3/translategemma-4b-1b-enes-q4k-ehf16-af32.json +6 -6
- package/src/config/conversion/gemma3/translategemma-4b-it-q4k-ehf16-af32.json +10 -9
- package/src/config/conversion/gemma4/gemma-4-12b-it-text-q4k-ehf16-af16.json +26 -10
- package/src/config/conversion/gemma4/gemma-4-12b-it-text-q4k-ehf16-af32.json +26 -10
- package/src/config/conversion/gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16.json +29 -13
- package/src/config/conversion/gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16.json +22 -6
- package/src/config/conversion/gemma4/gemma-4-31b-it-text-q4k-ehf16-af16.json +28 -11
- package/src/config/conversion/gemma4/gemma-4-31b-it-text-q4k-ehf16-af32.json +28 -11
- package/src/config/conversion/gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple.json +28 -11
- package/src/config/conversion/gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple.json +26 -9
- package/src/config/conversion/gemma4/gemma-4-e2b-it-q4k-ehf16-af32.json +26 -9
- package/src/config/conversion/gemma4/gemma-4-moe-q4k-ehf16-af32.json +8 -7
- package/src/config/conversion/glmocr/glm-ocr-f16-af32.json +7 -7
- package/src/config/conversion/gpt-oss-20b-f16-xmxfp4.json +8 -7
- package/src/config/conversion/janus/janus-pro-1b-text-q4k-ehaf16.json +8 -7
- package/src/config/conversion/lfm2/lfm2.5-1.2b-instruct-q4k-ehf16-af32.json +20 -12
- package/src/config/conversion/minicpm/minicpm4-0-5b-f16-af32.json +7 -9
- package/src/config/conversion/muse-glimmer/muse-glimmer-30b-text-bf16-af32.json +7 -7
- package/src/config/conversion/muse-glimmer/muse-glimmer-30b-text-f16-af32.json +7 -7
- package/src/config/conversion/nucleotide-transformer/nucleotide-transformer-v2-50m-f32-af32.json +252 -53
- package/src/config/conversion/qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32.json +501 -0
- package/src/config/conversion/qwen3/qwen-3-5-0-8b-canonical-f32.json +461 -0
- package/src/config/conversion/qwen3/qwen-3-5-0-8b-q4k-ehaf16.json +11 -11
- package/src/config/conversion/qwen3/qwen-3-5-2b-q4k-ehaf16.json +11 -11
- package/src/config/conversion/qwen3/qwen-3-5-9b-f16-af32.json +7 -7
- package/src/config/conversion/qwen3/qwen-3-5-9b-q4k-ehaf16.json +11 -11
- package/src/config/conversion/qwen3/qwen-3-6-27b-q4k-eaf16.json +11 -11
- package/src/config/conversion/qwen3/qwen-3-6-27b-q4k-ehaf16.json +11 -11
- package/src/config/conversion/qwen3/qwen-3-6-35b-a3b-q4_0-passthrough.json +1218 -0
- package/src/config/conversion/qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32.json +581 -0
- package/src/config/conversion/qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32.json +1063 -0
- package/src/config/conversion/qwen3/qwen-3-embedding-0-6b-f16-af32.json +11 -11
- package/src/config/conversion/qwen3/qwen-3-embedding-0-6b-q4k-ehf16-af32.json +7 -7
- package/src/config/conversion/qwen3/qwen-3-reranker-0-6b-f16-af32.json +18 -10
- package/src/config/conversion/qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32.json +10 -10
- package/src/config/conversion/qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32.json +18 -18
- package/src/config/conversion/qwen3/qwen3.8-27b-q4_0-passthrough.json +823 -0
- package/src/config/conversion/qwen3/qwen3.8-27b-text-f16-af32.json +11 -11
- package/src/config/conversion/qwen3/qwen3.8-27b-text-q4k-ehaf16.json +11 -11
- package/src/config/embedding-contract.d.ts +17 -0
- package/src/config/embedding-contract.js +12 -0
- package/src/config/embedding-reference.js +32 -0
- package/src/config/execution-registry-contract.d.ts +41 -0
- package/src/config/execution-registry-contract.js +171 -0
- package/src/config/generation-contract.d.ts +66 -0
- package/src/config/generation-contract.js +66 -0
- package/src/config/generation-contract.json +151 -0
- package/src/config/initial-execution-identity.d.ts +1 -1
- package/src/config/initial-execution-identity.js +9 -9
- package/src/config/inspection/activity-stages.json +14 -0
- package/src/config/inspection/observation-policies.json +123 -0
- package/src/config/kernel-path-loader.d.ts +37 -0
- package/src/config/kernel-path-loader.js +87 -12
- package/src/config/kernel-registry-contract.d.ts +78 -13
- package/src/config/kernel-registry-contract.js +110 -38
- package/src/config/kernels/backward-registry.json +1 -1
- package/src/config/kernels/registry.js +3 -47
- package/src/config/kernels/registry.json +31642 -7719
- package/src/config/layer-partition-plan.d.ts +93 -0
- package/src/config/layer-partition-plan.js +305 -0
- package/src/config/manifest-inference-validation.js +10 -0
- package/src/config/merge/execution-patches.js +14 -0
- package/src/config/merge.d.ts +4 -0
- package/src/config/merge.js +50 -0
- package/src/config/model-ir-v2.d.ts +1 -0
- package/src/config/model-ir-v2.js +5 -16
- package/src/config/model-ir.js +9 -14
- package/src/config/ordered-resident-qualification.d.ts +16 -0
- package/src/config/ordered-resident-qualification.js +62 -0
- package/src/config/param-categories.js +4 -0
- package/src/config/param-validator.js +64 -29
- package/src/config/production-release-evidence.js +2 -27
- package/src/config/production-release.js +2 -29
- package/src/config/quickstart-registry.json +57 -8
- package/src/config/reasoning-output.d.ts +6 -0
- package/src/config/reasoning-output.js +26 -0
- package/src/config/revocation-policy.js +1 -4
- package/src/config/rope-frequencies.js +9 -0
- package/src/config/runtime/profiles/demo-f16-comparison.json +20 -0
- package/src/config/runtime/profiles/flash-next-node-host-cache-qualification.json +21 -0
- package/src/config/runtime/profiles/flash-next-paged-qualification.json +23 -0
- package/src/config/runtime/profiles/flash-next-routed-f32kv-qualification.json +72 -0
- package/src/config/runtime/profiles/flash-next-routed-qualification.json +27 -0
- package/src/config/runtime/profiles/qwen-3-5-0-8b-metal-parity.json +51 -2
- package/src/config/runtime/profiles/qwen-3-5-0-8b-vulkan-parity.json +88 -0
- package/src/config/runtime/profiles/qwen-3-5-0-8b-vulkan-subgroup8.json +173 -0
- package/src/config/runtime/profiles/qwen-3-5-0-8b-vulkan-throughput.json +33 -0
- package/src/config/runtime/profiles/qwen-3-5-2b-metal-throughput.json +51 -2
- package/src/config/runtime/profiles/qwen-3-5-2b-vulkan-parity.json +15 -0
- package/src/config/runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate.json +4491 -0
- package/src/config/runtime/profiles/qwen3-6-35b-a3b-q4_0-pooled-q8-common-diagnostic.json +4407 -0
- package/src/config/runtime/profiles/qwen3-6-35b-a3b-route-f32-candidate.json +17 -0
- package/src/config/runtime/profiles/qwen3-6-35b-a3b-route-f32-workspace-candidate.json +13 -0
- package/src/config/runtime.d.ts +6 -0
- package/src/config/runtime.js +51 -21
- package/src/config/schema/benchmark.schema.d.ts +1 -0
- package/src/config/schema/benchmark.schema.js +2 -0
- package/src/config/schema/conversion.schema.d.ts +5 -0
- package/src/config/schema/converter.schema.d.ts +10 -0
- package/src/config/schema/converter.schema.js +10 -0
- package/src/config/schema/debug.schema.d.ts +1 -0
- package/src/config/schema/doppler.schema.js +17 -9
- package/src/config/schema/emulation.schema.js +0 -77
- package/src/config/schema/execution-v1.schema.d.ts +32 -2
- package/src/config/schema/execution-v1.schema.js +8 -0
- package/src/config/schema/fp8.schema.d.ts +17 -0
- package/src/config/schema/fp8.schema.js +27 -0
- package/src/config/schema/hyper-connection-decoder.schema.d.ts +98 -0
- package/src/config/schema/hyper-connection-decoder.schema.js +213 -0
- package/src/config/schema/index.d.ts +2 -2
- package/src/config/schema/index.js +3 -0
- package/src/config/schema/inference.schema.d.ts +8 -2
- package/src/config/schema/kernel-registry.schema.d.ts +22 -7
- package/src/config/schema/kernel-registry.schema.js +13 -2
- package/src/config/schema/kernel-thresholds.schema.d.ts +3 -0
- package/src/config/schema/kernel-thresholds.schema.js +14 -3
- package/src/config/schema/kernel-warmup.schema.d.ts +15 -0
- package/src/config/schema/kernel-warmup.schema.js +3 -0
- package/src/config/schema/loading.schema.d.ts +41 -0
- package/src/config/schema/loading.schema.js +67 -0
- package/src/config/schema/manifest-rope.schema.d.ts +55 -0
- package/src/config/schema/manifest.schema.d.ts +47 -57
- package/src/config/schema/manifest.schema.js +41 -2
- package/src/config/schema/ngram-embedding.schema.d.ts +116 -0
- package/src/config/schema/ngram-embedding.schema.js +312 -0
- package/src/config/schema/program-bundle.schema.d.ts +1 -0
- package/src/config/schema/program-bundle.schema.js +8 -3
- package/src/config/schema/quantization-defaults.schema.d.ts +1 -1
- package/src/config/schema/quantization.schema.d.ts +2 -0
- package/src/config/schema/quantization.schema.js +2 -0
- package/src/config/schema/speculation-self.schema.d.ts +6 -1
- package/src/config/schema/speculation-self.schema.js +29 -2
- package/src/config/schema/w8a8.schema.d.ts +24 -0
- package/src/config/schema/w8a8.schema.js +38 -0
- package/src/config/source-packages/litert/gemma-4-e2b-it.json +7 -7
- package/src/config/supported-operations.json +105 -0
- package/src/config/target-plan.d.ts +16 -2
- package/src/config/target-plan.js +63 -16
- package/src/config/wgsl-language-contract.js +47 -0
- package/src/converter/artifact-identity.js +27 -47
- package/src/converter/capability-transform-resolver.js +80 -0
- package/src/converter/conversion-plan.js +14 -14
- package/src/converter/core.d.ts +2 -0
- package/src/converter/core.js +15 -16
- package/src/converter/execution-graph/fusion.js +343 -0
- package/src/converter/execution-graph/kv-storage.js +14 -0
- package/src/converter/execution-graph/validation.js +431 -0
- package/src/converter/execution-graph-transforms.js +927 -0
- package/src/converter/forge-candidate-evaluation.js +1 -1
- package/src/converter/forge-qualification.js +103 -31
- package/src/converter/forge-stages.js +113 -106
- package/src/converter/fp8-source.js +99 -0
- package/src/converter/linear-norm-gate.js +115 -0
- package/src/converter/manifest-builder.js +20 -6
- package/src/converter/parsers/gguf.js +21 -2
- package/src/converter/quantization-info.js +56 -5
- package/src/converter/quantizer.js +4 -145
- package/src/converter/qwen4-exp-source-defaults.json +35 -0
- package/src/converter/qwen4-exp-source.js +293 -0
- package/src/converter/resident-qualification.js +58 -0
- package/src/converter/retained-source-shards.js +97 -0
- package/src/converter/rope-config.js +1 -0
- package/src/converter/source-rotary-frequencies.d.ts +12 -0
- package/src/converter/source-rotary-frequencies.js +34 -0
- package/src/converter/source-tensor-rules.d.ts +25 -1
- package/src/converter/source-tensor-rules.js +31 -1
- package/src/converter/tensor-transform.js +60 -7
- package/src/converter/tokenizer-contract.js +1 -3
- package/src/converter/w8a8-quantizer.js +56 -0
- package/src/debug/activation-trace.d.ts +34 -0
- package/src/debug/activation-trace.js +89 -0
- package/src/debug/activity-trace.d.ts +52 -0
- package/src/debug/activity-trace.js +127 -0
- package/src/debug/capture-policy.d.ts +9 -1
- package/src/debug/capture-policy.js +52 -21
- package/src/debug/index.d.ts +3 -0
- package/src/debug/index.js +12 -6
- package/src/debug/log.d.ts +6 -0
- package/src/debug/log.js +26 -0
- package/src/debug/perf-guards.js +71 -0
- package/src/debug/pipeline-config.js +141 -0
- package/src/debug/stats.d.ts +1 -1
- package/src/debug/stats.js +7 -2
- package/src/debug/tensor.d.ts +15 -3
- package/src/debug/tensor.js +43 -27
- package/src/debug/trace.js +12 -0
- package/src/errors/doppler-error.js +6 -2
- package/src/experimental/audio/gemma4.js +19 -10
- package/src/experimental/bdpa/basis-decomposed-paged.d.ts +1 -1
- package/src/experimental/diffusion/pipeline.d.ts +1 -0
- package/src/experimental/distribution/shard-delivery/receipt.js +3 -73
- package/src/experimental/distribution/shard-delivery/retry.js +6 -112
- package/src/experimental/distribution/shard-delivery.js +19 -632
- package/src/experimental/energy/pipeline.d.ts +1 -0
- package/src/experimental/logits/cpu.js +2 -7
- package/src/experimental/training/artifacts.js +1 -4
- package/src/experimental/training/attention-forward.js +1 -1
- package/src/experimental/training/autograd.d.ts +21 -0
- package/src/experimental/training/autograd.js +44 -20
- package/src/experimental/training/checkpoint.js +1 -4
- package/src/experimental/training/clip.js +1 -1
- package/src/experimental/training/distillation/student-fixture/execution.js +9 -12
- package/src/experimental/training/distillation/student-fixture/model.js +9 -12
- package/src/experimental/training/distillation/student-fixture.js +9 -12
- package/src/experimental/training/lora/checkpoint.js +1 -1
- package/src/experimental/training/lora/execution.js +1 -1
- package/src/experimental/training/lora/plan.js +1 -1
- package/src/experimental/training/lora/recovery.js +1 -1
- package/src/experimental/training/lora-pipeline.js +9 -83
- package/src/experimental/training/lora-training-round.d.ts +39 -0
- package/src/experimental/training/lora-training-round.js +90 -0
- package/src/experimental/training/lora.js +2 -1
- package/src/experimental/training/loss-scaling.js +1 -1
- package/src/experimental/training/loss.js +3 -1
- package/src/experimental/training/native-qwen-lora.d.ts +25 -6
- package/src/experimental/training/native-qwen-lora.js +176 -21
- package/src/experimental/training/operator-command.js +1 -49
- package/src/experimental/training/parameter-groups.js +39 -0
- package/src/experimental/training/report-ranking.js +52 -0
- package/src/experimental/training/runner/lifecycle.js +4 -61
- package/src/experimental/training/runner.js +2 -5
- package/src/experimental/training/suite/execution.js +3 -5
- package/src/experimental/training/suite/plan.js +6 -21
- package/src/experimental/training/suite.js +5 -34
- package/src/experimental/training/trainer.js +2 -36
- package/src/experimental/training/workload-capsules/registry.json +473 -0
- package/src/experimental/turboquant/codebook.js +0 -29
- package/src/formats/contract-validation.js +30 -0
- package/src/formats/flatbuffer-tables.js +55 -0
- package/src/formats/float16.js +81 -0
- package/src/formats/float8.js +19 -0
- package/src/formats/gguf/block-storage.js +51 -0
- package/src/formats/gguf/quantized-formats.json +10 -0
- package/src/formats/gguf/qwen-source.js +88 -0
- package/src/formats/gguf/qwen-source.json +8 -0
- package/src/formats/gguf/tokenizer-pre.json +4 -0
- package/src/formats/gguf/tokenizer.js +50 -0
- package/src/formats/litert/types.js +8 -180
- package/src/formats/paged-source-reader.js +158 -0
- package/src/formats/q4k-dequant.js +95 -0
- package/src/formats/rdrr/classification.js +4 -0
- package/src/formats/rdrr/distributed/validation.js +1 -4
- package/src/formats/rdrr/fp8-contract.js +38 -0
- package/src/formats/rdrr/fp8-storage.js +83 -0
- package/src/formats/rdrr/functional-descriptor.js +1 -4
- package/src/formats/rdrr/parsing.js +1 -1
- package/src/formats/rdrr/q4_0-storage.js +24 -0
- package/src/formats/rdrr/storage-descriptor.js +7 -1
- package/src/formats/rdrr/types.d.ts +7 -1
- package/src/formats/rdrr/validation.js +37 -6
- package/src/formats/rdrr/w8a8-storage.js +64 -0
- package/src/formats/safetensors/types.js +4 -0
- package/src/formats/sha256.js +104 -103
- package/src/formats/sorted-json.js +9 -0
- package/src/formats/source-runtime.d.ts +52 -0
- package/src/formats/tflite/types.js +7 -161
- package/src/generation/index.d.ts +7 -1
- package/src/generation/index.js +7 -1
- package/src/gpu/buffer-identity.js +4 -0
- package/src/gpu/command-recorder.d.ts +66 -29
- package/src/gpu/command-recorder.js +157 -161
- package/src/gpu/device-bindings.js +98 -0
- package/src/gpu/device-state.js +0 -4
- package/src/gpu/device.d.ts +9 -0
- package/src/gpu/device.js +105 -137
- package/src/gpu/kernel-selector.js +73 -12
- package/src/gpu/kernels/attention/executors-components.js +235 -0
- package/src/gpu/kernels/attention/executors.js +296 -510
- package/src/gpu/kernels/attention/plan.js +65 -18
- package/src/gpu/kernels/attention/query-splitk.js +80 -0
- package/src/gpu/kernels/attention_decode_gqa_splitk.wgsl +197 -0
- package/src/gpu/kernels/attention_decode_online.wgsl +348 -0
- package/src/gpu/kernels/attention_decode_online_f16kv.wgsl +126 -22
- package/src/gpu/kernels/attention_decode_subgroup.wgsl +5 -6
- package/src/gpu/kernels/attention_head256_f16kv.wgsl +56 -9
- package/src/gpu/kernels/attention_indexed.wgsl +179 -0
- package/src/gpu/kernels/attention_indexed_f16kv.wgsl +180 -0
- package/src/gpu/kernels/attention_paired.wgsl +361 -0
- package/src/gpu/kernels/attention_paired_tiled.wgsl +383 -0
- package/src/gpu/kernels/attention_prefill_partitioned_head256_f16kv.wgsl +247 -0
- package/src/gpu/kernels/attention_prefill_query_splitk_f32.wgsl +234 -0
- package/src/gpu/kernels/attention_prefill_query_splitk_reduce_f32.wgsl +103 -0
- package/src/gpu/kernels/attention_prefill_query_tile_f16kv.wgsl +225 -0
- package/src/gpu/kernels/attention_prefill_query_tile_f32.wgsl +222 -0
- package/src/gpu/kernels/backward/adam.js +11 -3
- package/src/gpu/kernels/backward/gated_delta_recurrent_backward.js +51 -15
- package/src/gpu/kernels/backward/gated_delta_recurrent_backward.wgsl +9 -8
- package/src/gpu/kernels/backward/gated_delta_recurrent_checkpoint_forward.js +149 -0
- package/src/gpu/kernels/backward/gated_delta_recurrent_checkpoint_forward.wgsl +109 -0
- package/src/gpu/kernels/backward/gated_delta_recurrent_checkpointed_backward.js +120 -0
- package/src/gpu/kernels/backward/gelu_backward.js +8 -12
- package/src/gpu/kernels/backward/index.js +6 -0
- package/src/gpu/kernels/backward/qwen_attention_split_q_gate_backward.js +80 -0
- package/src/gpu/kernels/backward/qwen_attention_split_q_gate_backward.wgsl +26 -0
- package/src/gpu/kernels/backward/qwen_gqa_attention_backward.js +157 -0
- package/src/gpu/kernels/backward/qwen_gqa_attention_backward.wgsl +82 -0
- package/src/gpu/kernels/backward/qwen_gqa_softmax_backward_scores.wgsl +73 -0
- package/src/gpu/kernels/backward/qwen_gqa_softmax_recompute.wgsl +97 -0
- package/src/gpu/kernels/backward/qwen_linear_attention_prepare_backward.js +221 -0
- package/src/gpu/kernels/backward/qwen_linear_attention_prepare_backward.wgsl +136 -0
- package/src/gpu/kernels/backward/rmsnorm_backward.js +98 -80
- package/src/gpu/kernels/backward/rope_backward.js +47 -10
- package/src/gpu/kernels/backward/rope_backward.wgsl +46 -22
- package/src/gpu/kernels/backward/sigmoid_gated_backward.js +83 -0
- package/src/gpu/kernels/backward/sigmoid_gated_backward.wgsl +49 -0
- package/src/gpu/kernels/backward/silu_backward.js +8 -12
- package/src/gpu/kernels/backward/softmax_backward.js +8 -12
- package/src/gpu/kernels/cast_f32_to_two_f32.wgsl +12 -0
- package/src/gpu/kernels/cast_two_f32_to_f16.wgsl +49 -0
- package/src/gpu/kernels/causal_conv1d_silu.js +80 -0
- package/src/gpu/kernels/causal_conv1d_silu.wgsl +44 -0
- package/src/gpu/kernels/check-stop.js +1 -1
- package/src/gpu/kernels/check_finiteness_f32.wgsl +33 -0
- package/src/gpu/kernels/conv2d.js +30 -42
- package/src/gpu/kernels/dequant.js +1 -1
- package/src/gpu/kernels/dequant_mxfp4.wgsl +6 -4
- package/src/gpu/kernels/diffusion-gemma-sampling.js +26 -7
- package/src/gpu/kernels/diffusion_gemma_sampling.wgsl +66 -2
- package/src/gpu/kernels/dispatch.js +36 -1
- package/src/gpu/kernels/embedding-pool.js +15 -13
- package/src/gpu/kernels/feature-check.js +7 -2
- package/src/gpu/kernels/fp8.js +70 -0
- package/src/gpu/kernels/fused_ffn.js +83 -154
- package/src/gpu/kernels/fused_ffn_q4k.wgsl +43 -1
- package/src/gpu/kernels/fused_ffn_q4k_subgroup8.wgsl +228 -0
- package/src/gpu/kernels/fused_matmul_q4_batched_f16acc_f16a.wgsl +2 -2
- package/src/gpu/kernels/fused_matmul_q4_subgroup.wgsl +146 -0
- package/src/gpu/kernels/fused_matmul_q4_widetile.wgsl +14 -4
- package/src/gpu/kernels/fused_matmul_q4_widetile_direct.wgsl +204 -0
- package/src/gpu/kernels/fused_matmul_residual.js +19 -72
- package/src/gpu/kernels/fused_matmul_rmsnorm.js +34 -127
- package/src/gpu/kernels/gated-delta-norm-gate.js +45 -0
- package/src/gpu/kernels/gated_delta_conv.wgsl +57 -6
- package/src/gpu/kernels/gated_delta_conv_f16.wgsl +57 -6
- package/src/gpu/kernels/gated_delta_conv_paired.wgsl +282 -0
- package/src/gpu/kernels/gated_delta_conv_prefill.wgsl +144 -0
- package/src/gpu/kernels/gated_delta_fused_decode.wgsl +375 -40
- package/src/gpu/kernels/gated_delta_fused_decode_f16.wgsl +375 -40
- package/src/gpu/kernels/gated_delta_fused_decode_paired.wgsl +511 -0
- package/src/gpu/kernels/gated_delta_fused_decode_paired_f16.wgsl +513 -0
- package/src/gpu/kernels/gated_delta_fused_decode_paired_sigmoid_gate.wgsl +514 -0
- package/src/gpu/kernels/gated_delta_fused_decode_paired_sigmoid_gate_f16.wgsl +516 -0
- package/src/gpu/kernels/gated_delta_fused_decode_register.wgsl +750 -0
- package/src/gpu/kernels/gated_delta_fused_decode_sigmoid_gate.wgsl +511 -0
- package/src/gpu/kernels/gated_delta_fused_decode_sigmoid_gate_f16.wgsl +513 -0
- package/src/gpu/kernels/gated_delta_gate_paired.wgsl +271 -0
- package/src/gpu/kernels/gated_delta_gate_sigmoid_paired.wgsl +273 -0
- package/src/gpu/kernels/gated_delta_norm_paired.wgsl +288 -0
- package/src/gpu/kernels/gated_delta_prefill_norm_gate.wgsl +227 -0
- package/src/gpu/kernels/gated_delta_qk_paired.wgsl +297 -0
- package/src/gpu/kernels/gated_delta_qk_paired_parallel.wgsl +299 -0
- package/src/gpu/kernels/gated_delta_recurrent.wgsl +362 -32
- package/src/gpu/kernels/gated_delta_recurrent_f16.wgsl +362 -32
- package/src/gpu/kernels/gated_delta_recurrent_gguf.wgsl +496 -0
- package/src/gpu/kernels/gated_delta_recurrent_gguf_register_prefill.wgsl +727 -0
- package/src/gpu/kernels/gated_delta_recurrent_paired.wgsl +337 -0
- package/src/gpu/kernels/gated_delta_recurrent_register_prefill.wgsl +546 -0
- package/src/gpu/kernels/gated_delta_recurrent_sigmoid_gate.wgsl +498 -0
- package/src/gpu/kernels/gated_delta_recurrent_sigmoid_gate_f16.wgsl +500 -0
- package/src/gpu/kernels/gated_delta_state_paired.wgsl +310 -0
- package/src/gpu/kernels/gated_delta_state_paired_sliced.wgsl +348 -0
- package/src/gpu/kernels/gated_delta_state_paired_sliced_rolled.wgsl +353 -0
- package/src/gpu/kernels/gated_rmsnorm.js +74 -0
- package/src/gpu/kernels/gated_rmsnorm.wgsl +62 -0
- package/src/gpu/kernels/gather.js +81 -46
- package/src/gpu/kernels/gather.wgsl +3 -2
- package/src/gpu/kernels/gather_bf16.wgsl +3 -2
- package/src/gpu/kernels/gather_f16.wgsl +3 -2
- package/src/gpu/kernels/gather_f16_f16_out.wgsl +3 -2
- package/src/gpu/kernels/gather_f16_out.wgsl +3 -2
- package/src/gpu/kernels/gather_f16_vec4.wgsl +3 -2
- package/src/gpu/kernels/gather_f16_vec4_f16_out.wgsl +3 -2
- package/src/gpu/kernels/gather_litert_int4_vec4_f16_out.wgsl +3 -2
- package/src/gpu/kernels/gather_litert_int4_vec4_f32_out.wgsl +3 -2
- package/src/gpu/kernels/gather_q4_0.wgsl +57 -0
- package/src/gpu/kernels/gather_split4_f16_vec4_f16_out.wgsl +3 -2
- package/src/gpu/kernels/gather_split4_f16_vec4_f32_out.wgsl +104 -0
- package/src/gpu/kernels/gather_split8_f16_vec4_f16_out.wgsl +3 -2
- package/src/gpu/kernels/gather_split8_f16_vec4_f32_out.wgsl +3 -2
- package/src/gpu/kernels/gather_vec4.wgsl +3 -2
- package/src/gpu/kernels/gather_vec4_f16_out.wgsl +3 -2
- package/src/gpu/kernels/gelu.js +16 -13
- package/src/gpu/kernels/gelu.wgsl +16 -0
- package/src/gpu/kernels/gelu_f16.wgsl +16 -0
- package/src/gpu/kernels/gemma4-route-expert.js +2 -5
- package/src/gpu/kernels/generated/uniform-writers-0.js +600 -0
- package/src/gpu/kernels/generated/uniform-writers-1.js +602 -0
- package/src/gpu/kernels/generated/uniform-writers-2.js +516 -0
- package/src/gpu/kernels/generated/uniform-writers.js +557 -0
- package/src/gpu/kernels/hyper-connection.js +240 -0
- package/src/gpu/kernels/hyper_connection_activation.wgsl +110 -0
- package/src/gpu/kernels/hyper_connection_branch.wgsl +60 -0
- package/src/gpu/kernels/hyper_connection_inject.wgsl +49 -0
- package/src/gpu/kernels/hyper_connection_norm.wgsl +72 -0
- package/src/gpu/kernels/kernel-bindings.js +37 -0
- package/src/gpu/kernels/kernel-configs.d.ts +12 -2
- package/src/gpu/kernels/kernel-configs.js +40 -23
- package/src/gpu/kernels/kernel-execution.js +87 -26
- package/src/gpu/kernels/kernel-geometry.js +43 -0
- package/src/gpu/kernels/kernel-prewarm.js +18 -15
- package/src/gpu/kernels/kv-cache-write.js +4 -6
- package/src/gpu/kernels/layernorm.js +7 -45
- package/src/gpu/kernels/linear-attention-core.js +247 -119
- package/src/gpu/kernels/linear-attention-recovery.js +90 -0
- package/src/gpu/kernels/linear-norm-ab.js +80 -0
- package/src/gpu/kernels/linear_norm_ab_f32.wgsl +243 -0
- package/src/gpu/kernels/logit-finalize.js +9 -3
- package/src/gpu/kernels/logit-scatter.js +9 -3
- package/src/gpu/kernels/logit-suppress.js +24 -0
- package/src/gpu/kernels/logit_suppress.wgsl +19 -0
- package/src/gpu/kernels/matmul-dispatch.js +70 -146
- package/src/gpu/kernels/matmul-selection.js +75 -18
- package/src/gpu/kernels/matmul-workgroup-capacity.js +37 -0
- package/src/gpu/kernels/matmul.js +81 -108
- package/src/gpu/kernels/matmul_compensated_f32.wgsl +215 -0
- package/src/gpu/kernels/matmul_f16w_f32a_tiled.wgsl +59 -46
- package/src/gpu/kernels/matmul_f32.wgsl +23 -17
- package/src/gpu/kernels/matmul_f32_row_subgroup.wgsl +88 -0
- package/src/gpu/kernels/matmul_fp8.wgsl +60 -0
- package/src/gpu/kernels/matmul_gemv_compensated_f32.wgsl +211 -0
- package/src/gpu/kernels/matmul_gemv_f32.wgsl +63 -0
- package/src/gpu/kernels/matmul_gemv_f32_subgroup.wgsl +84 -0
- package/src/gpu/kernels/matmul_gguf_columns_hoisted_f32.wgsl +342 -0
- package/src/gpu/kernels/matmul_gguf_pair_columns_f32.wgsl +279 -0
- package/src/gpu/kernels/matmul_gguf_pair_f32.wgsl +197 -0
- package/src/gpu/kernels/matmul_paired.wgsl +315 -0
- package/src/gpu/kernels/matmul_paired_compensated.wgsl +334 -0
- package/src/gpu/kernels/matmul_q4_0.wgsl +234 -0
- package/src/gpu/kernels/matmul_q4_0_tile128.wgsl +477 -0
- package/src/gpu/kernels/matmul_q4_0_tile128_bounded.wgsl +483 -0
- package/src/gpu/kernels/matmul_q4_0_tile64.wgsl +282 -0
- package/src/gpu/kernels/matmul_q4_0_tile64_bounded.wgsl +288 -0
- package/src/gpu/kernels/matmul_q4_0_tile64x128.wgsl +364 -0
- package/src/gpu/kernels/matmul_q4_0_tile64x128_bounded.wgsl +370 -0
- package/src/gpu/kernels/matmul_q4_1_columns_f32.wgsl +132 -0
- package/src/gpu/kernels/matmul_q5k.wgsl +181 -0
- package/src/gpu/kernels/matmul_q5k_columns.wgsl +194 -0
- package/src/gpu/kernels/matmul_q5k_cooperative.wgsl +129 -0
- package/src/gpu/kernels/matmul_q5k_tile64.wgsl +309 -0
- package/src/gpu/kernels/matmul_w8a8.wgsl +55 -0
- package/src/gpu/kernels/matmul_w8a8_packed.wgsl +54 -0
- package/src/gpu/kernels/matmul_w8a8_packed_cooperative.wgsl +77 -0
- package/src/gpu/kernels/moe-grouped.js +132 -0
- package/src/gpu/kernels/moe-norm-router.js +91 -0
- package/src/gpu/kernels/moe-route.js +135 -0
- package/src/gpu/kernels/moe-shared-slot.js +219 -0
- package/src/gpu/kernels/moe_grouped_matmul_f32.wgsl +216 -0
- package/src/gpu/kernels/moe_grouped_matmul_ordered_f32.wgsl +158 -0
- package/src/gpu/kernels/moe_grouped_sort.wgsl +101 -0
- package/src/gpu/kernels/moe_norm_router_f32.wgsl +254 -0
- package/src/gpu/kernels/moe_route_gguf_split_f32.wgsl +117 -0
- package/src/gpu/kernels/moe_route_q4_0_f32.wgsl +81 -0
- package/src/gpu/kernels/moe_route_q4_f32.wgsl +250 -0
- package/src/gpu/kernels/moe_shared_slot_combine_f32.wgsl +91 -0
- package/src/gpu/kernels/moe_shared_slot_down_f32.wgsl +264 -0
- package/src/gpu/kernels/moe_shared_slot_down_pair_combine_f32.wgsl +254 -0
- package/src/gpu/kernels/moe_shared_slot_down_pair_combine_residual_f32.wgsl +262 -0
- package/src/gpu/kernels/moe_shared_slot_down_pair_f32.wgsl +187 -0
- package/src/gpu/kernels/moe_shared_slot_gu_f32.wgsl +264 -0
- package/src/gpu/kernels/moe_shared_slot_gu_pair_f32.wgsl +267 -0
- package/src/gpu/kernels/paired-activation.js +86 -0
- package/src/gpu/kernels/paired-attention.js +85 -0
- package/src/gpu/kernels/paired-cast.js +82 -0
- package/src/gpu/kernels/paired-linear-attention.js +180 -0
- package/src/gpu/kernels/paired-matmul.js +86 -0
- package/src/gpu/kernels/paired-rmsnorm.js +127 -0
- package/src/gpu/kernels/paired-rope.js +44 -0
- package/src/gpu/kernels/paired-split.js +74 -0
- package/src/gpu/kernels/paired_add.wgsl +261 -0
- package/src/gpu/kernels/paired_multiply.wgsl +261 -0
- package/src/gpu/kernels/paired_scale.wgsl +260 -0
- package/src/gpu/kernels/paired_scale_inplace.wgsl +259 -0
- package/src/gpu/kernels/paired_sigmoid.wgsl +266 -0
- package/src/gpu/kernels/paired_silu.wgsl +266 -0
- package/src/gpu/kernels/paired_silu_unary.wgsl +260 -0
- package/src/gpu/kernels/pipeline-cache.d.ts +37 -4
- package/src/gpu/kernels/pipeline-cache.js +185 -88
- package/src/gpu/kernels/ple.js +145 -0
- package/src/gpu/kernels/ple_conv.wgsl +104 -0
- package/src/gpu/kernels/ple_gate.wgsl +131 -0
- package/src/gpu/kernels/q4_0.js +200 -0
- package/src/gpu/kernels/qsa-indexer.d.ts +105 -0
- package/src/gpu/kernels/qsa-indexer.js +304 -0
- package/src/gpu/kernels/qsa_block_keys.wgsl +110 -0
- package/src/gpu/kernels/qsa_block_scores.wgsl +73 -0
- package/src/gpu/kernels/qsa_prepare.wgsl +116 -0
- package/src/gpu/kernels/qsa_select.wgsl +172 -0
- package/src/gpu/kernels/quantize_w8a8.wgsl +81 -0
- package/src/gpu/kernels/qwen_attention_split_q_gate.js +71 -0
- package/src/gpu/kernels/qwen_attention_split_q_gate.wgsl +26 -0
- package/src/gpu/kernels/qwen_linear_attention_decay_paired.wgsl +266 -0
- package/src/gpu/kernels/qwen_linear_attention_log_decay_paired.wgsl +273 -0
- package/src/gpu/kernels/qwen_linear_attention_prepare.js +153 -0
- package/src/gpu/kernels/qwen_linear_attention_prepare.wgsl +120 -0
- package/src/gpu/kernels/qwen_linear_attention_prepare_paired.wgsl +267 -0
- package/src/gpu/kernels/qwen_linear_attention_scale_paired.wgsl +276 -0
- package/src/gpu/kernels/relu.js +5 -12
- package/src/gpu/kernels/rep-penalty.js +30 -5
- package/src/gpu/kernels/rep_penalty.wgsl +25 -30
- package/src/gpu/kernels/rep_penalty_f16.wgsl +24 -25
- package/src/gpu/kernels/repeat_channels.js +22 -9
- package/src/gpu/kernels/repeat_channels.wgsl +12 -5
- package/src/gpu/kernels/repeat_channels_f16.wgsl +12 -5
- package/src/gpu/kernels/rescale_w8a8.wgsl +74 -0
- package/src/gpu/kernels/residual.js +5 -0
- package/src/gpu/kernels/rmsnorm-pair.js +2 -2
- package/src/gpu/kernels/rmsnorm-qk.js +27 -5
- package/src/gpu/kernels/rmsnorm-stats.js +62 -78
- package/src/gpu/kernels/rmsnorm.js +74 -96
- package/src/gpu/kernels/rmsnorm.wgsl +9 -3
- package/src/gpu/kernels/rmsnorm_f16.wgsl +2 -0
- package/src/gpu/kernels/rmsnorm_paired.wgsl +321 -0
- package/src/gpu/kernels/rmsnorm_paired_sliced.wgsl +326 -0
- package/src/gpu/kernels/rmsnorm_qk.wgsl +32 -8
- package/src/gpu/kernels/rmsnorm_stats_subgroups.wgsl +7 -7
- package/src/gpu/kernels/rope-dispatch.js +26 -0
- package/src/gpu/kernels/rope-precompute.js +29 -28
- package/src/gpu/kernels/rope-qk.js +35 -24
- package/src/gpu/kernels/rope.js +5 -2
- package/src/gpu/kernels/rope.wgsl +2 -2
- package/src/gpu/kernels/rope_precompute.wgsl +150 -6
- package/src/gpu/kernels/rope_precompute_paired.wgsl +285 -0
- package/src/gpu/kernels/rope_qk.wgsl +3 -2
- package/src/gpu/kernels/rope_qk_paired.wgsl +341 -0
- package/src/gpu/kernels/sample.js +135 -249
- package/src/gpu/kernels/sample.wgsl +138 -168
- package/src/gpu/kernels/sample_f16.wgsl +192 -171
- package/src/gpu/kernels/scale.js +6 -1
- package/src/gpu/kernels/scatter_add_routes_f32.wgsl +43 -0
- package/src/gpu/kernels/shader-cache.d.ts +7 -1
- package/src/gpu/kernels/shader-cache.js +61 -20
- package/src/gpu/kernels/shader-source-scope.d.ts +14 -0
- package/src/gpu/kernels/shader-source-scope.js +127 -12
- package/src/gpu/kernels/sigmoid-gated-add.js +68 -0
- package/src/gpu/kernels/sigmoid_gated_add_f32.wgsl +76 -0
- package/src/gpu/kernels/silu.js +56 -136
- package/src/gpu/kernels/silu.wgsl +54 -3
- package/src/gpu/kernels/silu_f16.wgsl +3 -2
- package/src/gpu/kernels/softmax.js +57 -19
- package/src/gpu/kernels/softmax_topk_logit_rank.wgsl +137 -0
- package/src/gpu/kernels/softmax_topk_ranked.wgsl +132 -0
- package/src/gpu/kernels/softmax_topk_strided.wgsl +80 -0
- package/src/gpu/kernels/speculative-accept.js +97 -0
- package/src/gpu/kernels/speculative_accept.wgsl +38 -0
- package/src/gpu/kernels/speculative_accept_gpu_limit.wgsl +42 -0
- package/src/gpu/kernels/split-dispatch.js +18 -0
- package/src/gpu/kernels/split-qkv-rmsnorm-qk.js +3 -6
- package/src/gpu/kernels/split-qkv-rmsnorm-rope-qk.js +4 -11
- package/src/gpu/kernels/split_qg.js +6 -2
- package/src/gpu/kernels/split_qg.wgsl +3 -2
- package/src/gpu/kernels/split_qg_f16.wgsl +3 -2
- package/src/gpu/kernels/split_qg_paired.wgsl +59 -0
- package/src/gpu/kernels/split_qkv.js +7 -16
- package/src/gpu/kernels/split_qkv_paired.wgsl +75 -0
- package/src/gpu/kernels/subgroup-partition.js +11 -0
- package/src/gpu/kernels/uniform-encoding.js +20 -0
- package/src/gpu/kernels/uniform-utils.js +44 -49
- package/src/gpu/kernels/vision-average-pool.js +2 -5
- package/src/gpu/kernels/vision-patch-embed.js +2 -5
- package/src/gpu/kernels/vision-position-embedding.js +2 -5
- package/src/gpu/kernels/vision-rope-2d.js +2 -5
- package/src/gpu/kernels/vision-spatial-merge.js +2 -5
- package/src/gpu/kernels/w8a8.js +166 -0
- package/src/gpu/prepared-decode-workspace.d.ts +11 -0
- package/src/gpu/prepared-decode-workspace.js +104 -0
- package/src/gpu/recorder-timestamps.js +63 -0
- package/src/gpu/step-contract.d.ts +27 -0
- package/src/gpu/step-contract.js +26 -0
- package/src/gpu/submit-tracker.js +1 -17
- package/src/gpu/tensor.d.ts +13 -4
- package/src/gpu/tensor.js +38 -19
- package/src/gpu/uniform-cache.d.ts +8 -4
- package/src/gpu/uniform-cache.js +41 -25
- package/src/gpu/weight-buffer.d.ts +10 -1
- package/src/gpu/weight-buffer.js +2 -1
- package/src/index.d.ts +3 -0
- package/src/index.js +2 -0
- package/src/inference/choice-scoring.js +70 -0
- package/src/inference/decode-buffers.d.ts +11 -3
- package/src/inference/decode-buffers.js +93 -63
- package/src/inference/generation-output.js +128 -0
- package/src/inference/generation-step.d.ts +14 -0
- package/src/inference/generation-step.js +26 -0
- package/src/inference/kv-cache/base.d.ts +7 -2
- package/src/inference/kv-cache/base.js +10 -8
- package/src/inference/kv-cache/copy-state.js +39 -0
- package/src/inference/kv-cache/layer-range.js +76 -0
- package/src/inference/kv-cache/mixed-geometry.d.ts +3 -2
- package/src/inference/kv-cache/mixed-geometry.js +25 -1
- package/src/inference/kv-cache/quantized.d.ts +1 -1
- package/src/inference/kv-cache/quantized.js +1 -1
- package/src/inference/kv-cache/sliding-window.d.ts +2 -2
- package/src/inference/kv-cache/sliding-window.js +58 -183
- package/src/inference/kv-cache/tiered.d.ts +1 -1
- package/src/inference/kv-cache/tiered.js +1 -1
- package/src/inference/kv-cache/types.js +2 -28
- package/src/inference/kv-cache/update.js +104 -157
- package/src/inference/moe-router.d.ts +5 -0
- package/src/inference/moe-router.js +42 -31
- package/src/inference/pipelines/audio/index.js +5 -2
- package/src/inference/pipelines/audio/mel.js +116 -81
- package/src/inference/pipelines/context.js +110 -76
- package/src/inference/pipelines/factory.js +27 -5
- package/src/inference/pipelines/registry.js +9 -3
- package/src/inference/pipelines/shader-scoped-pipeline.d.ts +24 -0
- package/src/inference/pipelines/shader-scoped-pipeline.js +243 -11
- package/src/inference/pipelines/shared/clipped-linear.js +1 -1
- package/src/inference/pipelines/structured/json-grammar-mask.d.ts +2 -0
- package/src/inference/pipelines/structured/json-grammar-mask.js +115 -118
- package/src/inference/pipelines/structured/json-head-pipeline.js +1 -1
- package/src/inference/pipelines/text/activity-weights.js +110 -0
- package/src/inference/pipelines/text/attention/cache-cast.js +15 -0
- package/src/inference/pipelines/text/attention/dispatch-params.js +2 -1
- package/src/inference/pipelines/text/attention/interpreter/immediate.js +16 -19
- package/src/inference/pipelines/text/attention/interpreter/recorded.js +20 -21
- package/src/inference/pipelines/text/attention/interpreter.js +34 -38
- package/src/inference/pipelines/text/attention/paired-contract.js +29 -0
- package/src/inference/pipelines/text/attention/plan.d.ts +2 -0
- package/src/inference/pipelines/text/attention/plan.js +11 -4
- package/src/inference/pipelines/text/attention/projection-executor.js +10 -27
- package/src/inference/pipelines/text/attention/projection-plan.js +24 -31
- package/src/inference/pipelines/text/attention/projections.js +10 -27
- package/src/inference/pipelines/text/attention/query-transform.js +2 -2
- package/src/inference/pipelines/text/attention/recorded-health.js +2 -1
- package/src/inference/pipelines/text/attention/rope-observation.js +26 -3
- package/src/inference/pipelines/text/chat-format.js +2 -1
- package/src/inference/pipelines/text/config/normalization.js +115 -226
- package/src/inference/pipelines/text/config/vision-normalizers.js +240 -0
- package/src/inference/pipelines/text/config-components.js +49 -0
- package/src/inference/pipelines/text/config.d.ts +45 -1
- package/src/inference/pipelines/text/config.js +26 -38
- package/src/inference/pipelines/text/debug-utils/config.js +13 -156
- package/src/inference/pipelines/text/debug-utils/health-metrics.js +8 -23
- package/src/inference/pipelines/text/debug-utils/readback-decoding.js +5 -1
- package/src/inference/pipelines/text/embed.js +38 -4
- package/src/inference/pipelines/text/embedding-batch.js +23 -0
- package/src/inference/pipelines/text/embedding-extraction.js +7 -2
- package/src/inference/pipelines/text/embedding-normalization.js +2 -1
- package/src/inference/pipelines/text/execution-plan.d.ts +16 -0
- package/src/inference/pipelines/text/execution-plan.js +49 -2
- package/src/inference/pipelines/text/execution-runtime-builders.js +31 -0
- package/src/inference/pipelines/text/execution-v1/validation.js +3 -3
- package/src/inference/pipelines/text/execution-v1.js +14 -14
- package/src/inference/pipelines/text/execution.js +78 -128
- package/src/inference/pipelines/text/ffn/activation-observation.js +45 -0
- package/src/inference/pipelines/text/ffn/decode-intermediate.js +10 -0
- package/src/inference/pipelines/text/ffn/dense-executor.js +60 -50
- package/src/inference/pipelines/text/ffn/dense-plan.js +28 -27
- package/src/inference/pipelines/text/ffn/dense.js +30 -50
- package/src/inference/pipelines/text/ffn/moe.js +67 -3
- package/src/inference/pipelines/text/ffn/paired.js +144 -0
- package/src/inference/pipelines/text/ffn/qwen-shared-expert.js +212 -0
- package/src/inference/pipelines/text/ffn/sandwich.js +8 -3
- package/src/inference/pipelines/text/ffn/standard.js +67 -16
- package/src/inference/pipelines/text/finiteness-guard-status.js +9 -0
- package/src/inference/pipelines/text/generation-request.d.ts +36 -0
- package/src/inference/pipelines/text/generation-request.js +73 -0
- package/src/inference/pipelines/text/generator/activation-storage.js +15 -0
- package/src/inference/pipelines/text/generator/batch-retry-policy.js +20 -0
- package/src/inference/pipelines/text/generator/capsule-generation.js +37 -0
- package/src/inference/pipelines/text/generator/compiled-greedy-window.js +154 -0
- package/src/inference/pipelines/text/generator/decode-components.js +24 -0
- package/src/inference/pipelines/text/generator/decode-readback.js +73 -0
- package/src/inference/pipelines/text/generator/decode-runtime.js +401 -403
- package/src/inference/pipelines/text/generator/decode.js +594 -626
- package/src/inference/pipelines/text/generator/diagnostic-sequence.d.ts +63 -0
- package/src/inference/pipelines/text/generator/diagnostic-sequence.js +106 -0
- package/src/inference/pipelines/text/generator/diffusion.js +24 -12
- package/src/inference/pipelines/text/generator/greedy-head-policy.js +15 -0
- package/src/inference/pipelines/text/generator/logits-config.js +11 -4
- package/src/inference/pipelines/text/generator/per-layer-buffer.js +21 -0
- package/src/inference/pipelines/text/generator/prefill-observation.js +25 -1
- package/src/inference/pipelines/text/generator/prefill-policy.js +30 -18
- package/src/inference/pipelines/text/generator/prefill-runtime.js +511 -511
- package/src/inference/pipelines/text/generator/recorded-step-executor.js +70 -0
- package/src/inference/pipelines/text/generator/recorder-stats.js +17 -0
- package/src/inference/pipelines/text/generator/recovery.js +6 -0
- package/src/inference/pipelines/text/generator/session-context.js +19 -7
- package/src/inference/pipelines/text/generator/speculative-runtime.js +82 -0
- package/src/inference/pipelines/text/generator/text.js +17 -149
- package/src/inference/pipelines/text/generator/token-selection.d.ts +7 -0
- package/src/inference/pipelines/text/generator/token-selection.js +59 -0
- package/src/inference/pipelines/text/generator/training.js +42 -60
- package/src/inference/pipelines/text/generator/whole-token-lane.js +371 -0
- package/src/inference/pipelines/text/generator/whole-token-observation.d.ts +72 -0
- package/src/inference/pipelines/text/generator/whole-token-observation.js +502 -0
- package/src/inference/pipelines/text/generator/whole-token-program.d.ts +93 -0
- package/src/inference/pipelines/text/generator/whole-token-program.js +731 -0
- package/src/inference/pipelines/text/generator/whole-token-template.js +437 -0
- package/src/inference/pipelines/text/generator-logits-observation.js +5 -2
- package/src/inference/pipelines/text/generator-runtime.d.ts +107 -0
- package/src/inference/pipelines/text/generator-runtime.js +38 -79
- package/src/inference/pipelines/text/generator-steps.js +62 -55
- package/src/inference/pipelines/text/generator.d.ts +10 -1
- package/src/inference/pipelines/text/generator.js +111 -175
- package/src/inference/pipelines/text/hyper-connection/decoder-layer.d.ts +75 -0
- package/src/inference/pipelines/text/hyper-connection/decoder-layer.js +132 -0
- package/src/inference/pipelines/text/hyper-connection/layer-executor.js +104 -0
- package/src/inference/pipelines/text/hyper-connection/logits-input.js +20 -0
- package/src/inference/pipelines/text/hyper-connection/projection.js +21 -0
- package/src/inference/pipelines/text/hyper-connection/sequence-transaction.js +145 -0
- package/src/inference/pipelines/text/hyper-connection/session.d.ts +39 -0
- package/src/inference/pipelines/text/hyper-connection/session.js +236 -0
- package/src/inference/pipelines/text/image-transcription.js +2 -3
- package/src/inference/pipelines/text/indexed-attention/attention-runner.js +49 -0
- package/src/inference/pipelines/text/indexed-attention/qsa-cache.d.ts +54 -0
- package/src/inference/pipelines/text/indexed-attention/qsa-cache.js +256 -0
- package/src/inference/pipelines/text/init-qkv-fusion.js +121 -104
- package/src/inference/pipelines/text/init-rope.d.ts +26 -0
- package/src/inference/pipelines/text/init-rope.js +109 -14
- package/src/inference/pipelines/text/init-tokenizer.js +29 -0
- package/src/inference/pipelines/text/init.d.ts +28 -10
- package/src/inference/pipelines/text/init.js +65 -74
- package/src/inference/pipelines/text/kernel-trace.js +33 -11
- package/src/inference/pipelines/text/layer-execution-contract.js +1 -1
- package/src/inference/pipelines/text/layer-input-execution.js +10 -9
- package/src/inference/pipelines/text/layer-partition-contract.d.ts +47 -0
- package/src/inference/pipelines/text/layer-partition-contract.js +220 -0
- package/src/inference/pipelines/text/layer-plan-gpu.js +153 -80
- package/src/inference/pipelines/text/layer-plan.js +9 -2
- package/src/inference/pipelines/text/layer.js +34 -47
- package/src/inference/pipelines/text/lifecycle.js +79 -178
- package/src/inference/pipelines/text/linear-attention/activity.js +29 -0
- package/src/inference/pipelines/text/linear-attention/norm-ab.js +59 -0
- package/src/inference/pipelines/text/linear-attention/plan.js +35 -34
- package/src/inference/pipelines/text/linear-attention/state-checkpoint.js +83 -0
- package/src/inference/pipelines/text/linear-attention/state-clone.js +109 -0
- package/src/inference/pipelines/text/linear-attention/state-layout.js +45 -0
- package/src/inference/pipelines/text/linear-attention-ab-fusion.js +48 -45
- package/src/inference/pipelines/text/linear-attention.d.ts +20 -0
- package/src/inference/pipelines/text/linear-attention.js +150 -131
- package/src/inference/pipelines/text/load-errors.js +2 -19
- package/src/inference/pipelines/text/load-policy.js +55 -0
- package/src/inference/pipelines/text/logits/gpu-executor.js +130 -103
- package/src/inference/pipelines/text/logits/gpu.js +93 -70
- package/src/inference/pipelines/text/logits/index.d.ts +14 -2
- package/src/inference/pipelines/text/logits/index.js +420 -352
- package/src/inference/pipelines/text/logits/output-transform.js +37 -25
- package/src/inference/pipelines/text/logits/precision-policy.js +1 -1
- package/src/inference/pipelines/text/logits/types.d.ts +8 -1
- package/src/inference/pipelines/text/lora-apply.js +1 -1
- package/src/inference/pipelines/text/model-load.js +71 -117
- package/src/inference/pipelines/text/moe/gpu-executor.js +39 -17
- package/src/inference/pipelines/text/moe/grouped-prefill.js +67 -0
- package/src/inference/pipelines/text/moe/qwen-route-executor.d.ts +41 -0
- package/src/inference/pipelines/text/moe/qwen-route-executor.js +125 -0
- package/src/inference/pipelines/text/moe/routed-expert-chunks.js +95 -0
- package/src/inference/pipelines/text/moe-gpu.js +132 -50
- package/src/inference/pipelines/text/moe-impl.d.ts +23 -3
- package/src/inference/pipelines/text/moe-shape-validator.js +12 -0
- package/src/inference/pipelines/text/ngram/ngram-addresses.d.ts +30 -0
- package/src/inference/pipelines/text/ngram/ngram-addresses.js +134 -0
- package/src/inference/pipelines/text/ngram/ngram-table.d.ts +89 -0
- package/src/inference/pipelines/text/ngram/ngram-table.js +233 -0
- package/src/inference/pipelines/text/ngram/ple-layer.d.ts +54 -0
- package/src/inference/pipelines/text/ngram/ple-layer.js +115 -0
- package/src/inference/pipelines/text/operator-events.d.ts +129 -0
- package/src/inference/pipelines/text/operator-events.js +19 -2
- package/src/inference/pipelines/text/ops.js +40 -30
- package/src/inference/pipelines/text/paired-execution.js +140 -0
- package/src/inference/pipelines/text/partition-attempt.js +105 -0
- package/src/inference/pipelines/text/partition-execution.js +347 -0
- package/src/inference/pipelines/text/per-layer/materialize.js +3 -10
- package/src/inference/pipelines/text/per-layer/plan.js +3 -10
- package/src/inference/pipelines/text/per-layer-inputs.js +3 -10
- package/src/inference/pipelines/text/pipeline-load-timing.js +2 -1
- package/src/inference/pipelines/text/pipeline.d.ts +227 -0
- package/src/inference/pipelines/text/pipeline.js +629 -0
- package/src/inference/pipelines/text/precomputed-input-norm.js +29 -0
- package/src/inference/pipelines/text/probes.js +65 -23
- package/src/inference/pipelines/text/resident-partition-contract.d.ts +179 -0
- package/src/inference/pipelines/text/resident-partition-contract.js +98 -0
- package/src/inference/pipelines/text/resident-partition.js +403 -0
- package/src/inference/pipelines/text/resident-pipeline-preparation.js +341 -0
- package/src/inference/pipelines/text/sampling-config.d.ts +16 -0
- package/src/inference/pipelines/text/sampling-config.js +25 -113
- package/src/inference/pipelines/text/sampling.d.ts +9 -1
- package/src/inference/pipelines/text/sampling.js +18 -375
- package/src/inference/pipelines/text/sequence-state.d.ts +68 -0
- package/src/inference/pipelines/text/sequence-state.js +514 -0
- package/src/inference/pipelines/text/stage-names.d.ts +88 -0
- package/src/inference/pipelines/text/state.d.ts +17 -8
- package/src/inference/pipelines/text/state.js +10 -0
- package/src/inference/pipelines/text/stopping.js +17 -0
- package/src/inference/pipelines/text/tsir-fixture-writer.d.ts +77 -0
- package/src/inference/pipelines/text/tsir-fixture-writer.js +3 -12
- package/src/inference/pipelines/text/types.d.ts +68 -114
- package/src/inference/pipelines/text/warm-generation.d.ts +27 -0
- package/src/inference/pipelines/text/warm-generation.js +34 -0
- package/src/inference/pipelines/text/weight-loading-config.js +16 -10
- package/src/inference/pipelines/text/weights.d.ts +103 -1
- package/src/inference/pipelines/text/weights.js +0 -17
- package/src/inference/pipelines/text.d.ts +3 -211
- package/src/inference/pipelines/text.js +16 -578
- package/src/inference/pipelines/video/feature-concat.js +30 -0
- package/src/inference/pipelines/video/frame-sampler.js +4 -0
- package/src/inference/pipelines/video/index.js +33 -44
- package/src/inference/pipelines/vision/encoder.js +1 -1
- package/src/inference/pipelines/vision/gemma4.js +6 -7
- package/src/inference/pipelines/vision/glmocr.js +11 -13
- package/src/inference/pipelines/vision/index.js +14 -3
- package/src/inference/pipelines/vision/support.js +93 -0
- package/src/inference/pipelines/vision/weight-loading.js +111 -0
- package/src/inference/rerank.d.ts +44 -0
- package/src/inference/resident-block-contract.d.ts +35 -0
- package/src/inference/resident-block-contract.js +105 -0
- package/src/inference/resident-output-state.d.ts +14 -0
- package/src/inference/resident-output-state.js +89 -0
- package/src/inference/resident-publication-contract.d.ts +32 -0
- package/src/inference/resident-publication-contract.js +104 -0
- package/src/inference/resident-state-contract.d.ts +26 -0
- package/src/inference/resident-state-contract.js +135 -0
- package/src/inference/resident-target-state.d.ts +32 -0
- package/src/inference/resident-target-state.js +152 -0
- package/src/inference/sampling-rng.js +35 -0
- package/src/inference/token-sampling.js +395 -0
- package/src/inference/tokenizer.d.ts +2 -0
- package/src/inference/tokenizer.js +16 -0
- package/src/inference/tokenizers/bundled/incremental-decoder.d.ts +16 -0
- package/src/inference/tokenizers/bundled/incremental-decoder.js +100 -0
- package/src/inference/tokenizers/bundled/normalizer.js +44 -0
- package/src/inference/tokenizers/bundled.js +25 -42
- package/src/inference/tokenizers/sentencepiece.js +4 -26
- package/src/loader/doppler-loader.d.ts +13 -0
- package/src/loader/doppler-loader.js +34 -62
- package/src/loader/dtype-utils.js +1 -19
- package/src/loader/embedding-limit-preflight.js +77 -8
- package/src/loader/embedding-loader.js +43 -114
- package/src/loader/experts/expert-cache.js +1 -4
- package/src/loader/experts/expert-loader.d.ts +6 -1
- package/src/loader/experts/expert-loader.js +90 -29
- package/src/loader/experts/expert-preparation.d.ts +16 -0
- package/src/loader/experts/expert-preparation.js +57 -0
- package/src/loader/experts/loader-bindings.js +53 -0
- package/src/loader/experts/qwen-paging.d.ts +19 -0
- package/src/loader/experts/qwen-paging.js +70 -0
- package/src/loader/experts/routed-expert-cache.d.ts +56 -0
- package/src/loader/experts/routed-expert-cache.js +372 -0
- package/src/loader/experts/routed-expert-plan.d.ts +20 -0
- package/src/loader/experts/routed-expert-plan.js +46 -0
- package/src/loader/final-weights-loader.d.ts +7 -1
- package/src/loader/final-weights-loader.js +17 -40
- package/src/loader/hyper-connection-loader.d.ts +25 -0
- package/src/loader/hyper-connection-loader.js +150 -0
- package/src/loader/layer-loader.d.ts +8 -1
- package/src/loader/layer-loader.js +67 -97
- package/src/loader/layer-tensor-aliases.js +77 -11
- package/src/loader/layer-weight-shape.js +13 -0
- package/src/loader/load-timing.js +2 -0
- package/src/loader/loader-types.d.ts +24 -1
- package/src/loader/model-executor.js +27 -365
- package/src/loader/model-load.d.ts +18 -0
- package/src/loader/model-load.js +432 -0
- package/src/loader/ngram-table-bindings.d.ts +11 -0
- package/src/loader/ngram-table-bindings.js +61 -0
- package/src/loader/per-layer-input-loader.js +5 -83
- package/src/loader/q4k-reference-weight.js +84 -0
- package/src/loader/shard-cache.js +3 -0
- package/src/loader/tensor-load-error.js +20 -1
- package/src/loader/tensors/bf16-loader.js +3 -29
- package/src/loader/tensors/buffer-write.js +26 -0
- package/src/loader/tensors/fp8-loader.js +28 -0
- package/src/loader/tensors/load-executor.js +124 -117
- package/src/loader/tensors/q4_0-loader.js +32 -0
- package/src/loader/tensors/range-backed-weights.js +34 -0
- package/src/loader/tensors/source-transform.js +1 -1
- package/src/loader/tensors/tensor-loader.js +22 -6
- package/src/loader/tensors/w8a8-loader.js +36 -0
- package/src/loader/weight-downcast.js +9 -13
- package/src/loader/weight-representation-plan.d.ts +28 -0
- package/src/loader/weight-representation-plan.js +146 -0
- package/src/loader/weights.d.ts +1 -1
- package/src/memory/buffer-pool.d.ts +24 -4
- package/src/memory/buffer-pool.js +124 -128
- package/src/memory/device-budget.d.ts +10 -0
- package/src/memory/device-budget.js +89 -0
- package/src/memory/device-residency.js +60 -0
- package/src/partitions.d.ts +21 -0
- package/src/partitions.js +10 -0
- package/src/rules/execution-rules-contract-check.js +73 -570
- package/src/rules/generated/rule-bundle.json +1 -4305
- package/src/rules/greedy-sampling.js +16 -0
- package/src/rules/inference/capability-transforms.rules.json +11 -1
- package/src/rules/layer-pattern-contract-check.js +49 -222
- package/src/rules/rule-matcher.d.ts +62 -0
- package/src/rules/rule-matcher.js +132 -1
- package/src/rules/rule-registry.d.ts +75 -0
- package/src/rules/rule-registry.js +64 -24
- package/src/storage/artifact-storage-context.d.ts +99 -0
- package/src/storage/artifact-storage-context.js +71 -114
- package/src/storage/backend-selection.js +3 -0
- package/src/storage/backends/idb-store.d.ts +54 -0
- package/src/storage/backends/idb-store.js +12 -0
- package/src/storage/backends/memory-store.d.ts +38 -0
- package/src/storage/backends/memory-store.js +15 -6
- package/src/storage/backends/opfs-store.d.ts +43 -0
- package/src/storage/backends/opfs-store.js +6 -0
- package/src/storage/blake3.d.ts +17 -0
- package/src/storage/blake3.js +153 -68
- package/src/storage/distribution-transport.js +626 -3
- package/src/storage/download/http-contract.js +199 -0
- package/src/storage/download/http-transport.js +824 -0
- package/src/storage/download/integrity.d.ts +10 -2
- package/src/storage/download/integrity.js +39 -2
- package/src/storage/download/transport.js +2 -2
- package/src/storage/downloader.js +404 -388
- package/src/storage/export.d.ts +1 -0
- package/src/storage/export.js +22 -70
- package/src/storage/model-cache.d.ts +4 -1
- package/src/storage/model-cache.js +131 -52
- package/src/storage/model-read-session.d.ts +13 -0
- package/src/storage/model-read-session.js +76 -0
- package/src/storage/node-file-access.js +108 -0
- package/src/storage/reports.js +1 -4
- package/src/storage/runtime-env.js +6 -0
- package/src/storage/shard-manager.d.ts +10 -0
- package/src/storage/shard-manager.js +644 -579
- package/src/storage/shards/index.js +16 -0
- package/src/storage/shards/integrity.js +35 -49
- package/src/storage/source-artifact-store.d.ts +59 -0
- package/src/storage/source-artifact-store.js +24 -37
- package/src/storage/source-storage-context.d.ts +53 -0
- package/src/storage/source-storage-context.js +298 -0
- package/src/storage/verified-piece-reader.d.ts +23 -0
- package/src/storage/verified-piece-reader.js +134 -0
- package/src/storage/verified-piece-storage.d.ts +7 -0
- package/src/storage/verified-piece-storage.js +16 -0
- package/src/tooling/boundary-evidence.js +1 -4
- package/src/tooling/browser-command-runner.d.ts +1 -1
- package/src/tooling/browser-command-runner.js +2 -2
- package/src/tooling/browser-harness/benchmark-comparison.js +105 -0
- package/src/tooling/browser-harness/benchmark-execution.js +865 -0
- package/src/tooling/browser-harness/decode-diagnostics.js +201 -0
- package/src/tooling/browser-harness/inference-execution.js +543 -0
- package/src/tooling/browser-harness/model-initialization.js +230 -0
- package/src/tooling/browser-harness/model-resolution.js +134 -0
- package/src/tooling/browser-harness/report.js +338 -0
- package/src/tooling/browser-harness/request-timing.js +50 -0
- package/src/tooling/browser-harness/request.js +264 -0
- package/src/tooling/browser-harness/runtime-config.d.ts +26 -0
- package/src/tooling/browser-harness/runtime-config.js +256 -0
- package/src/tooling/browser-harness/text-evidence.d.ts +81 -0
- package/src/tooling/browser-harness/text-evidence.js +695 -0
- package/src/tooling/browser-harness/text-execution.d.ts +37 -0
- package/src/tooling/browser-harness/text-execution.js +721 -0
- package/src/tooling/browser-harness/text-input.d.ts +45 -0
- package/src/tooling/browser-harness/text-input.js +722 -0
- package/src/tooling/browser-harness/timing-diagnostics.js +416 -0
- package/src/tooling/browser-harness-text-helpers.d.ts +31 -0
- package/src/tooling/browser-harness-text-helpers.js +31 -0
- package/src/tooling/browser-harness.d.ts +245 -0
- package/src/tooling/browser-harness.js +337 -0
- package/src/tooling/command-api.d.ts +1 -0
- package/src/tooling/diagnose-runner.js +2 -2
- package/src/tooling/distribution-shard-transport.d.ts +6 -0
- package/src/tooling/execution-cost-ledger.d.ts +2 -1
- package/src/tooling/execution-cost-ledger.js +10 -7
- package/src/tooling/hf-registry/catalog-io.js +7 -5
- package/src/tooling/litert-package-runtime.js +1 -98
- package/src/tooling/model-capsule-pieces.js +47 -0
- package/src/tooling/model-capsule-rig.js +528 -0
- package/src/tooling/node-browser/execution.d.ts +1 -1
- package/src/tooling/node-browser/static-server.js +26 -2
- package/src/tooling/node-browser/transport.js +0 -43
- package/src/tooling/node-capsule-artifact-store.js +24 -0
- package/src/tooling/node-command-execution.js +2 -2
- package/src/tooling/node-command-runner.d.ts +1 -1
- package/src/tooling/node-converter/input.js +36 -5
- package/src/tooling/node-converter/output.js +75 -1
- package/src/tooling/node-converter.js +33 -34
- package/src/tooling/node-source-runtime.js +5 -5
- package/src/tooling/portable-source-path.js +26 -0
- package/src/tooling/production-release.js +3 -6
- package/src/tooling/program-bundle/choice-scoring-reference.js +22 -0
- package/src/tooling/program-bundle/materialize.js +4 -0
- package/src/tooling/program-bundle/wgsl-closure.js +3 -9
- package/src/tooling/program-bundle-host.js +26 -0
- package/src/tooling/program-bundle.js +11 -6
- package/src/tooling/reference-verify.js +5 -17
- package/src/tooling/registered-variant-calibration-job.js +1 -4
- package/src/tooling/registered-variant-calibration.js +1 -4
- package/src/tooling/source-artifact-adapter.d.ts +1 -0
- package/src/tooling/source-artifact-adapter.js +33 -1
- package/src/tooling/source-intake.js +1 -4
- package/src/tooling/source-runtime-bundle.d.ts +4 -85
- package/src/tooling/source-runtime-bundle.js +3 -3
- package/src/tooling/source-runtime-converter-config.js +41 -8
- package/src/tooling/test-harness.d.ts +173 -0
- package/src/tooling/test-harness.js +476 -0
- package/src/tooling-exports/device.d.ts +1 -0
- package/src/tooling-exports/device.js +1 -0
- package/src/tooling-exports/evidence.d.ts +3 -0
- package/src/tooling-exports/manifest.d.ts +1 -1
- package/src/tooling-exports/manifest.js +1 -1
- package/src/tooling-exports/runtime.d.ts +6 -1
- package/src/tooling-exports/runtime.js +6 -1
- package/src/tooling-exports/storage.d.ts +10 -0
- package/src/tooling-exports/storage.js +9 -0
- package/src/tooling-exports/structured.d.ts +2 -1
- package/src/tooling-exports/structured.js +2 -1
- package/src/tooling-exports.shared.d.ts +12 -9
- package/src/tooling-exports.shared.js +6 -12
- package/src/training-browser.d.ts +5 -0
- package/src/training.d.ts +7 -0
- package/src/training.js +1 -0
- package/src/version.js +1 -1
- package/tests/fixtures/linear-core-activation-accuracy.json +12 -0
- package/tests/fixtures/linear-core-refined-accuracy.json +128 -0
- package/tests/fixtures/q4k-ordered-accumulation.json +87 -0
- package/tests/fixtures/rmsnorm-inverse-root.json +18 -0
- package/tests/kernels/browser/kernel-suite.js +230 -0
- package/tests/kernels/browser/test-page.js +5 -6
- package/tests/kernels/harness/benchmark.js +11 -3
- package/tests/kernels/reference/dequant.js +23 -3
- package/tests/kernels/reference/index.js +1 -0
- package/tools/convert-safetensors-node.js +7 -1
- package/src/capsule.d.ts +0 -8
- package/src/capsule.js +0 -4
- package/src/cli/serve/capsule-handler.d.ts +0 -33
- package/src/cli/serve/capsule-handler.js +0 -105
- package/src/cli/serve/capsule-http.js +0 -102
- package/src/client/runtime/index.js +0 -1
- package/src/client/runtime/source-runtime.js +0 -910
- package/src/client/runtime/target-selector.js +0 -2
- package/src/config/backward-registry-loader.d.ts +0 -3
- package/src/config/capsule-serve.d.ts +0 -9
- package/src/config/capsule-serve.js +0 -28
- package/src/config/capsule-serve.schema.json +0 -14
- package/src/config/index.d.ts +0 -52
- package/src/config/index.js +0 -22
- package/src/config/kernels/kernel-ref-digests.js +0 -348
- package/src/config/runtime/diagnostics/debug-logits.json +0 -54
- package/src/config/runtime/experiments/bench/gemma3-bench-q4k-alt.json +0 -58
- package/src/config/runtime/experiments/bench/gemma3-bench-q4k-batched.json +0 -58
- package/src/config/runtime/experiments/bench/gemma3-bench-q4k.json +0 -57
- package/src/config/runtime/experiments/bench/gemma4-bench-q4k.json +0 -33
- package/src/config/runtime/experiments/bench/qwen3-bench-q4k-alt.json +0 -58
- package/src/config/runtime/experiments/bench/qwen3-bench-q4k-batched.json +0 -58
- package/src/config/runtime/experiments/debug/gemma3-browser-diagnose-q4k.json +0 -81
- package/src/config/runtime/experiments/debug/gemma3-debug-q4k.json +0 -213
- package/src/config/runtime/experiments/debug/gemma4-e2b-browser-diagnose-q4k.json +0 -85
- package/src/config/runtime/experiments/debug/qwen35-browser-diagnose-q4k.json +0 -81
- package/src/config/runtime/experiments/verify/gemma3-verify.json +0 -37
- package/src/config/runtime/experiments/verify/gemma4-e2b-verify.json +0 -36
- package/src/config/runtime/experiments/verify/lfm2-verify.json +0 -44
- package/src/config/runtime/experiments/verify/translategemma-verify.json +0 -37
- package/src/config/runtime/model/gemma2-debug.json +0 -78
- package/src/config/runtime/model/gemma2-pipeline-debug.json +0 -67
- package/src/config/runtime/model/gemma2-pipeline.json +0 -76
- package/src/config/runtime/model/gemma3-layer-probe.json +0 -86
- package/src/config/runtime/model/qwen3-5-layer-probe.json +0 -53
- package/src/config/runtime/model/qwen3-5-layer3-boundary-probe.json +0 -109
- package/src/config/runtime/model/qwen3-5-linear-attn-debug.json +0 -91
- package/src/config/runtime/optimization-candidates/registry.json +0 -5
- package/src/config/runtime/profiles/diffusiongemma-26b-a4b-throughput.json +0 -27
- package/src/config/runtime/profiles/gemma3-270m-q4k-throughput-overlapped-probe.json +0 -43
- package/src/config/runtime/profiles/gemma3-270m-q4k-throughput-probe.json +0 -40
- package/src/config/runtime/profiles/gemma4-12b-rdrr-safe-b4.json +0 -46
- package/src/config/runtime/profiles/gemma4-12b-rdrr-safe-single.json +0 -44
- package/src/config/runtime/profiles/gemma4-31b-f16-activations-probe.json +0 -61
- package/src/config/runtime/profiles/gemma4-e2b-baseline-probe.json +0 -39
- package/src/config/runtime/profiles/gemma4-e2b-fused-rmsnorm-probe.json +0 -42
- package/src/config/runtime/profiles/gemma4-e2b-fused-rmsnorm-test.json +0 -20
- package/src/config/runtime/profiles/gemma4-e2b-int4ple-baseline-probe.json +0 -27
- package/src/config/runtime/profiles/gemma4-e2b-int4ple-f16a-probe.json +0 -30
- package/src/config/runtime/profiles/gemma4-e2b-int4ple-reference-export.json +0 -62
- package/src/config/runtime/profiles/gemma4-e2b-int4ple-retain-q4k-probe.json +0 -43
- package/src/config/runtime/profiles/gemma4-e2b-low-memory.json +0 -64
- package/src/config/runtime/profiles/gemma4-e2b-prefill-profile.json +0 -33
- package/src/config/runtime/profiles/gemma4-e2b-throughput-probe.json +0 -17
- package/src/config/runtime/profiles/muse-glimmer-30b-source-parity-f32kv.json +0 -30
- package/src/config/runtime/profiles/muse-glimmer-30b-source-parity.json +0 -110
- package/src/config/runtime/profiles/qwen-3-5-0-8b-metal-attn128-candidate.json +0 -21
- package/src/config/runtime/profiles/qwen-3-5-0-8b-metal-maxbatch64-candidate.json +0 -53
- package/src/config/runtime/profiles/qwen-3-5-0-8b-metal-normed-ffn-candidate.json +0 -19
- package/src/config/runtime/profiles/qwen-3-5-0-8b-metal-overlap-ringtokens1-candidate.json +0 -53
- package/src/config/runtime/profiles/qwen-3-5-0-8b-metal-sequential-candidate.json +0 -53
- package/src/config/runtime/profiles/qwen-3-5-0-8b-metal-throughput.json +0 -86
- package/src/config/runtime/profiles/qwen-3-5-0-8b-prefill-profile.json +0 -33
- package/src/config/runtime/profiles/qwen-3-5-0-8b-throughput-probe.json +0 -17
- package/src/config/runtime/profiles/qwen-3-5-2b-f16-primary-throughput.json +0 -19
- package/src/config/runtime/profiles/qwen-3-5-9b-metal-correctness.json +0 -47
- package/src/config/runtime/profiles/qwen3-6-27b-f16-activations-probe.json +0 -58
- package/src/config/runtime/profiles/qwen3-8-27b-source-parity.json +0 -87
- package/src/config/runtime/profiles/simulation.json +0 -29
- package/src/config/runtime/profiles/trace-layers.json +0 -125
- package/src/config/runtime/profiles/translategemma-1b-nativekd2-q4k-rdna3-throughput-probe.json +0 -23
- package/src/config/runtime/profiles/turboquant-contiguous-prod.json +0 -30
- package/src/config/runtime/profiles/turboquant-contiguous.json +0 -30
- package/src/config/runtime/profiles/turboquant.json +0 -37
- package/src/config/runtime/profiles/verbose-trace.json +0 -37
- package/src/config/runtime/tiers/gemma4-128gb.json +0 -80
- package/src/config/runtime/tiers/gemma4-16gb.json +0 -83
- package/src/config/runtime/tiers/gemma4-24gb.json +0 -80
- package/src/config/runtime/tiers/gemma4-32gb.json +0 -80
- package/src/config/transforms/capability-transform-resolver.js +0 -4
- package/src/config/transforms/execution-graph/fusion.js +0 -436
- package/src/config/transforms/execution-graph/validation.js +0 -414
- package/src/config/transforms/execution-graph-transforms.js +0 -987
- package/src/converter/shard-packer.d.ts +0 -138
- package/src/converter/shard-packer.js +0 -425
- package/src/experimental/adapters/adapter-manager.d.ts +0 -200
- package/src/experimental/adapters/adapter-manager.js +0 -511
- package/src/experimental/adapters/adapter-registry.d.ts +0 -192
- package/src/experimental/adapters/adapter-registry.js +0 -477
- package/src/experimental/adapters/artifact-contract.d.ts +0 -83
- package/src/experimental/adapters/artifact-contract.js +0 -257
- package/src/experimental/adapters/index.d.ts +0 -114
- package/src/experimental/adapters/index.js +0 -54
- package/src/experimental/bridge/trainer-artifact-bridge.d.ts +0 -162
- package/src/experimental/bridge/trainer-artifact-bridge.js +0 -595
- package/src/experimental/browser/browser-converter.d.ts +0 -71
- package/src/experimental/browser/browser-converter.js +0 -978
- package/src/experimental/browser/file-picker.d.ts +0 -63
- package/src/experimental/browser/file-picker.js +0 -281
- package/src/experimental/browser/gguf-parser-browser.js +0 -17
- package/src/experimental/browser/quantization.js +0 -328
- package/src/experimental/browser/safetensors-parser-browser.js +0 -347
- package/src/experimental/browser/tensor-source-download.js +0 -245
- package/src/experimental/browser/tensor-source-file.d.ts +0 -26
- package/src/experimental/browser/tensor-source-file.js +0 -53
- package/src/experimental/browser/tensor-source-http.d.ts +0 -29
- package/src/experimental/browser/tensor-source-http.js +0 -130
- package/src/experimental/diffusion/image-regression.d.ts +0 -31
- package/src/experimental/diffusion/image-regression.js +0 -107
- package/src/experimental/diffusion/index.d.ts +0 -32
- package/src/experimental/diffusion/index.js +0 -18
- package/src/experimental/diffusion/pipeline.js +0 -727
- package/src/experimental/diffusion/scheduler.js +0 -153
- package/src/experimental/diffusion/text-encoder-gpu.js +0 -947
- package/src/experimental/diffusion/vae.js +0 -596
- package/src/experimental/distribution/descriptor-transport.d.ts +0 -117
- package/src/experimental/distribution/descriptor-transport.js +0 -342
- package/src/experimental/distribution/p2p-control-plane.d.ts +0 -52
- package/src/experimental/distribution/p2p-observability.d.ts +0 -116
- package/src/experimental/distribution/p2p-observability.js +0 -303
- package/src/experimental/distribution/p2p-webrtc-browser.d.ts +0 -37
- package/src/experimental/distribution/shard-delivery/transport.js +0 -831
- package/src/experimental/distribution/shard-delivery.d.ts +0 -251
- package/src/experimental/energy/index.d.ts +0 -2
- package/src/experimental/energy/index.js +0 -2
- package/src/experimental/energy/pipeline.js +0 -697
- package/src/experimental/energy/quintel.d.ts +0 -107
- package/src/experimental/energy/quintel.js +0 -218
- package/src/experimental/orchestration/energy-row-head-pipeline.js +0 -491
- package/src/experimental/orchestration/index.d.ts +0 -21
- package/src/experimental/orchestration/index.js +0 -12
- package/src/formats/quantization-constants.d.ts +0 -11
- package/src/formats/quantization-constants.js +0 -11
- package/src/formats/tokenizer/types.js +0 -22
- package/src/gpu/kernel-selector.d.ts +0 -11
- package/src/gpu/kernels/activation-static-qdq.d.ts +0 -22
- package/src/gpu/kernels/attention.d.ts +0 -253
- package/src/gpu/kernels/backward/adam.d.ts +0 -29
- package/src/gpu/kernels/backward/attention_backward.d.ts +0 -35
- package/src/gpu/kernels/backward/bias_add_backward.d.ts +0 -17
- package/src/gpu/kernels/backward/causal_conv1d_silu_backward.d.ts +0 -24
- package/src/gpu/kernels/backward/conv2d_backward.d.ts +0 -31
- package/src/gpu/kernels/backward/cross_entropy_backward.d.ts +0 -23
- package/src/gpu/kernels/backward/embed_backward.d.ts +0 -29
- package/src/gpu/kernels/backward/executor.d.ts +0 -34
- package/src/gpu/kernels/backward/gated_delta_recurrent_backward.d.ts +0 -39
- package/src/gpu/kernels/backward/gated_rmsnorm_backward.d.ts +0 -32
- package/src/gpu/kernels/backward/gelu_backward.d.ts +0 -16
- package/src/gpu/kernels/backward/groupnorm_backward.d.ts +0 -24
- package/src/gpu/kernels/backward/index.d.ts +0 -26
- package/src/gpu/kernels/backward/layernorm_backward.d.ts +0 -22
- package/src/gpu/kernels/backward/matmul_backward.d.ts +0 -31
- package/src/gpu/kernels/backward/pixel_shuffle_backward.d.ts +0 -22
- package/src/gpu/kernels/backward/rmsnorm_backward.d.ts +0 -24
- package/src/gpu/kernels/backward/rope_backward.d.ts +0 -25
- package/src/gpu/kernels/backward/scale_backward.d.ts +0 -16
- package/src/gpu/kernels/backward/silu_backward.d.ts +0 -16
- package/src/gpu/kernels/backward/softmax_backward.d.ts +0 -16
- package/src/gpu/kernels/backward/upsample2d_backward.d.ts +0 -21
- package/src/gpu/kernels/backward/utils.js +0 -2
- package/src/gpu/kernels/cast.d.ts +0 -67
- package/src/gpu/kernels/clamp.d.ts +0 -22
- package/src/gpu/kernels/conv2d.d.ts +0 -30
- package/src/gpu/kernels/cross_entropy_loss.d.ts +0 -21
- package/src/gpu/kernels/depthwise_conv1d.d.ts +0 -23
- package/src/gpu/kernels/depthwise_conv2d.d.ts +0 -29
- package/src/gpu/kernels/dequant.d.ts +0 -92
- package/src/gpu/kernels/diffusion-gemma-sampling.d.ts +0 -19
- package/src/gpu/kernels/energy.d.ts +0 -113
- package/src/gpu/kernels/feature-check.d.ts +0 -42
- package/src/gpu/kernels/fused_ffn.d.ts +0 -97
- package/src/gpu/kernels/fused_matmul_residual.d.ts +0 -46
- package/src/gpu/kernels/fused_matmul_rmsnorm.d.ts +0 -64
- package/src/gpu/kernels/gather.d.ts +0 -144
- package/src/gpu/kernels/gelu.d.ts +0 -33
- package/src/gpu/kernels/gemma4-route-expert.d.ts +0 -35
- package/src/gpu/kernels/grouped_pointwise_conv2d.d.ts +0 -27
- package/src/gpu/kernels/groupnorm.d.ts +0 -27
- package/src/gpu/kernels/index.d.ts +0 -517
- package/src/gpu/kernels/index.js +0 -408
- package/src/gpu/kernels/kernel-cache-lifecycle.d.ts +0 -9
- package/src/gpu/kernels/kernel-prewarm.d.ts +0 -3
- package/src/gpu/kernels/kv-cache-write.d.ts +0 -22
- package/src/gpu/kernels/kv-quantize.d.ts +0 -37
- package/src/gpu/kernels/layernorm.d.ts +0 -33
- package/src/gpu/kernels/linear_attention.d.ts +0 -27
- package/src/gpu/kernels/lm-head-argmax.d.ts +0 -28
- package/src/gpu/kernels/lm-head-select-logits.d.ts +0 -23
- package/src/gpu/kernels/logit-merge.d.ts +0 -86
- package/src/gpu/kernels/logit-merge.js +0 -266
- package/src/gpu/kernels/matmul.d.ts +0 -89
- package/src/gpu/kernels/modulate.d.ts +0 -29
- package/src/gpu/kernels/moe.d.ts +0 -113
- package/src/gpu/kernels/pixel_shuffle.d.ts +0 -27
- package/src/gpu/kernels/relu.d.ts +0 -18
- package/src/gpu/kernels/repeat_channels.d.ts +0 -21
- package/src/gpu/kernels/residual.d.ts +0 -65
- package/src/gpu/kernels/rmsnorm-pair.d.ts +0 -72
- package/src/gpu/kernels/rmsnorm-qk.d.ts +0 -41
- package/src/gpu/kernels/rmsnorm-stats.d.ts +0 -29
- package/src/gpu/kernels/rmsnorm.d.ts +0 -76
- package/src/gpu/kernels/rope-qk.d.ts +0 -41
- package/src/gpu/kernels/rope.d.ts +0 -48
- package/src/gpu/kernels/sample.d.ts +0 -70
- package/src/gpu/kernels/scale.d.ts +0 -40
- package/src/gpu/kernels/silu.d.ts +0 -77
- package/src/gpu/kernels/soft-embedding.d.ts +0 -28
- package/src/gpu/kernels/softmax.d.ts +0 -57
- package/src/gpu/kernels/split-qkv-rmsnorm-qk.d.ts +0 -44
- package/src/gpu/kernels/split-qkv-rmsnorm-rope-qk.d.ts +0 -59
- package/src/gpu/kernels/split_qg.d.ts +0 -50
- package/src/gpu/kernels/split_qkv.d.ts +0 -53
- package/src/gpu/kernels/transpose.d.ts +0 -21
- package/src/gpu/kernels/types.d.ts +0 -21
- package/src/gpu/kernels/upsample2d.d.ts +0 -21
- package/src/gpu/kernels/utils.js +0 -9
- package/src/gpu/kernels/vision-average-pool.d.ts +0 -13
- package/src/gpu/kernels/vision-patch-embed.d.ts +0 -17
- package/src/gpu/kernels/vision-position-embedding.d.ts +0 -13
- package/src/gpu/kernels/vision-rope-2d.d.ts +0 -16
- package/src/gpu/kernels/vision-spatial-merge.d.ts +0 -19
- package/src/gpu/multi-model-recorder.d.ts +0 -21
- package/src/gpu/multi-model-recorder.js +0 -31
- package/src/gpu/partitioned-buffer-pool.d.ts +0 -28
- package/src/gpu/partitioned-buffer-pool.js +0 -57
- package/src/gpu/perf-guards.js +0 -71
- package/src/inference/browser-harness/benchmark-execution.js +0 -872
- package/src/inference/browser-harness/decode-diagnostics.js +0 -241
- package/src/inference/browser-harness/inference-execution.js +0 -543
- package/src/inference/browser-harness/model-initialization.js +0 -225
- package/src/inference/browser-harness/model-resolution.js +0 -137
- package/src/inference/browser-harness/report.js +0 -338
- package/src/inference/browser-harness/request.js +0 -263
- package/src/inference/browser-harness/runtime-config.d.ts +0 -25
- package/src/inference/browser-harness/runtime-config.js +0 -255
- package/src/inference/browser-harness/runtime-isolation.d.ts +0 -13
- package/src/inference/browser-harness/runtime-report.d.ts +0 -26
- package/src/inference/browser-harness/text-evidence.js +0 -694
- package/src/inference/browser-harness/text-execution.js +0 -757
- package/src/inference/browser-harness/text-input.js +0 -725
- package/src/inference/browser-harness/timing-diagnostics.js +0 -414
- package/src/inference/browser-harness-runtime-helpers.d.ts +0 -3
- package/src/inference/browser-harness-runtime-helpers.js +0 -3
- package/src/inference/browser-harness-text-helpers.js +0 -31
- package/src/inference/browser-harness.d.ts +0 -245
- package/src/inference/browser-harness.js +0 -337
- package/src/inference/expert-router.d.ts +0 -27
- package/src/inference/expert-router.js +0 -55
- package/src/inference/kv-cache/index.d.ts +0 -38
- package/src/inference/kv-cache/index.js +0 -22
- package/src/inference/kv-cache.d.ts +0 -39
- package/src/inference/kv-cache.js +0 -20
- package/src/inference/multi-model-network.d.ts +0 -139
- package/src/inference/multi-model-network.js +0 -435
- package/src/inference/multi-pipeline-pool.d.ts +0 -62
- package/src/inference/multi-pipeline-pool.js +0 -161
- package/src/inference/network-evolution.d.ts +0 -43
- package/src/inference/pipelines/diffusion/init.d.ts +0 -24
- package/src/inference/pipelines/diffusion/init.js +0 -138
- package/src/inference/pipelines/diffusion/profile-timing.js +0 -10
- package/src/inference/pipelines/diffusion/runtime-resources.js +0 -54
- package/src/inference/pipelines/diffusion/sd3/execution.js +0 -805
- package/src/inference/pipelines/diffusion/sd3/plan.js +0 -125
- package/src/inference/pipelines/diffusion/sd3-transformer.js +0 -343
- package/src/inference/pipelines/diffusion/sd3-weights.js +0 -287
- package/src/inference/pipelines/diffusion/text-encoder.js +0 -195
- package/src/inference/pipelines/diffusion/vae/execution.js +0 -803
- package/src/inference/pipelines/diffusion/weight-contract.js +0 -53
- package/src/inference/pipelines/diffusion/weights.js +0 -155
- package/src/inference/pipelines/diffusion-gemma/config.d.ts +0 -27
- package/src/inference/pipelines/diffusion-gemma/config.js +0 -149
- package/src/inference/pipelines/diffusion-gemma/index.d.ts +0 -31
- package/src/inference/pipelines/diffusion-gemma/index.js +0 -12
- package/src/inference/pipelines/diffusion-gemma/pipeline.d.ts +0 -69
- package/src/inference/pipelines/diffusion-gemma/pipeline.js +0 -380
- package/src/inference/pipelines/diffusion-gemma/sampling.d.ts +0 -128
- package/src/inference/pipelines/diffusion-gemma/sampling.js +0 -395
- package/src/inference/pipelines/rng.js +0 -17
- package/src/inference/pipelines/structured/index.d.ts +0 -10
- package/src/inference/pipelines/structured/index.js +0 -10
- package/src/inference/pipelines/text/attention/heterogeneous-contract.js +0 -8
- package/src/inference/pipelines/text/attention/index.js +0 -24
- package/src/inference/pipelines/text/attention/record.js +0 -2
- package/src/inference/pipelines/text/attention/run.js +0 -2
- package/src/inference/pipelines/text/config/validation.js +0 -9
- package/src/inference/pipelines/text/debug-utils/index.js +0 -39
- package/src/inference/pipelines/text/debug-utils/profiles.js +0 -8
- package/src/inference/pipelines/text/debug-utils.js +0 -34
- package/src/inference/pipelines/text/ffn/index.js +0 -16
- package/src/inference/pipelines/text/model-load.d.ts +0 -59
- package/src/inference/test-harness.d.ts +0 -172
- package/src/inference/test-harness.js +0 -470
- package/src/loader/dtype-utils.d.ts +0 -40
- package/src/loader/embedding-loader.d.ts +0 -66
- package/src/loader/index.d.ts +0 -152
- package/src/loader/index.js +0 -126
- package/src/loader/loader-state.d.ts +0 -51
- package/src/loader/loader-state.js +0 -142
- package/src/loader/manifest-config.d.ts +0 -118
- package/src/loader/multi-model-loader.d.ts +0 -59
- package/src/loader/multi-model-loader.js +0 -141
- package/src/loader/quantization-constants.d.ts +0 -11
- package/src/loader/quantization-constants.js +0 -13
- package/src/loader/shard-resolver.d.ts +0 -13
- package/src/loader/tensors/tensor-loader.d.ts +0 -197
- package/src/loader/tensors/tensor-reader.d.ts +0 -33
- package/src/loader/tensors/tensor-role.d.ts +0 -7
- package/src/loader/weight-downcast.d.ts +0 -62
- package/src/loader/weights.js +0 -4
- package/src/loaders/index.d.ts +0 -4
- package/src/loaders/index.js +0 -4
- package/src/models/diffusiongemma.d.ts +0 -7
- package/src/models/diffusiongemma.js +0 -25
- package/src/models/embeddinggemma.d.ts +0 -7
- package/src/models/embeddinggemma.js +0 -24
- package/src/models/family.d.ts +0 -24
- package/src/models/family.js +0 -25
- package/src/models/gemma3.d.ts +0 -7
- package/src/models/gemma3.js +0 -33
- package/src/models/gemma4.d.ts +0 -7
- package/src/models/gemma4.js +0 -65
- package/src/models/qwen3.d.ts +0 -7
- package/src/models/qwen3.js +0 -36
- package/src/rules/capability-transform-resolver.js +0 -80
- package/src/tooling/capsule-v2.d.ts +0 -11
- package/src/tooling/model-capsule-forge.js +0 -478
- package/src/tooling/source-runtime/bundle-materialize.js +0 -298
- package/src/tooling-experimental-exports.browser.js +0 -2
- package/src/tooling-experimental-exports.d.ts +0 -7
- package/src/tooling-experimental-exports.js +0 -2
- package/src/tooling-experimental-exports.shared.d.ts +0 -61
- package/src/tooling-experimental-exports.shared.js +0 -57
- /package/src/{config/transforms → converter}/execution-graph/dtype.js +0 -0
- /package/src/{tooling/source-runtime/bundle-plan.js → formats/source-runtime.js} +0 -0
- /package/src/{inference → tooling}/browser-harness/benchmark-rerank.js +0 -0
- /package/src/{inference → tooling}/browser-harness/diffusion-performance.js +0 -0
- /package/src/{inference → tooling}/browser-harness/runtime-isolation.js +0 -0
- /package/src/{inference → tooling}/browser-harness/runtime-report.js +0 -0
- /package/src/{inference → tooling}/browser-harness/suite-summary.js +0 -0
- /package/src/{inference → tooling}/browser-harness-contract-helpers.js +0 -0
- /package/src/{inference → tooling}/browser-harness-diffusion-energy-suites.js +0 -0
- /package/src/{inference → tooling}/browser-harness-report-helpers.js +0 -0
|
@@ -0,0 +1,1063 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelType": "transformer",
|
|
3
|
+
"output": {
|
|
4
|
+
"baseDir": "models/local",
|
|
5
|
+
"modelBaseId": "qwen-3-8-flash-next-text-q4k-ehf16-af32",
|
|
6
|
+
"textOnly": true,
|
|
7
|
+
"fast": false
|
|
8
|
+
},
|
|
9
|
+
"quantization": {
|
|
10
|
+
"weights": "q4k",
|
|
11
|
+
"embeddings": "f16",
|
|
12
|
+
"lmHead": "f16",
|
|
13
|
+
"vision": "f16",
|
|
14
|
+
"projector": "f16",
|
|
15
|
+
"modulesToNotConvert": [
|
|
16
|
+
"model.language_model.layers.*.linear_attn",
|
|
17
|
+
"model.language_model.layers.*.mlp.gate",
|
|
18
|
+
"model.language_model.layers.*.mlp.shared_expert_gate",
|
|
19
|
+
"model.language_model.layers.*.attn_hyper_connection",
|
|
20
|
+
"model.language_model.layers.*.mlp_hyper_connection",
|
|
21
|
+
"model.language_model.hyper_connection_mixer",
|
|
22
|
+
"model.language_model.layers.*.self_attn.indexer",
|
|
23
|
+
"model.language_model.layers.*.ple"
|
|
24
|
+
],
|
|
25
|
+
"computePrecision": "f32",
|
|
26
|
+
"q4kLayout": "row"
|
|
27
|
+
},
|
|
28
|
+
"manifest": {
|
|
29
|
+
"hashAlgorithm": "sha256",
|
|
30
|
+
"artifactIdentity": {
|
|
31
|
+
"sourceCheckpointId": "Qwen/Qwen3.8-Flash-Next",
|
|
32
|
+
"sourceRepo": "Qwen/Qwen3.8-Flash-Next",
|
|
33
|
+
"sourceRevision": "de4b8e4d43b917e7706784d8bb445c9af86a3540",
|
|
34
|
+
"artifactCompleteness": "complete"
|
|
35
|
+
},
|
|
36
|
+
"eosTokenId": [
|
|
37
|
+
248046,
|
|
38
|
+
248044
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"inference": {
|
|
42
|
+
"attention": {
|
|
43
|
+
"queryPreAttnScalar": 256,
|
|
44
|
+
"attnLogitSoftcapping": null,
|
|
45
|
+
"slidingWindow": null,
|
|
46
|
+
"queryKeyNorm": true,
|
|
47
|
+
"valueNorm": false,
|
|
48
|
+
"causal": true,
|
|
49
|
+
"attentionBias": false,
|
|
50
|
+
"attentionOutputGate": true,
|
|
51
|
+
"outputGateType": null
|
|
52
|
+
},
|
|
53
|
+
"normalization": {
|
|
54
|
+
"rmsNormEps": 0.000001,
|
|
55
|
+
"rmsNormWeightOffset": true,
|
|
56
|
+
"postAttentionNorm": false,
|
|
57
|
+
"preFeedforwardNorm": false,
|
|
58
|
+
"postFeedforwardNorm": false,
|
|
59
|
+
"linearNormGateActivation": "sigmoid"
|
|
60
|
+
},
|
|
61
|
+
"ffn": {
|
|
62
|
+
"activation": "silu",
|
|
63
|
+
"gatedActivation": true,
|
|
64
|
+
"branchMode": "auto",
|
|
65
|
+
"useDoubleWideMlp": false,
|
|
66
|
+
"swigluLimit": null
|
|
67
|
+
},
|
|
68
|
+
"rope": {
|
|
69
|
+
"ropeTheta": 10000000,
|
|
70
|
+
"ropeLocalTheta": null,
|
|
71
|
+
"mropeInterleaved": true,
|
|
72
|
+
"mropeSection": [
|
|
73
|
+
11,
|
|
74
|
+
11,
|
|
75
|
+
10
|
|
76
|
+
],
|
|
77
|
+
"partialRotaryFactor": 0.25,
|
|
78
|
+
"ropeLocalPartialRotaryFactor": null,
|
|
79
|
+
"ropeFrequencyBaseDim": null,
|
|
80
|
+
"ropeLocalFrequencyBaseDim": null,
|
|
81
|
+
"ropeScalingType": null,
|
|
82
|
+
"ropeScalingFactor": 1,
|
|
83
|
+
"ropeLocalScalingType": null,
|
|
84
|
+
"ropeLocalScalingFactor": 1,
|
|
85
|
+
"yarnBetaFast": null,
|
|
86
|
+
"yarnBetaSlow": null,
|
|
87
|
+
"yarnOriginalMaxPos": null,
|
|
88
|
+
"ropeLocalYarnBetaFast": null,
|
|
89
|
+
"ropeLocalYarnBetaSlow": null,
|
|
90
|
+
"ropeLocalYarnOriginalMaxPos": null,
|
|
91
|
+
"longropeShortFactor": null,
|
|
92
|
+
"longropeLongFactor": null,
|
|
93
|
+
"longropeOriginalMaxPos": null,
|
|
94
|
+
"ropeInverseFrequencies": [
|
|
95
|
+
1,
|
|
96
|
+
0.6042963862419128,
|
|
97
|
+
0.36517414450645447,
|
|
98
|
+
0.22067339718341827,
|
|
99
|
+
0.1333521455526352,
|
|
100
|
+
0.08058421313762665,
|
|
101
|
+
0.04869675263762474,
|
|
102
|
+
0.02942727319896221,
|
|
103
|
+
0.017782794311642647,
|
|
104
|
+
0.010746078565716743,
|
|
105
|
+
0.006493816617876291,
|
|
106
|
+
0.003924189601093531,
|
|
107
|
+
0.0023713738191872835,
|
|
108
|
+
0.0014330126577988267,
|
|
109
|
+
0.0008659643353894353,
|
|
110
|
+
0.0005232990952208638,
|
|
111
|
+
0.0003162277862429619,
|
|
112
|
+
0.00019109529966954142,
|
|
113
|
+
0.00011547819303814322,
|
|
114
|
+
0.00006978305464144796,
|
|
115
|
+
0.00004216965317027643,
|
|
116
|
+
0.000025482966520939954,
|
|
117
|
+
0.000015399264157167636,
|
|
118
|
+
0.000009305720595875755,
|
|
119
|
+
0.00000562341347176698,
|
|
120
|
+
0.000003398208264115965,
|
|
121
|
+
0.0000020535248950181995,
|
|
122
|
+
0.0000012409377632138785,
|
|
123
|
+
7.498942409256415e-7,
|
|
124
|
+
4.531583783773385e-7,
|
|
125
|
+
2.7384197665014653e-7,
|
|
126
|
+
1.6548170833630138e-7
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
"output": {
|
|
130
|
+
"finalLogitSoftcapping": null,
|
|
131
|
+
"tieWordEmbeddings": false,
|
|
132
|
+
"scaleEmbeddings": false,
|
|
133
|
+
"embeddingTranspose": false,
|
|
134
|
+
"embeddingVocabSize": null,
|
|
135
|
+
"embeddingPostprocessor": null,
|
|
136
|
+
"embeddingScale": null,
|
|
137
|
+
"logitInputScale": 1
|
|
138
|
+
},
|
|
139
|
+
"layerPattern": {
|
|
140
|
+
"type": "custom",
|
|
141
|
+
"globalPattern": null,
|
|
142
|
+
"period": null,
|
|
143
|
+
"offset": null,
|
|
144
|
+
"layerTypes": [
|
|
145
|
+
"linear_attention",
|
|
146
|
+
"linear_attention",
|
|
147
|
+
"linear_attention",
|
|
148
|
+
"full_attention",
|
|
149
|
+
"linear_attention",
|
|
150
|
+
"linear_attention",
|
|
151
|
+
"linear_attention",
|
|
152
|
+
"full_attention",
|
|
153
|
+
"linear_attention",
|
|
154
|
+
"linear_attention",
|
|
155
|
+
"linear_attention",
|
|
156
|
+
"full_attention",
|
|
157
|
+
"linear_attention",
|
|
158
|
+
"linear_attention",
|
|
159
|
+
"linear_attention",
|
|
160
|
+
"full_attention",
|
|
161
|
+
"linear_attention",
|
|
162
|
+
"linear_attention",
|
|
163
|
+
"linear_attention",
|
|
164
|
+
"full_attention",
|
|
165
|
+
"linear_attention",
|
|
166
|
+
"linear_attention",
|
|
167
|
+
"linear_attention",
|
|
168
|
+
"full_attention",
|
|
169
|
+
"linear_attention",
|
|
170
|
+
"linear_attention",
|
|
171
|
+
"linear_attention",
|
|
172
|
+
"full_attention",
|
|
173
|
+
"linear_attention",
|
|
174
|
+
"linear_attention",
|
|
175
|
+
"linear_attention",
|
|
176
|
+
"full_attention",
|
|
177
|
+
"linear_attention",
|
|
178
|
+
"linear_attention",
|
|
179
|
+
"linear_attention",
|
|
180
|
+
"full_attention",
|
|
181
|
+
"linear_attention",
|
|
182
|
+
"linear_attention",
|
|
183
|
+
"linear_attention",
|
|
184
|
+
"full_attention",
|
|
185
|
+
"linear_attention",
|
|
186
|
+
"linear_attention",
|
|
187
|
+
"linear_attention",
|
|
188
|
+
"full_attention",
|
|
189
|
+
"linear_attention",
|
|
190
|
+
"linear_attention",
|
|
191
|
+
"linear_attention",
|
|
192
|
+
"full_attention"
|
|
193
|
+
],
|
|
194
|
+
"residualBranchScale": 1
|
|
195
|
+
},
|
|
196
|
+
"chatTemplate": {
|
|
197
|
+
"type": "qwen",
|
|
198
|
+
"enabled": true
|
|
199
|
+
},
|
|
200
|
+
"hyperConnections": {
|
|
201
|
+
"semantics": "qwen4_exp_gated_residual",
|
|
202
|
+
"streamCount": 4,
|
|
203
|
+
"streamWidth": 2560,
|
|
204
|
+
"projectionRank": 320,
|
|
205
|
+
"normEps": 0.000001
|
|
206
|
+
},
|
|
207
|
+
"indexedAttention": {
|
|
208
|
+
"semantics": "qwen4_exp_qsa",
|
|
209
|
+
"layers": [
|
|
210
|
+
3,
|
|
211
|
+
7,
|
|
212
|
+
11,
|
|
213
|
+
15,
|
|
214
|
+
19,
|
|
215
|
+
23,
|
|
216
|
+
27,
|
|
217
|
+
31,
|
|
218
|
+
35,
|
|
219
|
+
39,
|
|
220
|
+
43,
|
|
221
|
+
47
|
|
222
|
+
],
|
|
223
|
+
"queryHeads": 4,
|
|
224
|
+
"keyHeads": 1,
|
|
225
|
+
"headDim": 128,
|
|
226
|
+
"rotaryDim": 64,
|
|
227
|
+
"tokenBudget": 2048,
|
|
228
|
+
"compressRatio": 4,
|
|
229
|
+
"blockTopK": 512,
|
|
230
|
+
"denseVisibleLimit": 2051,
|
|
231
|
+
"normEps": 0.000001,
|
|
232
|
+
"tieOrder": "lower_block_index",
|
|
233
|
+
"forceSelfToken": false
|
|
234
|
+
},
|
|
235
|
+
"ngramEmbedding": {
|
|
236
|
+
"semantics": "qwen4_exp_ple",
|
|
237
|
+
"unigramVocabSize": 248320,
|
|
238
|
+
"ngramSize": 3,
|
|
239
|
+
"headsPerNgram": 8,
|
|
240
|
+
"headCount": 16,
|
|
241
|
+
"embedDim": 2560,
|
|
242
|
+
"headDim": 160,
|
|
243
|
+
"vocabSizeBase": 20000000,
|
|
244
|
+
"vocabPadMultiple": 128,
|
|
245
|
+
"seed": 1234,
|
|
246
|
+
"boundaryTokenId": 248044,
|
|
247
|
+
"convKernelSize": 4,
|
|
248
|
+
"convDilation": 3,
|
|
249
|
+
"convStateLength": 9,
|
|
250
|
+
"normEps": 0.000001,
|
|
251
|
+
"tableDtype": "bf16",
|
|
252
|
+
"layers": [
|
|
253
|
+
{
|
|
254
|
+
"sourceLayerId": 2,
|
|
255
|
+
"decoderLayerIndex": 1,
|
|
256
|
+
"pleLayerIndex": 0,
|
|
257
|
+
"multipliers": [
|
|
258
|
+
"23703573157769",
|
|
259
|
+
"20109073645365",
|
|
260
|
+
"8052911324071"
|
|
261
|
+
],
|
|
262
|
+
"headVocabSizes": [
|
|
263
|
+
20000003,
|
|
264
|
+
20000023,
|
|
265
|
+
20000033,
|
|
266
|
+
20000047,
|
|
267
|
+
20000059,
|
|
268
|
+
20000063,
|
|
269
|
+
20000069,
|
|
270
|
+
20000077,
|
|
271
|
+
20000081,
|
|
272
|
+
20000093,
|
|
273
|
+
20000107,
|
|
274
|
+
20000147,
|
|
275
|
+
20000153,
|
|
276
|
+
20000159,
|
|
277
|
+
20000161,
|
|
278
|
+
20000171
|
|
279
|
+
],
|
|
280
|
+
"headOffsets": [
|
|
281
|
+
0,
|
|
282
|
+
20000003,
|
|
283
|
+
40000026,
|
|
284
|
+
60000059,
|
|
285
|
+
80000106,
|
|
286
|
+
100000165,
|
|
287
|
+
120000228,
|
|
288
|
+
140000297,
|
|
289
|
+
160000374,
|
|
290
|
+
180000455,
|
|
291
|
+
200000548,
|
|
292
|
+
220000655,
|
|
293
|
+
240000802,
|
|
294
|
+
260000955,
|
|
295
|
+
280001114,
|
|
296
|
+
300001275
|
|
297
|
+
],
|
|
298
|
+
"unpaddedRows": 320001446,
|
|
299
|
+
"rows": 320001536
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"session": {
|
|
305
|
+
"compute": {
|
|
306
|
+
"defaults": {
|
|
307
|
+
"activationDtype": "f32",
|
|
308
|
+
"mathDtype": "f32",
|
|
309
|
+
"accumDtype": "f32",
|
|
310
|
+
"outputDtype": "f32"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"kvcache": {
|
|
314
|
+
"kvDtype": "f16",
|
|
315
|
+
"layout": "contiguous",
|
|
316
|
+
"maxSeqLen": 32768,
|
|
317
|
+
"pageSize": 256,
|
|
318
|
+
"tiering": {
|
|
319
|
+
"mode": "off",
|
|
320
|
+
"hotWindow": 1024,
|
|
321
|
+
"coldPageSize": 256,
|
|
322
|
+
"coldDtype": "f16",
|
|
323
|
+
"compression": {
|
|
324
|
+
"mode": "none",
|
|
325
|
+
"blockSize": 1,
|
|
326
|
+
"bitWidth": 4,
|
|
327
|
+
"prodMode": false
|
|
328
|
+
},
|
|
329
|
+
"gating": {
|
|
330
|
+
"mode": "auto",
|
|
331
|
+
"minAluBwRatio": 0
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"quantization": {
|
|
335
|
+
"mode": "none",
|
|
336
|
+
"bitWidth": 4,
|
|
337
|
+
"prodMode": false
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"decodeLoop": {
|
|
341
|
+
"batchSize": 1,
|
|
342
|
+
"stopCheckMode": "per-token",
|
|
343
|
+
"readbackInterval": 1,
|
|
344
|
+
"readbackMode": "sequential",
|
|
345
|
+
"submitLatencyThresholdMs": null,
|
|
346
|
+
"ringTokens": 1,
|
|
347
|
+
"ringStop": 1,
|
|
348
|
+
"ringStaging": 1,
|
|
349
|
+
"disableCommandBatching": false
|
|
350
|
+
},
|
|
351
|
+
"perLayerInputs": {
|
|
352
|
+
"materialization": "auto",
|
|
353
|
+
"rowCache": {
|
|
354
|
+
"mode": "lru",
|
|
355
|
+
"maxRows": 256,
|
|
356
|
+
"maxBytes": 134217728,
|
|
357
|
+
"decodedDtype": "f32"
|
|
358
|
+
},
|
|
359
|
+
"prefetch": {
|
|
360
|
+
"mode": "next_token",
|
|
361
|
+
"rowsAhead": 1
|
|
362
|
+
},
|
|
363
|
+
"gpuUpload": {
|
|
364
|
+
"mode": "per_step_slices",
|
|
365
|
+
"stagingRows": 2
|
|
366
|
+
},
|
|
367
|
+
"hotCache": {
|
|
368
|
+
"mode": "prepared_tokens",
|
|
369
|
+
"maxTokens": 1024,
|
|
370
|
+
"maxBytes": 134217728,
|
|
371
|
+
"outputDtype": "f32"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"speculation": {
|
|
375
|
+
"mode": "none",
|
|
376
|
+
"tokens": 1,
|
|
377
|
+
"verify": "greedy",
|
|
378
|
+
"threshold": null,
|
|
379
|
+
"rollbackOnReject": true
|
|
380
|
+
},
|
|
381
|
+
"prefillChunkSubmitMode": "async",
|
|
382
|
+
"useFlashPrefillAttention": false,
|
|
383
|
+
"useWideTileQ4KPrefill": false,
|
|
384
|
+
"retainQ4KMaterialization": false,
|
|
385
|
+
"useLinearAttentionABProjectionFusion": false,
|
|
386
|
+
"useLinearAttentionQKVZProjectionFusion": false,
|
|
387
|
+
"useLinearAttentionFusedDecodeCore": false,
|
|
388
|
+
"ngramEmbedding": {
|
|
389
|
+
"rowCache": {
|
|
390
|
+
"maxRows": 65536,
|
|
391
|
+
"maxBytes": 20971520,
|
|
392
|
+
"eviction": "lru"
|
|
393
|
+
},
|
|
394
|
+
"staging": {
|
|
395
|
+
"maxRows": 256
|
|
396
|
+
},
|
|
397
|
+
"reads": {
|
|
398
|
+
"maxConcurrent": 16
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"largeWeights": {
|
|
403
|
+
"gpuResidentOverrides": null
|
|
404
|
+
},
|
|
405
|
+
"execution": {
|
|
406
|
+
"inlineKernelPath": true,
|
|
407
|
+
"kernels": {
|
|
408
|
+
"embed": {
|
|
409
|
+
"kernel": "gather_f16.wgsl",
|
|
410
|
+
"entry": "main",
|
|
411
|
+
"digest": "sha256:a2c318bc362d676769d8cb751d61a4d7777e1068be0456eff634e0821d783c10"
|
|
412
|
+
},
|
|
413
|
+
"rmsnorm": {
|
|
414
|
+
"kernel": "rmsnorm.wgsl",
|
|
415
|
+
"entry": "main",
|
|
416
|
+
"digest": "sha256:4f4d144735bdff86b8567346ba7ea7b82fe68a2ac9656ba1577106158af9bc7c"
|
|
417
|
+
},
|
|
418
|
+
"q4_decode": {
|
|
419
|
+
"kernel": "fused_matmul_q4.wgsl",
|
|
420
|
+
"entry": "main_multicol",
|
|
421
|
+
"digest": "sha256:53d5573ae047f553dac3c226507c6e1d80a2a2a2939acb65acd8092dd229677b"
|
|
422
|
+
},
|
|
423
|
+
"q4_decode_gemv": {
|
|
424
|
+
"kernel": "fused_matmul_q4.wgsl",
|
|
425
|
+
"entry": "main_gemv",
|
|
426
|
+
"digest": "sha256:02029c2254c8ddb4c2051c4322e6b11ddbcf555e27d233e7fe73277edfa0f3f7"
|
|
427
|
+
},
|
|
428
|
+
"rope": {
|
|
429
|
+
"kernel": "rope.wgsl",
|
|
430
|
+
"entry": "main",
|
|
431
|
+
"digest": "sha256:923f9a96c941aee94119ecf04fa5b1508c77b7d927a7e6044ce6588b2d51a416"
|
|
432
|
+
},
|
|
433
|
+
"attn_decode": {
|
|
434
|
+
"kernel": "attention_decode_online_f16kv.wgsl",
|
|
435
|
+
"entry": "main",
|
|
436
|
+
"digest": "sha256:c6d9f8c614a2a088cb533958007896391efb3e348377dc8095c409944c562912",
|
|
437
|
+
"precision": {
|
|
438
|
+
"kvDtype": "f16"
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
"residual": {
|
|
442
|
+
"kernel": "residual.wgsl",
|
|
443
|
+
"entry": "main",
|
|
444
|
+
"digest": "sha256:abd19bc08ad668a7cad562e2bc0a4be1aa8827ad4300d8d474b7fc2af4c27117"
|
|
445
|
+
},
|
|
446
|
+
"silu": {
|
|
447
|
+
"kernel": "silu.wgsl",
|
|
448
|
+
"entry": "main",
|
|
449
|
+
"digest": "sha256:712787a59b032453b09f147be0d0c073266c47a7a12c3b746984aaf28075bedb",
|
|
450
|
+
"constants": {
|
|
451
|
+
"HAS_GATE": true
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
"q4_prefill": {
|
|
455
|
+
"kernel": "fused_matmul_q4_batched_multicol_shared.wgsl",
|
|
456
|
+
"entry": "main",
|
|
457
|
+
"digest": "sha256:142817adcacb28750a92793996cd15c2d9fe13d03e0c2d0aadf3e674dc7a35d6"
|
|
458
|
+
},
|
|
459
|
+
"q4_widetile": {
|
|
460
|
+
"kernel": "fused_matmul_q4_widetile.wgsl",
|
|
461
|
+
"entry": "main",
|
|
462
|
+
"digest": "sha256:c434473d64a163eddbb6fc349aec944e4bef6b067170acdf4d55daf92f1932bf"
|
|
463
|
+
},
|
|
464
|
+
"tiled": {
|
|
465
|
+
"kernel": "matmul_f16w_f32a.wgsl",
|
|
466
|
+
"entry": "main",
|
|
467
|
+
"digest": "sha256:027a8f1cd9713cbe0b0ada160bd175e0542bb90896ad85441b023522d9a1befc"
|
|
468
|
+
},
|
|
469
|
+
"attn_stream": {
|
|
470
|
+
"kernel": "attention_streaming_f16kv.wgsl",
|
|
471
|
+
"entry": "main",
|
|
472
|
+
"digest": "sha256:c3ec920699a81ee6df04a64eb0ea2477bec168ebb809af29f2d4b0924a4bdf8f",
|
|
473
|
+
"precision": {
|
|
474
|
+
"kvDtype": "f16"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
"attn_head256": {
|
|
478
|
+
"kernel": "attention_head256_f16kv.wgsl",
|
|
479
|
+
"entry": "main",
|
|
480
|
+
"digest": "sha256:4e1eafa0a5e407c99714d04f0e75f3834e1156bcb25579892f248d95aae197da",
|
|
481
|
+
"precision": {
|
|
482
|
+
"kvDtype": "f16"
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
"lm_head_gemv": {
|
|
486
|
+
"kernel": "matmul_gemv_subgroup.wgsl",
|
|
487
|
+
"entry": "main_multicol",
|
|
488
|
+
"digest": "sha256:e41f94574d5ac54dd2710036da5d5acc643a483b79b2d74b86825efdaaa7438f",
|
|
489
|
+
"constants": {
|
|
490
|
+
"MULTICOL_COLS_PER_WG": 64,
|
|
491
|
+
"MULTICOL_THREADS_PER_COL": 4
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"lm_head_q4": {
|
|
495
|
+
"kernel": "fused_matmul_q4.wgsl",
|
|
496
|
+
"entry": "main_gemv",
|
|
497
|
+
"digest": "sha256:02029c2254c8ddb4c2051c4322e6b11ddbcf555e27d233e7fe73277edfa0f3f7",
|
|
498
|
+
"constants": {
|
|
499
|
+
"COLS_PER_WG": 64,
|
|
500
|
+
"THREADS_PER_COL_GEMV": 4
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"sample": {
|
|
504
|
+
"kernel": "sample.wgsl",
|
|
505
|
+
"entry": "sample_single_pass",
|
|
506
|
+
"digest": "sha256:f2377b2a58c2eeb695a6f6f7ad877630bdba5e74d5dc1a8d919cd73b360d4870"
|
|
507
|
+
},
|
|
508
|
+
"gated_delta_conv": {
|
|
509
|
+
"kernel": "gated_delta_conv.wgsl",
|
|
510
|
+
"entry": "main",
|
|
511
|
+
"digest": "sha256:001fb6cbb3529bf2210406a522405d1b80acd6e0ecc09a67114cdb770103c92a"
|
|
512
|
+
},
|
|
513
|
+
"gated_delta_recurrent": {
|
|
514
|
+
"kernel": "gated_delta_recurrent_sigmoid_gate.wgsl",
|
|
515
|
+
"entry": "main",
|
|
516
|
+
"digest": "sha256:2762780beb433308de456dc8b046b8c13736192017289f28351b06d615de02e7"
|
|
517
|
+
},
|
|
518
|
+
"gated_delta_fused_decode": {
|
|
519
|
+
"kernel": "gated_delta_fused_decode_sigmoid_gate.wgsl",
|
|
520
|
+
"entry": "main",
|
|
521
|
+
"digest": "sha256:95d28751fc98f642a2c20dbec953f25f4c2fd7a025a57b15c621661e363f2176"
|
|
522
|
+
},
|
|
523
|
+
"source_control_f32": {
|
|
524
|
+
"kernel": "matmul_f32.wgsl",
|
|
525
|
+
"entry": "main",
|
|
526
|
+
"digest": "sha256:b665cf1ef18ebf1d6fe490b84e9d1e962c130ccd34bdfac5616ba0e2ddb783b8"
|
|
527
|
+
},
|
|
528
|
+
"hc_norm": {
|
|
529
|
+
"kernel": "hyper_connection_norm.wgsl",
|
|
530
|
+
"entry": "main",
|
|
531
|
+
"digest": "sha256:e2a043cd9550609292c3d6b0c83093fcf41f4a224d228196a50071a6672f2a5c"
|
|
532
|
+
},
|
|
533
|
+
"hc_low_rank_silu": {
|
|
534
|
+
"kernel": "hyper_connection_activation.wgsl",
|
|
535
|
+
"entry": "low_rank_silu",
|
|
536
|
+
"digest": "sha256:9dece66ec94aaacc5e818802866ce39573508ae866301e4a322c4a2443e23cfc"
|
|
537
|
+
},
|
|
538
|
+
"hc_mix_sigmoid": {
|
|
539
|
+
"kernel": "hyper_connection_activation.wgsl",
|
|
540
|
+
"entry": "mix_sigmoid",
|
|
541
|
+
"digest": "sha256:121cffdf685b8e189e9e3afa1f328220e8d1d3f4df5a5706c1ea17f0c923f4ea"
|
|
542
|
+
},
|
|
543
|
+
"hc_inject_gate": {
|
|
544
|
+
"kernel": "hyper_connection_activation.wgsl",
|
|
545
|
+
"entry": "inject_gate",
|
|
546
|
+
"digest": "sha256:a8b2d9e373ffb36982c5c4ef301eb0262937912533c9face2aff2bbb2bfd901b"
|
|
547
|
+
},
|
|
548
|
+
"hc_replicate": {
|
|
549
|
+
"kernel": "hyper_connection_activation.wgsl",
|
|
550
|
+
"entry": "replicate",
|
|
551
|
+
"digest": "sha256:8041d1cb07e33759971b7458410a828b7c6e10a091740952f1c7a22b9d97df3b"
|
|
552
|
+
},
|
|
553
|
+
"hc_branch": {
|
|
554
|
+
"kernel": "hyper_connection_branch.wgsl",
|
|
555
|
+
"entry": "main",
|
|
556
|
+
"digest": "sha256:b441f8dff1ba5e64d42c3165fad121fc271616e7a79dcb8979189e7a7c1f2dd3"
|
|
557
|
+
},
|
|
558
|
+
"hc_inject": {
|
|
559
|
+
"kernel": "hyper_connection_inject.wgsl",
|
|
560
|
+
"entry": "main",
|
|
561
|
+
"digest": "sha256:c242ee8bf5ea180ab3535357481a87495fb9f9973ae737427a7dfb4d95c7acef"
|
|
562
|
+
},
|
|
563
|
+
"qsa_prepare": {
|
|
564
|
+
"kernel": "qsa_prepare.wgsl",
|
|
565
|
+
"entry": "main",
|
|
566
|
+
"digest": "sha256:5b58df0c1bef2cfa9865aea4b98e6227cd186ac2c2e34ed953665f0f37cb15ab"
|
|
567
|
+
},
|
|
568
|
+
"qsa_block_keys": {
|
|
569
|
+
"kernel": "qsa_block_keys.wgsl",
|
|
570
|
+
"entry": "main",
|
|
571
|
+
"digest": "sha256:ad046522ad0f52554bf1fdbccf7c296f684d8bc15cd2002c9c4775eb2191e8bb"
|
|
572
|
+
},
|
|
573
|
+
"qsa_block_scores": {
|
|
574
|
+
"kernel": "qsa_block_scores.wgsl",
|
|
575
|
+
"entry": "main",
|
|
576
|
+
"digest": "sha256:b6450ae43cdeacaf310b43c04b7b9f31a6b85e59e1206ae4950cc8ebfedcd76e"
|
|
577
|
+
},
|
|
578
|
+
"qsa_select": {
|
|
579
|
+
"kernel": "qsa_select.wgsl",
|
|
580
|
+
"entry": "main",
|
|
581
|
+
"digest": "sha256:db9c80e041e28c6fddd467a53e937a2d74fa841701be6d6b668a6ad89f823210"
|
|
582
|
+
},
|
|
583
|
+
"attn_indexed": {
|
|
584
|
+
"kernel": "attention_indexed_f16kv.wgsl",
|
|
585
|
+
"entry": "main",
|
|
586
|
+
"digest": "sha256:30d1f6cb9f4acbdc5830259827c5a683a66d5c1ec0edc5edde0237506e793ee2"
|
|
587
|
+
},
|
|
588
|
+
"ple_row_decode": {
|
|
589
|
+
"kernel": "bf16_to_f32.wgsl",
|
|
590
|
+
"entry": "main",
|
|
591
|
+
"digest": "sha256:af76a5df2921f3b9549629c84b928efd1256b5241724f384ab6836c31d1064d0"
|
|
592
|
+
},
|
|
593
|
+
"ple_gate": {
|
|
594
|
+
"kernel": "ple_gate.wgsl",
|
|
595
|
+
"entry": "main",
|
|
596
|
+
"digest": "sha256:593930fca9adc066ca80e306daae6a68af243d6e57dc0a90cb4e626fcf8fdfe4"
|
|
597
|
+
},
|
|
598
|
+
"ple_conv": {
|
|
599
|
+
"kernel": "ple_conv.wgsl",
|
|
600
|
+
"entry": "main",
|
|
601
|
+
"digest": "sha256:fc7090a4943a2385afd41d3d142a39807047d3d56b22a218ca80d0a460150940"
|
|
602
|
+
},
|
|
603
|
+
"moe_topk": {
|
|
604
|
+
"kernel": "softmax_topk_strided.wgsl",
|
|
605
|
+
"entry": "main",
|
|
606
|
+
"digest": "sha256:6649f298ff43d545a1f217d584b69f234839cfea4991eaaf3570dbeae9f71f5d",
|
|
607
|
+
"constants": {
|
|
608
|
+
"MAX_EXPERTS": 512
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
"preLayer": [
|
|
613
|
+
[
|
|
614
|
+
"embed",
|
|
615
|
+
"embed",
|
|
616
|
+
"embed_tokens"
|
|
617
|
+
]
|
|
618
|
+
],
|
|
619
|
+
"decode": [
|
|
620
|
+
[
|
|
621
|
+
"input_norm",
|
|
622
|
+
"rmsnorm"
|
|
623
|
+
],
|
|
624
|
+
[
|
|
625
|
+
"q_proj",
|
|
626
|
+
"q4_decode_gemv",
|
|
627
|
+
"layer.{L}.self_attn.q_proj"
|
|
628
|
+
],
|
|
629
|
+
[
|
|
630
|
+
"k_proj",
|
|
631
|
+
"q4_decode_gemv",
|
|
632
|
+
"layer.{L}.self_attn.k_proj"
|
|
633
|
+
],
|
|
634
|
+
[
|
|
635
|
+
"v_proj",
|
|
636
|
+
"q4_decode_gemv",
|
|
637
|
+
"layer.{L}.self_attn.v_proj"
|
|
638
|
+
],
|
|
639
|
+
[
|
|
640
|
+
"rope_q",
|
|
641
|
+
"rope"
|
|
642
|
+
],
|
|
643
|
+
[
|
|
644
|
+
"rope_k",
|
|
645
|
+
"rope"
|
|
646
|
+
],
|
|
647
|
+
[
|
|
648
|
+
"attention",
|
|
649
|
+
"attn_decode"
|
|
650
|
+
],
|
|
651
|
+
[
|
|
652
|
+
"o_proj",
|
|
653
|
+
"q4_decode_gemv",
|
|
654
|
+
"layer.{L}.self_attn.o_proj"
|
|
655
|
+
],
|
|
656
|
+
[
|
|
657
|
+
"attn_residual",
|
|
658
|
+
"residual"
|
|
659
|
+
],
|
|
660
|
+
[
|
|
661
|
+
"post_attn_norm",
|
|
662
|
+
"rmsnorm"
|
|
663
|
+
],
|
|
664
|
+
[
|
|
665
|
+
"gate_proj",
|
|
666
|
+
"q4_decode_gemv",
|
|
667
|
+
"layer.{L}.mlp.gate_proj"
|
|
668
|
+
],
|
|
669
|
+
[
|
|
670
|
+
"up_proj",
|
|
671
|
+
"q4_decode_gemv",
|
|
672
|
+
"layer.{L}.mlp.up_proj"
|
|
673
|
+
],
|
|
674
|
+
[
|
|
675
|
+
"activation",
|
|
676
|
+
"silu"
|
|
677
|
+
],
|
|
678
|
+
[
|
|
679
|
+
"down_proj",
|
|
680
|
+
"q4_decode_gemv",
|
|
681
|
+
"layer.{L}.mlp.down_proj"
|
|
682
|
+
],
|
|
683
|
+
[
|
|
684
|
+
"ffn_residual",
|
|
685
|
+
"residual"
|
|
686
|
+
],
|
|
687
|
+
[
|
|
688
|
+
"moe_router",
|
|
689
|
+
"source_control_f32",
|
|
690
|
+
"layer.{L}.mlp.gate"
|
|
691
|
+
],
|
|
692
|
+
[
|
|
693
|
+
"moe_topk",
|
|
694
|
+
"moe_topk"
|
|
695
|
+
],
|
|
696
|
+
[
|
|
697
|
+
"moe_shared_router",
|
|
698
|
+
"source_control_f32",
|
|
699
|
+
"layer.{L}.mlp.shared_expert_gate"
|
|
700
|
+
],
|
|
701
|
+
[
|
|
702
|
+
"linear_a_proj",
|
|
703
|
+
"source_control_f32",
|
|
704
|
+
"layer.{L}.linear_attn.in_proj_a"
|
|
705
|
+
],
|
|
706
|
+
[
|
|
707
|
+
"linear_b_proj",
|
|
708
|
+
"source_control_f32",
|
|
709
|
+
"layer.{L}.linear_attn.in_proj_b"
|
|
710
|
+
],
|
|
711
|
+
[
|
|
712
|
+
"attn_hc_down",
|
|
713
|
+
"source_control_f32",
|
|
714
|
+
"layer.{L}.attn_hyper_connection.input_mix_weight_down"
|
|
715
|
+
],
|
|
716
|
+
[
|
|
717
|
+
"attn_hc_up",
|
|
718
|
+
"source_control_f32",
|
|
719
|
+
"layer.{L}.attn_hyper_connection.input_mix_weight_up"
|
|
720
|
+
],
|
|
721
|
+
[
|
|
722
|
+
"attn_hc_inject",
|
|
723
|
+
"source_control_f32",
|
|
724
|
+
"layer.{L}.attn_hyper_connection.block_inject_weight"
|
|
725
|
+
],
|
|
726
|
+
[
|
|
727
|
+
"mlp_hc_down",
|
|
728
|
+
"source_control_f32",
|
|
729
|
+
"layer.{L}.mlp_hyper_connection.input_mix_weight_down"
|
|
730
|
+
],
|
|
731
|
+
[
|
|
732
|
+
"mlp_hc_up",
|
|
733
|
+
"source_control_f32",
|
|
734
|
+
"layer.{L}.mlp_hyper_connection.input_mix_weight_up"
|
|
735
|
+
],
|
|
736
|
+
[
|
|
737
|
+
"mlp_hc_inject",
|
|
738
|
+
"source_control_f32",
|
|
739
|
+
"layer.{L}.mlp_hyper_connection.block_inject_weight"
|
|
740
|
+
],
|
|
741
|
+
{
|
|
742
|
+
"layers": [
|
|
743
|
+
3,
|
|
744
|
+
7,
|
|
745
|
+
11,
|
|
746
|
+
15,
|
|
747
|
+
19,
|
|
748
|
+
23,
|
|
749
|
+
27,
|
|
750
|
+
31,
|
|
751
|
+
35,
|
|
752
|
+
39,
|
|
753
|
+
43,
|
|
754
|
+
47
|
|
755
|
+
],
|
|
756
|
+
"steps": [
|
|
757
|
+
[
|
|
758
|
+
"qsa_index_qk",
|
|
759
|
+
"source_control_f32",
|
|
760
|
+
"layer.{L}.self_attn.indexer.index_qk_proj"
|
|
761
|
+
]
|
|
762
|
+
]
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"layers": [
|
|
766
|
+
1
|
|
767
|
+
],
|
|
768
|
+
"steps": [
|
|
769
|
+
[
|
|
770
|
+
"ple_key_proj",
|
|
771
|
+
"source_control_f32",
|
|
772
|
+
"layer.{L}.ple.key_proj"
|
|
773
|
+
],
|
|
774
|
+
[
|
|
775
|
+
"ple_value_proj",
|
|
776
|
+
"source_control_f32",
|
|
777
|
+
"layer.{L}.ple.value_proj"
|
|
778
|
+
]
|
|
779
|
+
]
|
|
780
|
+
}
|
|
781
|
+
],
|
|
782
|
+
"prefill": [
|
|
783
|
+
[
|
|
784
|
+
"input_norm",
|
|
785
|
+
"rmsnorm"
|
|
786
|
+
],
|
|
787
|
+
[
|
|
788
|
+
"q_proj",
|
|
789
|
+
"q4_widetile",
|
|
790
|
+
"layer.{L}.self_attn.q_proj"
|
|
791
|
+
],
|
|
792
|
+
[
|
|
793
|
+
"k_proj",
|
|
794
|
+
"q4_widetile",
|
|
795
|
+
"layer.{L}.self_attn.k_proj"
|
|
796
|
+
],
|
|
797
|
+
[
|
|
798
|
+
"v_proj",
|
|
799
|
+
"q4_widetile",
|
|
800
|
+
"layer.{L}.self_attn.v_proj"
|
|
801
|
+
],
|
|
802
|
+
[
|
|
803
|
+
"rope_q",
|
|
804
|
+
"rope"
|
|
805
|
+
],
|
|
806
|
+
[
|
|
807
|
+
"rope_k",
|
|
808
|
+
"rope"
|
|
809
|
+
],
|
|
810
|
+
[
|
|
811
|
+
"attention",
|
|
812
|
+
"attn_head256"
|
|
813
|
+
],
|
|
814
|
+
[
|
|
815
|
+
"o_proj",
|
|
816
|
+
"q4_widetile",
|
|
817
|
+
"layer.{L}.self_attn.o_proj"
|
|
818
|
+
],
|
|
819
|
+
[
|
|
820
|
+
"attn_residual",
|
|
821
|
+
"residual"
|
|
822
|
+
],
|
|
823
|
+
[
|
|
824
|
+
"post_attn_norm",
|
|
825
|
+
"rmsnorm"
|
|
826
|
+
],
|
|
827
|
+
[
|
|
828
|
+
"gate_proj",
|
|
829
|
+
"q4_widetile",
|
|
830
|
+
"layer.{L}.mlp.gate_proj"
|
|
831
|
+
],
|
|
832
|
+
[
|
|
833
|
+
"up_proj",
|
|
834
|
+
"q4_widetile",
|
|
835
|
+
"layer.{L}.mlp.up_proj"
|
|
836
|
+
],
|
|
837
|
+
[
|
|
838
|
+
"activation",
|
|
839
|
+
"silu"
|
|
840
|
+
],
|
|
841
|
+
[
|
|
842
|
+
"down_proj",
|
|
843
|
+
"q4_widetile",
|
|
844
|
+
"layer.{L}.mlp.down_proj"
|
|
845
|
+
],
|
|
846
|
+
[
|
|
847
|
+
"ffn_residual",
|
|
848
|
+
"residual"
|
|
849
|
+
],
|
|
850
|
+
[
|
|
851
|
+
"moe_router",
|
|
852
|
+
"source_control_f32",
|
|
853
|
+
"layer.{L}.mlp.gate"
|
|
854
|
+
],
|
|
855
|
+
[
|
|
856
|
+
"moe_topk",
|
|
857
|
+
"moe_topk"
|
|
858
|
+
],
|
|
859
|
+
[
|
|
860
|
+
"moe_shared_router",
|
|
861
|
+
"source_control_f32",
|
|
862
|
+
"layer.{L}.mlp.shared_expert_gate"
|
|
863
|
+
],
|
|
864
|
+
[
|
|
865
|
+
"linear_a_proj",
|
|
866
|
+
"source_control_f32",
|
|
867
|
+
"layer.{L}.linear_attn.in_proj_a"
|
|
868
|
+
],
|
|
869
|
+
[
|
|
870
|
+
"linear_b_proj",
|
|
871
|
+
"source_control_f32",
|
|
872
|
+
"layer.{L}.linear_attn.in_proj_b"
|
|
873
|
+
],
|
|
874
|
+
[
|
|
875
|
+
"attn_hc_down",
|
|
876
|
+
"source_control_f32",
|
|
877
|
+
"layer.{L}.attn_hyper_connection.input_mix_weight_down"
|
|
878
|
+
],
|
|
879
|
+
[
|
|
880
|
+
"attn_hc_up",
|
|
881
|
+
"source_control_f32",
|
|
882
|
+
"layer.{L}.attn_hyper_connection.input_mix_weight_up"
|
|
883
|
+
],
|
|
884
|
+
[
|
|
885
|
+
"attn_hc_inject",
|
|
886
|
+
"source_control_f32",
|
|
887
|
+
"layer.{L}.attn_hyper_connection.block_inject_weight"
|
|
888
|
+
],
|
|
889
|
+
[
|
|
890
|
+
"mlp_hc_down",
|
|
891
|
+
"source_control_f32",
|
|
892
|
+
"layer.{L}.mlp_hyper_connection.input_mix_weight_down"
|
|
893
|
+
],
|
|
894
|
+
[
|
|
895
|
+
"mlp_hc_up",
|
|
896
|
+
"source_control_f32",
|
|
897
|
+
"layer.{L}.mlp_hyper_connection.input_mix_weight_up"
|
|
898
|
+
],
|
|
899
|
+
[
|
|
900
|
+
"mlp_hc_inject",
|
|
901
|
+
"source_control_f32",
|
|
902
|
+
"layer.{L}.mlp_hyper_connection.block_inject_weight"
|
|
903
|
+
],
|
|
904
|
+
{
|
|
905
|
+
"layers": [
|
|
906
|
+
3,
|
|
907
|
+
7,
|
|
908
|
+
11,
|
|
909
|
+
15,
|
|
910
|
+
19,
|
|
911
|
+
23,
|
|
912
|
+
27,
|
|
913
|
+
31,
|
|
914
|
+
35,
|
|
915
|
+
39,
|
|
916
|
+
43,
|
|
917
|
+
47
|
|
918
|
+
],
|
|
919
|
+
"steps": [
|
|
920
|
+
[
|
|
921
|
+
"qsa_index_qk",
|
|
922
|
+
"source_control_f32",
|
|
923
|
+
"layer.{L}.self_attn.indexer.index_qk_proj"
|
|
924
|
+
]
|
|
925
|
+
]
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"layers": [
|
|
929
|
+
1
|
|
930
|
+
],
|
|
931
|
+
"steps": [
|
|
932
|
+
[
|
|
933
|
+
"ple_key_proj",
|
|
934
|
+
"source_control_f32",
|
|
935
|
+
"layer.{L}.ple.key_proj"
|
|
936
|
+
],
|
|
937
|
+
[
|
|
938
|
+
"ple_value_proj",
|
|
939
|
+
"source_control_f32",
|
|
940
|
+
"layer.{L}.ple.value_proj"
|
|
941
|
+
]
|
|
942
|
+
]
|
|
943
|
+
}
|
|
944
|
+
],
|
|
945
|
+
"postLayer": [
|
|
946
|
+
[
|
|
947
|
+
"hc_mixer_down",
|
|
948
|
+
"source_control_f32",
|
|
949
|
+
"hyper_connection_mixer.input_mix_weight_down"
|
|
950
|
+
],
|
|
951
|
+
[
|
|
952
|
+
"hc_mixer_up",
|
|
953
|
+
"source_control_f32",
|
|
954
|
+
"hyper_connection_mixer.input_mix_weight_up"
|
|
955
|
+
],
|
|
956
|
+
[
|
|
957
|
+
"lm_head",
|
|
958
|
+
"tiled",
|
|
959
|
+
"lm_head"
|
|
960
|
+
],
|
|
961
|
+
[
|
|
962
|
+
"lm_head_prefill",
|
|
963
|
+
"tiled",
|
|
964
|
+
"lm_head"
|
|
965
|
+
],
|
|
966
|
+
[
|
|
967
|
+
"sample",
|
|
968
|
+
"sample"
|
|
969
|
+
]
|
|
970
|
+
],
|
|
971
|
+
"policies": {
|
|
972
|
+
"unsupportedPrecision": "error",
|
|
973
|
+
"dtypeTransition": "require_cast_step",
|
|
974
|
+
"unresolvedKernel": "error"
|
|
975
|
+
},
|
|
976
|
+
"mechanismKernels": [
|
|
977
|
+
"gated_delta_conv",
|
|
978
|
+
"gated_delta_recurrent",
|
|
979
|
+
"gated_delta_fused_decode",
|
|
980
|
+
"hc_norm",
|
|
981
|
+
"hc_low_rank_silu",
|
|
982
|
+
"hc_mix_sigmoid",
|
|
983
|
+
"hc_inject_gate",
|
|
984
|
+
"hc_replicate",
|
|
985
|
+
"hc_branch",
|
|
986
|
+
"hc_inject",
|
|
987
|
+
"qsa_prepare",
|
|
988
|
+
"qsa_block_keys",
|
|
989
|
+
"qsa_block_scores",
|
|
990
|
+
"qsa_select",
|
|
991
|
+
"attn_indexed",
|
|
992
|
+
"ple_row_decode",
|
|
993
|
+
"ple_gate",
|
|
994
|
+
"ple_conv"
|
|
995
|
+
]
|
|
996
|
+
},
|
|
997
|
+
"sourceTensors": {
|
|
998
|
+
"requireAll": false,
|
|
999
|
+
"rules": [
|
|
1000
|
+
{
|
|
1001
|
+
"kind": "ignore",
|
|
1002
|
+
"match": "^mtp\\.",
|
|
1003
|
+
"expectedMatches": 31,
|
|
1004
|
+
"reason": "Multi-token-prediction head; this text profile decodes one token per step and declares no speculation."
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"kind": "ignore",
|
|
1008
|
+
"match": "^model\\.visual\\.",
|
|
1009
|
+
"expectedMatches": 333,
|
|
1010
|
+
"reason": "Vision encoder; this profile is text-only."
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"kind": "ignore",
|
|
1014
|
+
"match": "^model\\.language_model\\.layers\\.1\\.ple\\.ple_embedding\\.(layer_multipliers|ngram_heads_offsets|ngram_heads_vocab_sizes)$",
|
|
1015
|
+
"expectedMatches": 3,
|
|
1016
|
+
"reason": "I64 n-gram hashing buffers; authenticated against inference.ngramEmbedding and retained in manifest.conversion.sourceBuffers before rules apply."
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"kind": "retain",
|
|
1020
|
+
"match": "^model\\.language_model\\.layers\\.1\\.ple\\.ple_embedding\\.ngram_embedding\\.shard_\\d+\\.weight$",
|
|
1021
|
+
"expectedMatches": 128,
|
|
1022
|
+
"role": "ngram_table",
|
|
1023
|
+
"group": "ngram_table",
|
|
1024
|
+
"files": {
|
|
1025
|
+
"model-00005-of-00131.safetensors": "54fdc7adf431d6b94d9292fc8bd7938d906b0cffe0997d76ac1a176413aa80f2",
|
|
1026
|
+
"model-00006-of-00131.safetensors": "8277a48e1fd7ab7ff7f0282befcc6eb4e09ab2e0780c00af6685e198faba233e",
|
|
1027
|
+
"model-00007-of-00131.safetensors": "0fba369354e45b43efbe2773d63b7cb20caedb56ff9ed80e076bbcdaf560666a",
|
|
1028
|
+
"model-00008-of-00131.safetensors": "024f59b6f2cb27ab79a4267cff9603c398ef1a7ef9ba76009fd34a0a84a9455e",
|
|
1029
|
+
"model-00009-of-00131.safetensors": "23fbef154f7f68e5b6f555492832c78822a827554757797daf91de48df06b496",
|
|
1030
|
+
"model-00010-of-00131.safetensors": "b3a303529a190c6661870d5abebf0ac18d36922a1da8db737d19f55bd1031fe8",
|
|
1031
|
+
"model-00011-of-00131.safetensors": "d1215943b48481febb33a1129c96613dec5f364613a2cc3ba1e27c23be0ca78a",
|
|
1032
|
+
"model-00012-of-00131.safetensors": "f63d649ea84867ec75884dace5ea4d8c723a6560463674a6ee0ce621b4b9dbc1",
|
|
1033
|
+
"model-00013-of-00131.safetensors": "5e0f0fb335f4c19a0158f60294e5b5c30bdfc344b003633c9c42e5e638a6808e",
|
|
1034
|
+
"model-00014-of-00131.safetensors": "5ee73bd21c73b2610d2a30924f7acd24e63b1ca29e0a1f1c87f0f6a9648e347a",
|
|
1035
|
+
"model-00015-of-00131.safetensors": "b35421bf21724db705a38ee9f779de07f9f1711be964049942960c5e3dddb1c2",
|
|
1036
|
+
"model-00016-of-00131.safetensors": "73c4b1bd1f3752d70f0161ec8c8a7701f0538e1ae722daf16a905e04a666e69f",
|
|
1037
|
+
"model-00017-of-00131.safetensors": "ee60c1269974cc797bad8bfc9a0fac72437b323ceafcb225cef6980ecffce1b3",
|
|
1038
|
+
"model-00018-of-00131.safetensors": "72cf3696aa1af4611b2da2b013868f3724082362899d9dce3e9fec908d441fc2",
|
|
1039
|
+
"model-00019-of-00131.safetensors": "bdad649be407bd8033a4abd6a24bf434ed6a173807892d18cc1c9771031bfd0c",
|
|
1040
|
+
"model-00020-of-00131.safetensors": "2258dad55787922f1d4429aea528495511f58447baa9b4f1b7f92f58ba7110b0",
|
|
1041
|
+
"model-00021-of-00131.safetensors": "775952ac572fa4ff7e5e316ecb60483d4dd96f4369d6a7a403fa31d7f9d1a6d0",
|
|
1042
|
+
"model-00022-of-00131.safetensors": "7d205070bb898c59d23bc379652607911f39e219627028a29d82e8e8fecab7c0",
|
|
1043
|
+
"model-00023-of-00131.safetensors": "598d4f772853233b88911fdb1a49f8865e3c732e93b17aea44b65f455e69e9dc",
|
|
1044
|
+
"model-00024-of-00131.safetensors": "09e534942e7d4eb31803b347e14dd70090f16f85c89b0ad766bdace135806f12",
|
|
1045
|
+
"model-00025-of-00131.safetensors": "482d18f0e515c23c6933593d0cce289770600c6fa539168bd304e2169cc8a2be",
|
|
1046
|
+
"model-00026-of-00131.safetensors": "ac479fe29ed3e03b7c3523974371d68dace22b7744ff9236f9429cdbb9241da0",
|
|
1047
|
+
"model-00027-of-00131.safetensors": "4981d4e636723dbb063f04854e4362c1fe341d9ba80b5bb4231bb0d5ee8ab266",
|
|
1048
|
+
"model-00028-of-00131.safetensors": "1b45a957b1f3572d325b0795f549fb772c160bd5c5167f94a347b96e3c7b978d",
|
|
1049
|
+
"model-00029-of-00131.safetensors": "40d2f2291ff4800373087cd00f1f95c3bd69331c32f39cfdd5d43516764b03ec",
|
|
1050
|
+
"model-00030-of-00131.safetensors": "893a9b59e412a3242252274770efe0794ce8b216b2b3907b6854b7eaa6ddd334",
|
|
1051
|
+
"model-00031-of-00131.safetensors": "9b6bf01d60f21bed295b9b1d43501593b4ce7ece28aaf75618b4fb58039c0d04",
|
|
1052
|
+
"model-00032-of-00131.safetensors": "7453fcb5872160888730439ac71a5279d348686d68c6ba2d62ff12461443dc69",
|
|
1053
|
+
"model-00033-of-00131.safetensors": "5b2f577ce40932031c4749f9177dab2119ff118f9f9b9df3d0d5e57c8e41d128",
|
|
1054
|
+
"model-00034-of-00131.safetensors": "35b5522668652e8cc7d8eacb0d45c59eb9ed9786e9102a9b71503f746f50da64",
|
|
1055
|
+
"model-00035-of-00131.safetensors": "4fe611218d36ff7c06e4c24f7252215fdddc879ac3de2b1d569727ed31f82db1",
|
|
1056
|
+
"model-00036-of-00131.safetensors": "237789c0cef556ef22c9f1ca99b7baf71b33a56b70c5828380e1008e02510649",
|
|
1057
|
+
"model-00037-of-00131.safetensors": "73b53c94d23589bdfde55b20538a515525f22fd37c7cdf24e85738ed771218e1"
|
|
1058
|
+
},
|
|
1059
|
+
"reason": "The 95.4 GiB BF16 n-gram table is read row-by-row in place; its checkpoint files become artifact shards pinned by their Hugging Face LFS SHA-256."
|
|
1060
|
+
}
|
|
1061
|
+
]
|
|
1062
|
+
}
|
|
1063
|
+
}
|