Local ModelsModel Evaluation

Before loading a long paper, check your local AI context window

Distinguish advertised model capacity, allocated runtime context and the document text your application actually sends.

Listen to this article8:33 · Synthetic narration

A model description promises a large context window. You load a long paper into a local assistant and expect it to use the whole document. Later, it overlooks a qualification near the beginning. Did the model miss the meaning, or did that paragraph never reach it?

Those are different questions. Before drawing conclusions about a local model's ability to read research, check three things: the capacity described for the model, the context allocated by the runtime, and the text the application actually sends. A large number on a model card does not establish all three.

This guide uses Ollama's official documentation and an original fictional planning example. It reports no local model benchmark, memory measurement or tested maximum document size.

Separate capacity, allocation and actual input

Think of the model's stated context capacity as a specification to investigate, rather than a document-upload guarantee. The runtime has its own configuration. The surrounding application may also extract, shorten, summarize or retrieve selected parts of a file before making a request.

Ollama's context-length documentation explains that increasing allocated context requires more memory and describes how to inspect the allocation with ollama ps. The page currently lists defaults that depend on available graphics memory. Do not assume every installation uses the same default, or that a model automatically runs at its advertised maximum.

Keep the document path separate from that runtime setting. A larger allocation cannot restore text removed during extraction or application preprocessing. If an app uses retrieval, uploading 100 papers may mean indexing them for later selection, rather than placing every paper into every request.

Inspect the model that is actually loaded

With Ollama running a model, ollama ps is a useful first observation. Record the displayed model identity, processor allocation and context value. An empty listing means no model is currently loaded; it is not proof that the installation has no models.

The official running-model API also documents fields including the model digest, quantization, allocated context length and graphics-memory allocation. These help describe the loaded configuration. A documentation example is not a report about your computer, and a loaded-memory figure is not the same as the model file's download size.

Save the exact application and runtime versions alongside that observation. A familiar display name is insufficient if a tag now points to different model content. Note which application initiated the request, since a direct runtime test and a document-chat interface may prepare different inputs.

Before choosing a downloadable model for a real project, check its own license and intended-use information separately. A context setting does not establish permission to use the model, privacy of the document workflow, or suitability for a research task.

Budget for the whole request

Documents are not the only input. The request can also include instructions, the current question, earlier messages, tool descriptions and retrieved passages. The application must plan for generation as well. Inspect the actual request construction rather than converting a PDF's page count into an assumed token count.

Here is an original hypothetical budget. Suppose your chosen setup uses a total allowance of 16,000 tokens and you reserve 2,000 for output. Instructions use 1,000, conversation history 3,000 and the question 200. That leaves 9,800 for document evidence in this simplified plan. These numbers illustrate arithmetic, not Ollama defaults, measured tokenization or a recommended setting.

Now imagine the app adds another 4,000 tokens of tool output. The same document allocation no longer fits that plan. The useful response is to inspect the assembled request and the application's handling of limits. Do not infer from one incomplete answer that the runtime necessarily discarded a particular paragraph.

Token counts depend on the tokenizer and the material. A page of prose, a dense table and extracted references can have different counts. Save the extracted text and use the relevant tokenizer or runtime metadata where available; avoid a universal pages-to-tokens promise.

Change one setting, then verify it

Ollama documents an app control for context allocation. Its FAQ also describes per-request options.num_ctx and platform-specific environment configuration. Choose the setting appropriate to the path you are testing, and record it. A change to one caller does not establish what another caller requests.

On Windows, follow the Windows configuration steps in the documentation; a shell command written for a Unix terminal is not interchangeable. After the documented restart or reload procedure, initiate the intended workload and inspect the loaded configuration again. Record the observed value rather than simply noting that a setting was saved.

Begin with a configuration your machine can sustain for the intended work. A larger allocation is not automatically a better operating choice. If memory use or response time becomes problematic, save the conditions before changing the model, context, parallel requests or other settings. Changing several at once makes the result difficult to interpret.

Check the application input path

For a first smoke test, create a clearly fictional text document with distinct markers near the beginning, middle and end. Ask the assistant to reproduce each marker and identify its section. Keep the file, extracted text, request details and response. Use harmless invented content, not identifiable research records.

Failure can suggest where to inspect, but it does not isolate the cause. Check whether the markers survived extraction, whether the app selected those sections, and whether the final request included them. Success is also narrow: finding three markers does not validate scientific comprehension, table interpretation or reliable use of every passage in a long paper.

Then use a small set of task-relevant questions with known supporting passages. Include qualifications and comparisons, not just copied phrases. Our retrieval comparison guide explains how to inspect selected evidence before blaming the answering model. Preserve the evidence supplied for each response so a reviewer can examine what was available.

Measure useful work alongside speed

The generation API documentation describes input/output token counts and timing fields, including model loading and prompt evaluation. These can help document a run. A token count alone does not show which sentences arrived, and server timings do not necessarily include document extraction or the application's entire wait.

For a future comparison, record CPU, graphics hardware, system memory, graphics memory, model digest, quantization, runtime, allocated context, request settings and workload. Separate a first request that loads the model from repeated requests with it already loaded. Keep the questions and evidence fixed, and report answer quality alongside latency. No such comparison was performed for this article.

DASS's guide to checking AI accuracy claims offers complementary background on asking what an advertised number was actually measured against. It is a methodological resource from our family of websites, not evidence that a particular local configuration works.

Finally, use the research data-flow checklist before importing a library. Context capacity and local execution do not establish the privacy of extraction, storage or other connected services. Keep your conclusion specific: this model, through this application, received this evidence and answered these questions under these recorded conditions.

Sources