Models & evaluation
Ollama: a starting point for local models
Make a local Ollama request, distinguish service errors from answer errors and calculate generation speed without hiding model-loading time.

Tool facts
Run local models or use hosted models. Check the request path before assuming text stays on your device.
| Platforms | Desktop applications and APIs |
|---|---|
| Pricing and resources | Local execution and hosted services have different costs; include hardware in the decision. |
| Arabic support | Depends on the selected model; no service-level language benchmark claimed. |
| API | Documented API |
| Limitations | Speed and memory depend on the model and hardware. |
Documentation last checked: . Official documentation; no account test or performance benchmark claimed.
First session: verify the inference path
Test input: A nonsensitive short prompt with an Arabic name and a number; select a model your machine can fit.
- Read the Ollama documentation to distinguish local execution from a hosted option.
- Run the documented request; record model, endpoint and test date.
- Compare names and numerals against the input and preserve any mismatch without silently correcting it.
Acceptance check: You can identify the request path, reproduce the response and distinguish remote from local execution.
Evidence limits: This is a reader-run protocol, not a benchmark performed by this publication.
Identify where inference actually runs
Ollama provides an interface for compatible models and applications. Installing it locally does not by itself establish that every request runs locally; the selected model and endpoint matter. Use an installed local model and verify your intended task still works offline.
Make a first Ollama request
Install from the official site, run ollama list and replace MODEL_NAME below with an installed name. The local request disables streaming so the response arrives as one JSON object. The service must be running. Initial model loading can take longer than subsequent requests.
$Body = @{ model = 'MODEL_NAME'; prompt = 'Explain a checksum in two sentences.'; stream = $false } | ConvertTo-Json
Invoke-RestMethod -Uri 'http://localhost:11434/api/generate' -Method Post -ContentType 'application/json' -Body $BodyReplace MODEL_NAME with an installed local model. Generated wording will vary.
Download example text ↓Read the execution metrics
The response field contains generated text. Duration and token-count fields help explain latency, but tokens per second do not establish answer quality. Repeat after loading and record the model and settings; changing model size or quantization also changes the experiment.
Separate three different first-request failures
A refused connection to localhost:11434 means checking the running service comes before evaluating the model. If the service responds but cannot find MODEL_NAME, copy the full installed name from ollama list, including its tag. Valid JSON containing an incorrect explanation is a content-quality failure, not a network failure. Re-downloading a model is not a useful universal fix.
Calculate generation throughput as eval_count divided by eval_duration converted from nanoseconds to seconds. That measures output generation, not the entire wait. Retain load_duration and prompt_eval_duration too. A cold request can be much slower because weights are loaded from disk, even when token generation is similar. Start with a short question whose answer is known, then increase input length to distinguish loading, context processing and generation costs.
Sources & further reading
Sources support concepts and features; proposed trials are educational examples.
Prepared with AI assistance. Educational examples are not product tests; actual measurements identify their method and scope. Editorial approach ↗