mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #23] The default expert cache may cause the output to deviate from the results obtained when caching is disabled. #12
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pxzleo on GitHub (Sep 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/23
Upon startup, the engine explicitly warns that the default expert cache may cause the output to deviate from the results obtained when caching is disabled. Does this warning affect the correctness of the results? The configuration features an RTX 4090 (48GB) and 128GB of RAM.
@pxzleo commented on GitHub (Sep 27, 2026):
Correctness test: Strata IQ3_S answered 27 of 29 applicable questions correctly. Three earlier Qwen3.8-27B deployments scored 29/29 on the same questions. The two errors were in Python coding tasks. One longer question exceeded Strata’s context limit. A cache-off comparison could not be run because this Strata build does not support the model without expert cache.
1. Merge Intervals (
code_02)Requirement: Implement
merge_intervals(intervals)to merge overlapping or touching closed intervals. Return a list of intervals, each represented as a list, sorted by start value.Result: Failed. The generated function returned merged intervals as tuples, such as
(1, 6), instead of lists, such as[1, 6]. It failed the original unit test.2. Run-Length Decoding (
code_05)Requirement: Implement
decode_rle(items), where each item is a[character, positive count]pair. Return the decoded string; return an empty string for an empty input.Result: Failed. The generated function treated
itemsas an alternating sequence of characters and counts rather than a list of pairs. The first unit test raised aTypeError.@Niko1221 commented on GitHub (Sep 27, 2026):
Good question. Short answer: no, the cache doesn't hurt correctness. That warning was stale, and it's gone in v0.1.8.
It dated from an old bug in the GPU expert path (the output went wrong from the first token). That was fixed long ago and is covered by tests. What's left is rounding: a GPU expert and the CPU compute the same quantized expert with a different floating-point order. So when two next tokens are nearly tied, a different one can win and the text drifts apart. Neither side is more accurate.
I measured it (teacher-forced,
--dump-logits, cache off = no--expert-cache, every expert on the CPU):Over all 2,557 tokens: on minus off = -0.005 +- 0.005 nats per token, i.e. no difference. Details are in
bench/results/2026-09-27-cache-parity. The engine now prints one accurate line instead of the warning.On your test: the two misses look like model quality, not the cache. IQ3_S is a 3-bit quantization of a big MoE, and the 27B runs you compared were likely at higher precision. Returning tuples instead of lists, or misreading the input shape, is the kind of slip that changes run to run. For the long question, raise the context with
START-HERE.bat --setup(or--max-contextin your config'sargs); with 128 GB of RAM you have plenty of room.Closing, but reopen if you see output that's actually broken rather than just different.
@pxzleo commented on GitHub (Sep 27, 2026):
Thanks for clarifying and removing the stale warning. On my IQ3_S setup, a controlled service-mode test showed that changing only
--pcie-fracfrom1.0to0.55changedcode_05from a pass to the same incorrect answer I saw earlier. This shows that CPU/GPU arithmetic can affect an individual answer, but it does not establish that either path has better overall quality.