Yes. A published 4-bit run used a 32 GB M1 Max, and independent tests ran a Q4_K_M build on a single RTX 4070. Use the exact Lite Instruct checkpoint and check the settings before judging speed.
Release date: 2024-06-17. Use DeepSeek-Coder-V2-Lite-Instruct and read the DeepSeek model license. The official weights history and technical report distinguish this 16B-class coding model from Lite Base, the 236B model and later R1 distills. The 2.4B active parameter count does not describe the size of the model you need to load.
What did the published tests measure?
PP is prompt processing and TG is generated output, both in tokens per second. TTFT is time to first token. These third-party tests did not use one shared workload.
| Hardware | Published setup | PP / TG (tok/s) | TTFT |
|---|---|---|---|
| M1 Max, 24 GPU cores, 32 GB | macOS 27.0.1, oMLX 0.7.1.dev1, 4-bit MLX, Code (Mixed), 4,096 configured | 939.4 / 70.4 | 4.360 s |
| RTX 4070, one CUDA GPU | llama.cpp b11096, CUDA 12.9.86, Q4_K_M, 99 requested GPU layers, pp512/tg128, Flash Attention off | 2,789.3 / 208.0 | Not reported |
| RTX 4070, same experiment | Same model and short test, Flash Attention on | 1,811.6 / 100.8 | Not reported |
| Radeon 8060S, 128 GB unified | Windows, Ryzen AI Max+ 395, Ollama 0.34.4 ROCm 7.1, Q4_K_M, 16,384 configured, Flash Attention on | 160 at about 4K / single-stream 11.1 | 0.50 s |
The Apple report shows a 10.2 GB peak in its setup. The NVIDIA result is a short test with one historical build. Compare the on/off rows only within that experiment; do not assume the same effect on newer builds, another GPU or a longer prompt. None of these figures establishes coding accuracy.
Choose Lite Instruct and a small issue you can reproduce
Start with DeepSeek-Coder-V2-Lite-Instruct from the exact card or a conversion that identifies it. Larger and Base releases are distinct artifacts. Verify your runtime supports the architecture and selected package before comparing memory or speed. Keep the package name and actual device placement when the runner exposes them. For a first evaluation, use a small local copy of a disposable exercise. Read any proposed changes yourself before applying or running them.
Try a simple function that normalizes empty labels. Its documented behavior is to return a fallback only when the value is missing. A blank string remains a deliberate empty label, and a normal string must come back unchanged. If the current code uses a single truthiness expression, it may replace both null and the empty string. Build an exercise where the empty-string check fails on the original while the other cases already pass. Ask the model to make the smallest fix without changing how the caller sets the fallback.
Run the unchanged checks and inspect all edited lines
Write down the expected outcomes before prompting. With a fallback of “unset,” a null value returns unset, an empty string stays empty and “North” stays North. Add a second allowed fallback with a different value. When reviewing, inspect whether the patch preserves the function signature and returned type. A suggestion which changes the caller to always supply “unset” fails the caller requirement even if one new test passes. Keep the tests stable so a model cannot appear successful by rewriting the expectations.
For another comparison, change a separate harmless function that counts approved items and keeps a total of zero for an empty list. Ask for a fix to ignore drafts while preserving the empty result and approved records. Run the original and candidate against both ordinary and boundary inputs. If the patch changes how missing fields or duplicates are handled without a request, flag those changes for review. A correct isolated effect should return the intended result without moving those unrelated boundaries.
Interpret the RTX pair inside its historical build
The published RTX 4070 short test reports 208.0 generated tokens per second with Flash Attention off and 100.8 with it on, a difference of 107.2 tokens per second in that old environment. The recorded prompt processing also differed. Keep the runner build, model, short test lengths and setting with the numbers. They do not establish that turning it off improves every model, GPU or runtime. Measure a real coding response after you have a working matched example and verify which setting actually applied.
The Mac oMLX row uses a different 4-bit conversion and a reported mixed-code workload, and its 10.2 GB peak is a benchmark measure. The Radeon source reports a particular system and one-stream generation under its described settings. Keep them as distinct measured paths. A higher token rate alone says nothing about the correctness of a minimal patch or how much review it takes. Include actual task completion and tests in any local comparison.
Change the scope without changing the task
First provide just the function, required behavior and its short failing test. Then add a real caller when that caller sets constraints the model needs. Keep the same code and expectations when comparing response. If the broader prompt writes unrelated changes, inspect the relevant part and reject the expanded scope. If a passing minimal change appears only after the caller is supplied, keep the caller as evidence the initial input was incomplete. Record the actual input length and what files were supplied when you later compare perceived speed.
The same artifact can produce a partial patch when a token limit is too low. Keep that failed output. If a complete candidate is still required, adjust the output budget in a separate documented trial and use the same checks. Measure time until a complete diff and time spent inspecting and testing it separately. An interrupted generation and a complete failing candidate may require different revisions to the prompt or workflow.
Compare two setups by the actual accepted change
Retain a clean original and exact requested behavior. Test the known narrow task in both under matched constraints if possible. Document settings that differ. When one answers faster but changes a public symbol or adds an unnecessary import, include that repair in the result. When both pass, use the fit and time under the observed machine state. If the smaller or older route remains better for its known work, preserve it while evaluating harder cases independently.
Record the model, quantization, runtime build, device, context and prompt beside each proposed patch and test output. If changing the Flash Attention setting, use a separate paired comparison keeping all other elements fixed. Verify the exact setting in the installed release before attributing differences. A successful model load, a complete suggestion and an accepted tested patch are three distinct results. A future update can be compared on each one without claiming the historical speed will recur.
Read a patch as a change to a contract
For the label function, write the existing type and default handling before asking for the fix. Provide a small source and a precise failing assertion, rather than supplying an entire repository to a model evaluating a single small behavior. If empty and null are visibly different inputs, include both. A good candidate lets the explicit empty label stay empty, supplies the fallback only for the missing value and preserves normal labels. Confirm that its test result changes for the originally failing case. A response claiming it ran those cases does not count without an actual recorded test run.
If the assistant suggests changing the application-wide default to achieve a passing example, inspect which other callers would see that new value. A broad change can be the wrong fix. Ask for a revision constrained to the original function and keep the same assertions. Retry with a second fallback and ordinary label so the model’s answer cannot pass because one particular constant appeared in the first prompt. Only use the candidate once you have checked the diff and the targeted behavior plus the existing outward behavior.
Evaluate a setting with a complete code response
Hold the exact package and small code request fixed if your current build supports the Flash Attention pairing. Verify the selected runner and same output allowance, and record both start states. Inspect whether each result contains the complete proposed patch. Then run the same checks before deciding if either difference is useful. A performance measurement that excludes a failed patch or compares an incorrect short output with a correct longer one cannot answer which setup supports the coding job. Keep those failures visible and do not extrapolate the historical 4070 result to a different stack.
If the model is running locally on a Mac with other developer tools open, observe whether they remain responsive while generation finishes. A bigger source file may be unnecessary for this fix. Keep one sample with the exact caller contract and another broader example that really needs more context. If the broader one returns incomplete output or changes the wrong function, keep the narrow verified path for appropriately scoped jobs.
If the candidate adds a shortcut for blank labels, repeat the absent and empty checks through the original caller as well as the patched function. Keep the recorded call-site results with the change so another reviewer can see that its behavior stayed consistent.
How do you check your own setup?
Keep a passing test alongside the failing one when you judge a proposed fix. Check that both pass without edits to the tests. This gives you a usable coding result to compare across local builds, even if their token rates differ.
Choose the explicit Ollama Lite Instruct Q4_K_M tag, or the exact local GGUF artifact in llama.cpp. On Mac, use an MLX conversion of the same checkpoint in a compatible runner such as oMLX. Do not substitute the Base or 236B variant when comparing results.
- Pick a small repository you can discard, with a known failing unit test. Record the model, quantization, runner version, context and GPU offload.
- Keep prompt and output cap fixed. If your runner allows it, try Flash Attention off and on in separate runs with the same inputs. Record elapsed time, TTFT when available and peak memory. Do not conflate initial model loading with generating an answer.
- Inspect the proposed code and run the test yourself. Increase context only after the smaller case leaves memory headroom and the result is useful.