Answer: You can override the context length for all models with `context_window`, or per model with `max_tokens` in `available_models`. Status: Overdue (check was due 2026-11-20T13:39:07Z and has not succeeded) Entry: tool/zed/models/llamacpp-context-length Revision: 1 Digest: sha256:8b919e5d29924cba (changes whenever the content changes) Timeline: Created: 2026-11-13T04:00:42Z Last changed: 2026-11-13T04:00:42Z Last verified: 2026-11-19T13:39:07Z Next check: 2026-11-20T13:39:07Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of global override setting | context_window | [1] | 2026-11-19 per-model setting | max_tokens | [1] | 2026-11-19 example context_window value | 8192 | [1] | 2026-11-19 Sources: [1] Zed Industries. "zed.dev/docs/ai/use-a-local-model.md". https://zed.dev/docs/ai/use-a-local-model.md Role: primary. Accessed: 2026-11-19T13:39:07Z Quote: "Override it for all models with `context_window`, or per model with `max_tokens` in `available_models`" (Supports: global override setting, per-model setting) Quote: ""context_window": 8192" (Supports: example context_window value) Snapshot SHA-256: f6045bc52ae2d417e103465270e31b0df0bfc31d0f14e5274be0f7987abd3ed3 (captured 2026-11-13T04:00:41Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T04:00:42Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:39:07Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:39:07Z Last attempt: 2026-11-19T13:39:07Z Notes and limitations: Extracted automatically from a single official source (section "llama.cpp Context Length {#llama-cpp-context}"). Human-readable page: https://zed.dev/docs/ai/use-a-local-model.html Related: https://latestn.com/tool/zed/models/local-models-setup How do I use a local model in Zed? https://latestn.com/tool/zed/models/openai-compatible-local-server How do I connect a local OpenAI-compatible server to Zed? https://latestn.com/tool/zed/models/openai-compatible-providers How do I configure an OpenAI-compatible provider in Zed? https://latestn.com/tool/zed/models/custom-anthropic-models How do I use custom models with Anthropic in Zed? https://latestn.com/tool/zed/models/edit-prediction-setup How do I set up edit prediction models in Zed? https://latestn.com/tool/zed/models/hosted-model-context-windows What are the context window sizes for Zed-hosted models? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T04:00:42Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/zed/models/llamacpp-context-length/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/zed/models/llamacpp-context-length POST: https://latestn.com/dispute/tool/zed/models/llamacpp-context-length with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/zed/models/llamacpp-context-length?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set the context length for a llama.cpp model in Zed? Revision 1, last verified 2026-11-19T13:39:07Z. https://latestn.com/tool/zed/models/llamacpp-context-length (accessed 2026-11-21T09:55:12Z). @misc{LatestN_tool_zed_models_llamacpp_context_length_r1, title = {How do I set the context length for a llama.cpp model in Zed?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/zed/models/llamacpp-context-length}}, note = {Revision 1; digest sha256:8b919e5d29924cba; last verified 2026-11-19T13:39:07Z; accessed 2026-11-21T09:55:12Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/zed/models/llamacpp-context-length