memory and model

How Much Long-Context Text Fits on a 64GB CMP 170HX?

A measured 18,976-token run exists, but 64GB alone does not determine your usable context length.

After loading the model into 64GB of memory, KV cache1 uses part of the remaining space to retain document and conversation context. The input length a CMP 170HX can handle depends on the engine and model setup. In the published Qwen3.8-27B test, open-jet completed an 18,976-token input, taking about 13.55 seconds to the first token2.

For long documents, time to the first answer matters alongside generation speed. Compare completion status and waiting time in the input-length table below, then check with documents you normally use.

Requirements and key details
  • 64GB is memory capacity; the tokens that fit in one request must be checked with the engine and model settings.
  • open-jet completed an 18,976-token input; vLLM stopped with Xid 31 at 9,472 tokens.
  • A 65,536 context setting does not mean that context length was validated.

Memory Capacity and Context Length Are Different Numbers

Model weights reside in GPU3 memory, and processing longer inputs also grows the KV cache that stores attention4 state for tokens. The prompt5 and answer share the configured context, so asking for a long answer leaves less room for input. The physical capacity of 64GB is one part of this memory budget; it is not the same as the maximum token count supported by an engine.

Document page count also cannot be converted directly into token count. The amount the model receives changes with charts, text density, and whether the PDF app sends the full document or only retrieved passages. Token counts in a recipe or measurement table describe the actual input length; they are not a page-count estimate.

A single CMP 170HX card, a magnifier, and a notebook sit on a workbench.
64GB is the card's memory capacity; verify actual request lengths on each engine.

Separate the Engine That Processed 18,976 Tokens from the One That Failed

open-jet completed inputs of 3,158, 9,472, and 18,976 tokens. vLLM completed the 3,163-token chat request, but exited with an error on the 9,472-token chat request. Start by finding your intended input length and engine in the table.

Scroll sideways to compare all columns.

Recorded input-length results on one CMP 170HX
Engine and modeInput tokensRecorded resultTTFT
open-jet MTP d=43,158Completed2.066 s
open-jet MTP d=49,472Completed6.358 s
open-jet MTP d=418,976Completed13.550 s
vLLM DFlash2 k=73,163Completed1.651 s
vLLM DFlash2 k=79,472Engine exited with Xid 31Not measured
vLLM DFlash2 k=765,536Configured value; no input testNot measured
A blank window is open on a monitor beside a workstation with a graphics card installed.
Even at the same length, completion and first-token time can vary by engine.

Test in Steps Under Consistent Conditions Before Loading a Long Document

First choose the model file and serving engine, then fix the instructions and conversation history that your real task will send. Check a short input, then increase the content and confirm whether each request completes. Record input token count, TTFT6, generation speed, and completion or error status separately at each length to see what changes as the document grows.

The open-jet measurement increased input length from 3,158 to 9,472 to 18,976 tokens on the same GPU setup. MTP7 d=4 TTFT rose from 2.066 to 6.358 to 13.550 seconds, while decode8 means were about 77.20, 76.74, and 75.39 tok/s. These are records from one device and engine; recheck with your own documents and answer length rather than applying them directly to another card or model quantization9.

If the engine stops as input length increases, do not call the context setting the maximum supported length. Record the token count and error, then retest at a shorter input. Splitting the document or retrieving relevant passages are also options, but they change the context sent to the model and should be distinguished from processing the entire document in one request.

Send relevant passages first when a document is too large.

vLLM also completed a 6,603-token input through /v1/completions. This used a different API10 and input from the chat requests in the table. Prepare documents around the length completed with your intended request type, rather than the server's configured limit of 65,536.

If the whole document is too large for one request, summarize it by chapter or section, then combine the summaries. For targeted questions, RAG11 can retrieve and send only relevant passages. Choose whether to send the whole document or selected parts based on the task.

Two GPU cards are installed in an open workstation, with a fan and an unmarked meter beside it.
When increasing input length, record both the longest completed request and any failure length.

Terminology notes

  1. KV cache — Memory that stores attention keys and values from earlier tokens for reuse during later token generation. Its size depends on context length and batch size.

    Back to the text
  2. Token — A unit into which a model divides input or output for processing.

    Back to the text
  3. GPU — A processor designed to handle many calculations in parallel. It performs model computations during AI inference.

    Back to the text
  4. Attention — A neural-network operation that calculates relationships between input tokens and combines information from each position into the current representation.

    Back to the text
  5. Prompt — The input text sent to a model. For generative models it describes the desired result and strongly shapes the output.

    Back to the text
  6. Time to First Token — The time from sending a request until its first output token arrives.

    Back to the text
  7. MTP — A training objective or model component for predicting multiple future tokens at once. In speculative decoding, those predictions can be proposed as candidate tokens.

    Back to the text
  8. Token decoding — The stage that generates successive output tokens using the input and the response produced so far.

    Back to the text
  9. Quantization — A way to represent model weights or values with fewer bits, reducing storage and memory use. The coarser representation can also affect accuracy.

    Back to the text
  10. API — A defined interface that lets other code call a program’s functions.

    Back to the text
  11. Retrieval-Augmented Generation — A method that retrieves material relevant to a query, adds it to the model input, and generates an answer from that context.

    Back to the text

Frequently asked questions

What should you check first in this article?
After loading the model into 64GB of memory, KV cache uses part of the remaining space to retain document and conversation context. The input length a CMP 170HX can handle depends on the engine and model setup. In the published Qwen3.8-27B test, open-jet completed an 18,976-token input, taking about 13.55 seconds to the first token.
How much memory does it need?
Model weights reside in GPU memory, and processing longer inputs also grows the KV cache that stores attention state for tokens. The prompt and answer share the configured context, so asking for a long answer leaves less room for input. The physical capacity of 64GB is one part of this memory budget; it is not the same as the maximum token count supported by an engine.