mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #442] [CLOSED] DeepSeek-V4.1: 512K and 1M contexts in setup and the dashboard #526
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#526
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mw00/project-maya/pull/442
Author: @needmorevram
Created: 10/24/2026
Status: ❌ Closed
Base:
main← Head:ds4-1m-context📝 Commits (1)
abc24fdDeepSeek-V4.1: 512K and 1M contexts in setup and the dashboard (the model's native reach)📊 Changes
6 files changed (+81 additions, -7 deletions)
View changed files
📝
docs/SETUP.md(+3 -2)📝
maya.py(+10 -2)📝
serve/server.py(+25 -1)📝
serve/test_dashboard.py(+25 -1)📝
serve/web/app.js(+2 -1)📝
tools/test_setup_ds4.py(+16 -0)📄 Description
DeepSeek-V4.1-Flash-1017 reads 1,048,576 positions natively (its config's
max_position_embeddings). Setup and the dashboard stopped at 256K; this offers 512K and 1M too.What changes
./maya.sh): DeepSeek's context choices are 32K-1M, shown as "512K" and "1M";--contexttakes 524288 and 1048576.ds4.txt'smax_position_embeddings; a pack without it works as before);/api/contextgainstested).docs/SETUP.md: the new contexts and what they cost. That's about 1.1 KB of VRAM a position on each GPU of a tensor-parallel group, taken from the expert cache. A prompt that long also reads slowly, since the indexer's work grows with the square of its length.Nothing in the engine changes, and no RoPE scaling is added: the model's own settings already cover 1M.
Tested
Needle in a haystack through the server at
--tp 8(9 GPUs, LibertAIDAI's 3.5-bit quant,--max-context 1048576). The haystack is this repo's own files (no repeated filler), with three door codes hidden at 10%, 50% and 90% of it and one question for all three at the end; each prompt starts with its own header, so nothing is reused from a cache.The 1M run used v1.1.26's engine with
--prefill-chunk 2048; the two shorter ones the engine as #344 merged it.serve.test_dashboardandtools.test_setup_ds4pass (82 tests), including new ones for the pack's limit,/api/context, 1M accepted and 2M refused, and setup's choices.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.