Repository navigation
dsv41 metal: image prompts - #3926
Conversation
|
Thanks @gilby for the clean replacement of #1722. We reviewed it as a first review here and have nothing to change in the code:
CI is green at this head. One check is ours before it lands: since the image path follows DeepSeek's released
|
|
Thanks @gilby for the clean replacement of #1722. We reviewed it as a first review here and have nothing to change in the code:
Today's main differs only in
|
|
[Joshua's agent] Reporting the comparison the 08:38Z review kept as ours before landing: we fetched DeepSeek's released |
f3cf1a5 to
c479345
Compare
|
Thanks @gilby. Nothing is left from your side: the comparison we owed came back an adaptation, not a copy, formula for formula as your notice pins it, and the checks were green at the reviewed head. Main has moved in the two dsv41 Metal files, so we take the short rebase with the queue as planned; the changelog entry rides with it.
|
c479345 to
f36d416
Compare
|
I hit a compile blocker on the current In a scratch copy I passed zig build test-dsv41-metal-all test-dsv41-metal-prepare test-dsv41-serve-host \
test-dsv41-shared test-dsv41-draft -Dcpu=apple_m1 -j5 --summary allThe synthetic PNG request matched the direct target and resumed from 77 cached rows. The two-image resume matched a fresh run, and the tower and aligner passed the float64 checks. The release-weight vision check was outside this run. Igor Lessio - AIFLOW LABS |
The ViT and aligner on Metal (--vision), bias_vl routing for image rows, Engram shut on image tokens, an image span prefilled in one chunk, and the prompt cache keyed by the image's hash. The server writes the template's image token for an image part when the engine reads images, and refuses the reserved mark in request text.
…nerate vision configs
f36d416 to
1787b42
Compare
|
Thank you @gilby. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
|
I reran this after the merge at In a scratch checkout of current main, changing just that argument from zig build test-dsv41-metal-vision test-dsv41-metal-prepare -Dcpu=apple_m1 -j4 --summary allThe synthetic tower checks passed, and resuming past two images matched a fresh run. The cast fits the existing guard: Igor Lessio - AIFLOW LABS |
What this changes
Clean replacement for #1722 on current
main(6db2561b18, headf3cf1a5b9— four commits matching the reviewed #1722 commits plus the updated#3926changelog line), as agreed in #1722 (comment). (git range-diffagainst #1722 shows only the two adjacent build/test import neighbor lines inzig/build/dsv41_metal.zigandzig/tests/dsv41_metal/layer_test.zig, with the image-prompt patches and notices unchanged.) Replaces #1722 for #1676 now that #1720 and #1721 have merged ontomain:--vision),bias_vlrouting for image rows, Engram skipped on image tokens, image spans prefilled in one chunk, prompt cache keyed by image hash, and the server's image token rendered with template provenance.contain()(@max(1, roundEven(...))) so 1xN / Nx1 inputs under small budgets do not divide by zero inresample.into, pluscheck()refusals fornum_attention_heads: 0,max_wh_ratio: 0,downsample_ratio < 2, and explicit budget 1–4 error wording.THIRD_PARTY_NOTICES.mdattribution for DeepSeek'sinference/image_processor.py(08c8657f02291e11b6f6b63e0e16014f8e748518) and theCHANGELOG.mdentry underUnreleased.Receipt
main6db2561b18(native Zig0.17.0); Apple M5 Ultra (macOS) for current head kernel contract, device suites, host tests, and goldens; full-model and release-weight receipts below carried forward unchanged from dsv41 metal: image prompts #1722 / dsv41 metal: the lane target, the prompt cache and the native server over Metal #1720 per #1722 (comment) (Apple M3 Ultra 80-core GPU 512 GB and Apple M5 Ultra 512 GB, checkpointdeepseek-ai/DeepSeek-V4.1-Flash-1017)../zig-out/bin/tf-kernel-contract --only dsv41, Apple M5 Ultra):SUMMARY 107 kernels: 107 pass gates 1-4, 0 fail, 0 known findings; 205 controls: 205 red as planted, 0 missed; 0 limit problems; gates 128076 ms, limits 404 ms-Dcpu=apple_m1, Apple M5 Ultra):zig build test-dsv41-metal-all test-dsv41-metal-prepare test-dsv41-serve-host test-dsv41-shared test-dsv41-draft: exit 0 (test-dsv41-metal38/38 + 28/28,test-dsv41-metal-vision5/5,test-dsv41-metal-serve,test-dsv41-metal-prepare,test-dsv41-serve-host,test-dsv41-shared,test-dsv41-draftall pass).zig build test test-golden dev-tools: exit 0 (55/55auth goldens and322/335server goldens with0unexpected differences;328fixtures,234DeepSeek chat golden cases).zig fmt --check build.zig zig&git diff --check: clean;tools/pr_check.py:0 error(s), 0 warning(s),0new lean findings (191 vs 191).TF_DSV41_REAL(layers 2 and 21 vs float64, 4/4 tests each, mapped == copied bit-for-bit at 4 rows) andTF_DSV41_REAL_VISION(14/14vs float64 on 32/32 blocks and 6x9 grid,image_start/image_end/image_newline, prompt chunk/cache checks with0differing logits/taps/state bytes).deepseek-ai/DeepSeek-V4.1-Flash-1017(bench_concurrent.py--alone --serialequaltoken_sha256across 1/2/3/4 streams and T=0/1;--require-cold --require-reuse32,768 tokens).Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo.docs/kernel-contract.md); each backend'sSUMMARYline is in the receipt.