Commit Graph
17 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 f8f4fbbec6 docs/windows.md: PCIe tier on the laptop (root cause of the CUDA 700, whether PCIe beats the CPU, paired A/B); pcie_copy_gpu_bandwidth
* The batch-copy fault: bisect in the engine, the model-free matrix, the fix, how to repeat the check on a new driver.
* Why it is not STRA-235 (different fault, different path) and the 5-minute negative result of the registered-file-mapping DMA stress
  (205,235 copies, 27,248 working-set trims, 0 wrong bytes).
* Plain PCIe shares are slower than the CPU pool over the pageable bank (profile: pool.publish_plan 10-11 s of 27-31 s); locked-only shares
  are about +8 % in a 3-rep paired A/B (unset 6.73/6.79, 0.45 5.02/4.79, 0.6 locked-only 7.51/7.14 decode tok/s, prefill unchanged);
  recommendation: keep the default, do not change the preset.
* pcie_copy_gpu_bandwidth (ignored GPU test, prints a measurement): pageable 8.1-8.9 GB/s with the call being the copy, page-locked
  11.6-12.4 GB/s at 4 us per call.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 06:03:20 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 72f502f0ae Merge upstream speed items (route tail skip stays experimental and off; callback warm-up guard; CPU pool plan opt-in)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 23:09:30 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 1ee7e0d373 docs: windows.md, 5090 result of the tail skip
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 21:56:24 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ef854aa300 STRA-235: stream-K off at every MMQ site on sm_86 (the MTP draft-KV record was still on it), drain switches, forced-SM diagnostic
- arch_ptx::stream_k_off(): one decision for the grouped MoE, the MTP prefill record, the resident MMQ, the Original profiles and the
  stream-all issuer; an sm_86-class device launches one block per tile unless LELEKA_MMQ_STREAMK=1. Native sm_120: untouched.
  The first real long session failed in the MTP FC hidden check of the draft record, which still planned the 48-block grid.
- diagnostics (off by default): LELEKA_FORCE_SMS, LELEKA_MMQ_STREAMK_FILE, LELEKA_RING_SERIALIZE_COPY_FILE / _CMD_FILE,
  LELEKA_CHUNK_DRAIN / _FILE.
- docs/windows.md: the third STRA-235 note (the 224k session on the laptop, the A/B, the 5090 forced-48-SM runs, what was read and found).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 19:47:52 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 da3459cee6 docs: windows.md wording
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 18:05:38 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c95e861c4b docs: windows.md, upstream speed items prepared for the laptop
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 18:05:34 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 56ede89f30 docs: compute-sanitizer location on the 5090
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 15:47:46 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 96aa8b4270 STRA-235: sm_86 group MMQ without the stream-K grid, model-free stream-K stress, A/B switches
- mmq_original_group.rs: on a device that is not a native sm_120 the group MMQ launches one block per tile (no stream-K split, no
  fixup kernel); LELEKA_MMQ_STREAMK=1 restores the stream-K grid; the 5090 path is untouched. LELEKA_MMQ_NO_STREAMK / _FILE force
  it elsewhere. In-engine A/B on the laptop: 4 failures in 23 cold 14k requests with the stream-K grid, 0 in 23 without.
- mmq_original_ring.rs: LELEKA_RING_SERIALIZE / _FILE drain the copy and compute streams after every DMA / command (diagnostic).
- mmq_original_group_stress_gpu.rs: model-free random-count stress of the grouped MMQ with the stream-K grid planned for a forced SM
  count, both grids compared; clean on the 5090 (48 and 170 SMs) and on the 3080 laptop (48 SMs).
- docs/windows.md: the second STRA-235 note (what the stress and the A/B show, what is not verified).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 14:46:18 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f4924078bf STRA-235: CUDA launch/error tracer for the native Windows engine, driver errors in the log
- libc-shim/cuda_trace.rs: under LELEKA_BRINGUP_TRACE the Windows dlsym returns wrappers for the launch, copy, event and
  synchronization entries of nvcuda. Every non-zero return prints the operation, the code, cuGetErrorName/String and the
  operations queued since the last successful synchronization of the stream (kernel names, grid, block, shared bytes).
  Nothing blocks; LELEKA_CUDA_TRACE_SYNC / LELEKA_CUDA_TRACE_CALLBACKS add a per-launch synchronization or completion
  callbacks, only while the prompt forward runs (PromptSyncTrace).
- the nine driver_error helpers print under LELEKA_BRINGUP_TRACE as well (operation and code instead of the class only).
- LELEKA_STAGE_VERIFY: compare every staged expert buffer with its file bytes before the buffer is released.
- docs/windows.md: what failed (nvlddmkm Xid 13, Out Of Range Address, same PC), what is ruled out, next experiment.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 11:43:36 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e58b3eeab2 docs: laptop long-context defect (CudaExecution at 28k) and the 256k target
Rust port / port-fast (push) Failing after 8s
Rust port / port-typecheck (push) Failing after 8s
Rust port / port-oracles (push) Failing after 9s
Rust port / port-linux-tests (push) Failing after 15s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 08:56:16 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e865b1f73f docs: first native workstation run on the laptop (working-set trim, prefix cache reuse)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 01:12:55 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 2d704e3126 deploy: Windows workstation preset plans a larger desktop share and a smaller hot expert set
The laptop is a work machine (agent, IDE, browser): in the file-backed form the workstation preset leaves 18 GiB to the desktop (12 for dedicated),
keeps its raised memory floors instead of the lowered Windows ones, and sets LELEKA_MAPPED_WORKING_SET_GIB=8 so that the engine's start check can pass
on a 48 GB host. Estimates, to be measured on the first workstation run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 23:11:54 +01:00
Pavlo Ratushnyi ded68cb6eb docs/windows: second native run with the fixes: agent-sized request, reconfigure refused up front on a starved host 2026-10-25 22:50:53 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 1eacd3d974 docs/windows: native evening run: cuBLAS probe mismatch, greedy resident budget, reconfigure on a starved host
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 20:57:21 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 885bfb457e docs/windows.md: measured outcomes of the real runs on this laptop (WSL2 bridge and native engine), findings, fixes; stage-model.ps1 drops the robocopy progress when redirected
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 17:04:05 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8623932c98 Windows round 2: leleka service (Task Scheduler / user unit), doctor names what is missing and the fix, stage-model.ps1 and fetch-cublas.ps1, native supervisor end-to-end test with the fake runtime, WSL find-binary fix, docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 15:53:31 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5a2c5cdb6b docs/windows.md: build, model files, the WSL2 bridge and the native route, telemetry, reconfigure, limits
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 13:15:08 +01:00