mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#1485
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 @angellfear on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3602
[Engine] 0.1.47: #879 with direct PLE I/O; mmap passes the failing prompts
Follow-up to #3465 and #879.
Two captured prompts still fail on engine 0.1.47 with default
--ple-io direct: non-finite logits in the first decode window, after the entire prompt was read batched. The automatic retry also fails, even with--short-read 0. With--ple-io mmap, both prompts and a repeat of the 33K prompt pass the same first-output checks.A separate diagnostic build finds non-finite values already in the gathered/uploaded PLE embedding, while the residual before PLE is finite. This narrows the investigation to PLE input acquisition/decoding/upload; it does not yet identify the exact faulty operation.
Environment and configuration
f-022-rel, commit76f90e58436d; unmodified release executable.f57c0adplus a request-capture patch, not the v0.2.2 Python server. The engine itself reports #879 before the API returns 503.ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, IQ3_S, two GGUF shards and the corresponding native pack. No external refusal-direction/control vector. No STRATA diagnostic or CPU/MMQ override environment during the release tests.The same first-decode NaN was separately reproduced on SC117/Qwen3.8-Flash-Next-GSQ-RCO-abliterated-GGUF, IQ3_S. Its direct-I/O failure logs and new mmap/cold-restart tests are included below. A shared exact root cause is not proven.
Relevant arguments; paths below are placeholders:
Vision encoding is on CPU. The candidate run adds only the explicit engine argument
--ple-io mmap. Build and model identifiers, hashes and CPU flags are inenvironment.txt; download-receipt hashes are distinguished from hashes checked in this session.Release 0.1.47: what was replayed
Requests were sent sequentially. The direct sequence used one cold-start engine process; mmap used a separate cold-start process. Each request below had zero prompt-prefix reuse, although expert-cache/process history persists between requests in a process.
Strata works.Strata works.The 33K case is one user message, no tools, thinking disabled, prefixed with
Diagnostic 1234567890.\n. The 61K case includes tools; streaming was disabled and its output capped. Long-request output limits were eight tokens: these are checks for finite first output, not validation of a complete answer. The 61K success contains reasoning tokens rather than a completed final answer.Direct failures occur at positions 33132 / 61243, after all 33133 / 61244 prompt tokens were read. The retry drops cached state and rereads from token zero but fails again. Error:
Private request bodies are excluded. The public controls pass, so they must not be presented as failing reproducers. Length alone does not explain the failure, and a failed long request does not invariably poison later short requests.
Additional SC117 mmap validation across a restart
SC117/Qwen3.8-Flash-Next-GSQ-RCO-abliterated-GGUF IQ3_S was then tested on the unmodified release 0.1.47, with
--ple-io mmap,--short-read 0and the other engine settings retained. No diagnostic/CPU/MMQ override environment was enabled. After the first replay set, the server was stopped and started by its tray controller; the replacement engine had a different process ID. The post-restart requests waited for READY.All five requests had zero prompt-prefix reuse. Short requests returned
Strata works.; long cases were capped at eight output tokens, so they check finite first generation rather than full-answer quality. The same captured 33K/61K prompts were used. This extends the measured mmap workaround to SC117 and checks a further cold-start process; it still does not identify a particular I/O code defect.Where non-finite values first appear in the diagnostic trace
Separate local CUDA build: source
f57c0adplus the attached diagnostic patch, sm_89, Release,STRATA_Q6K_EXPERTS=ON,STRATA_MMQ_KQUANTS=ON. This is not the release 0.1.47 binary.STRATA_DBG_NAN_WIN=1andSTRATA_DBG_NAN_END=1enabled the probes. The 33K request was its first inference after startup; it failed on both attempts, HTTP 503 after 219.51 s.First observed bad PLE input in this run:
The embedding probe runs after its upload, before PLE projection GEMMs. Projections then become non-finite, followed by the layer-1 GDN input, recurrence state and MoE. Thus the downstream MoE/GDN reports do not establish those operations as the source. The trace has not yet separated disk/direct reads, row cache, decoding, host-buffer lifetime and upload.
The patch's label
PLE normalized queryscans a reused buffer after postops: at that point it holds normalized gated values, not the pristine query. Instrumentation adds copies/synchronizations and can change timing and failure boundaries.Other checks already performed
Service.encode_prompt, not just its length.--short-read 0initially passed prompts of 1,717 / 1,759 / 11,096 / 29,425 tokens. The later 33K/61K failures show that this was a workaround for the tested tail-window cases, not a general elimination of NaN.iq_avx2_parityandiq_avx2_parity_iq3s_mt1: 2/2 passed, zero reported failures. This does not validate every inference/I/O path.STRATA_IQ256_GATHER=0andSTRATA_FORCE_AVX2=1each passed a 33K replay, but a fresh-process control without either switch also passed. These runs do not establish a fix.STRATA_DBG_NAN=1reproduced the failure and detected bad MoE intermediates during batched reading. Its finite GDN slot-0 scan did not rule out other slots or an earlier bad input.STRATA_PREFILL_MMQ=0did not eliminate #879. The FP16-KV attempt was interrupted/timed out and gives no conclusive result. These are not controlled 0.1.47 tests of the ISTA-DASLab model.Earlier checks used 0.1.46 or earlier local builds; they were not all rerun as a controlled 0.1.47 matrix. Small reduced triggers also changed across processes/instrumentation, so no reliable public minimal failing prompt is claimed.
Interpretation and remaining limits
--ple-io mmapis a tested workaround for this replay set, currently left enabled. It is not a demonstrated code fix or a guarantee for all future requests.Suggested next investigation
read_rowandgather_batchwith direct and mmap, comparing against buffered file reads. Test row-cache hits/misses, page-crossing rows, prefetch matching, completion tags and buffer reuse. These are investigation targets, not defects already proven.Not yet done: CPU/GPU byte-for-byte row comparison, CPU-only failing fixture, fixed-chunk multi-restart A/B, an isolated MTP-off test. The attached patch is instrumentation, not a production fix; its CUDA build was tested, while HIP/SYCL builds were not tested. No exact faulty operation or patch fixing it is claimed.
Attachments:
logs.txt(relevant excerpts),measurements.json(sanitized results),environment.txt(configuration/identity), anddiagnostic-probes.patch(instrumentation). No private prompts, local paths, account names, IP addresses or credentials are included.The sanitized supporting files are inlined below.
logs.txt
environment.txt
measurements.json
diagnostic-probes.patch
@nanachi1212 commented on GitHub (Oct 21, 2026):
Possible relation to #3602. Swift 1.5 IQ3_S on 0.1.47 (commit
76f90e5843), Windows, CUDA 13, RTX 5080 16 GB, 64 GB RAM, no AVX-512.Symptom: every answer is a run of
!!!!(finish=length). Tested with greedy, temp 1.0 + top-p/top-k, temp 0.7, thinking on and off (enable_thinking=false), with--spec 4kept, with and without--mtp, and with--vram-reserve-mib 1280. The engine loads normally and reports 97–100% expert-cache hits, with decode at 90–190 tok/s.Config used: no
--ple-ioflag, so the defaultdirectapplies. The startup log says--ple-io direct measures slow here ... kept direct.Not yet tested:
--ple-io mmap. I can run it and report back.@nanachi1212 commented on GitHub (Oct 21, 2026):
Follow-up:
--ple-io mmapdoes not fix Swift 1.5 IQ3_S here.Same setup as my earlier comment (0.1.47, commit
76f90e5843, Windows CUDA 13, RTX 5080 16 GB, 64 GB RAM,--spec 4and--mtpkept), now with--ple-io mmapadded. Test prompts (17 * 23 + 5, and a one-sentence Traditional Chinese question about photosynthesis) still return only!!!!and finish=length. So for Swift the PLE I/O mode does not look like the cause, and the mmap workaround from this issue does not carry over to the Swift pack.The engine loads normally in both modes and reports expert-cache hits of 97–100%.
@Niko1221 commented on GitHub (Oct 27, 2026):
Thank you. Fixed in 0.2.7: A failed read no longer leaves the next ticket waiting for ever; stress test for the direct table reader. We could check it with unit tests and builds, but not on your hardware or with your workload. Please try 0.2.7 and tell us how it goes.
Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7