Commit Graph
25 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 c5c1cba272 cuda-driver integration tests: widen the Linux-only cfgs to Windows (the installed-driver smoke passes natively through nvcuda.dll)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:19:37 +01:00
Pavlo RatushnyiandClaude Opus 5.5 d4dac4a335 fix(serve): initialise the streamed-KV resolver before the window capture (one-token prompt)
A one-token prompt runs no prompt append, so the mapped journal's resolver was never
initialised and window_kv_addresses refused at assemble. OriginalQsaMappedJournal::
ensure_resolver initialises it without touching the epoch, coverage or end (unlike
reset), idempotently; assemble calls it for the twelve owners before they move into the
QSA journal and hands the owners back on failure. Model-free GPU test (ignored, no
model) in qsa_mapped_journal.rs; the preflight probe now uses ensure_resolver.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 10:34:09 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 7b04511b9a fix(serve): load the MTP drafter at the verify width, not at its own window width
generate.cpp rewrites o.spec to min(spec+2, 8) (generate.cpp:1535-1537) before mtp.load(..., o.spec, ...) (:2610), so the
drafter accepts every window the verifier runs (suffix drafts reach the verify width) while its chain stays capped by
set_max_drafts(S_mtp - 1). The Rust stack loaded it at settings.mtp_max_t (4): the first T=6 window made
OriginalMtpDrafter::draft_inner refuse (rows > max_t, mtp_original_full_drafter.rs, 2 us, InvalidQwenShape -> InvalidDimension).
OriginalServeSettings::mtp_load_t() (= max_t) now sizes the executor's scalar prefill, the shared layout and the actor.
max_drafts() stays 3.

The synthetic probe now runs the serve round shape (T=1 window+commit+draft, then T=6 with accepted_row 0..5, commit, draft
anchored at the previous speculative snapshot, max_drafts 3, coupled false): PROBE_MTP_MAX_T=4 reproduces the failure, the
default 6 passes for every accepted_row. Structural only; no numerical claim.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 03:48:47 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 20c1be9caf test(bring-up): print verifier bank and graph VRAM in the synthetic probe
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 02:05:27 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 a07a92a272 test(bring-up): synthetic verifier probe also takes the QSA owners back and runs sampled windows with penalties on every sampler path
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 02:05:27 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 f87ca5a5b6 test(bring-up): two-request synthetic verifier probe with the MTP drafter (draft, release, close, second request)
Verifier window T and MTP max_t default to the serve settings (6 and 4). PROBE_NO_RELEASE=1 reproduces the pre-fix failures.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 02:05:27 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 e2f69f27fe test(bring-up): synthetic-weight verifier probe: record all window graphs, replay and commit over zero weights
record_all over every ggml projection kind / expert format / shared-expert kind, then three windows (T=1,2,max_t) with a
zero-filled stand-in for the CPU expert pool, synchronous and asynchronous commit and the committed reads the serve host
makes. No model weights are read; the stand-in weights are uninitialised device memory of the exact sizes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 02:05:27 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 df9120b62a test(bring-up): synthetic-weight probe of the MTP full owner assembly (shared layout, drafter, actor adopt)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 02:05:27 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 b8b92aee64 test(bring-up): model-free preflight probes for the Original serve stack lazy constructors, prefill arena and asset report
Ignored GPU probes in the print-per-step style of the existing bring-up probes; no model is read, nothing numerical is checked.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 02:05:27 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 6cd926d719 test(bring-up): model-free GPU probes and tracing for the Original serve smoke
- crates/cuda-driver/tests/original_{arena,executor}_probe.rs: ignored probes that create the expert-group arena and the
  prompt-executor device objects without a model (seconds instead of a 15 minute model load).
- backend_original_serve_smoke.rs: load the resident expert source (the serve stack requires it) and print DBG progress.
- cache_original_prompt.rs and mmq_original_group.rs: DBG/PROBE eprintln tracing. Bring-up instrumentation; gate or remove
  before merge.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 01:30:40 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 f334b66215 test(cuda-driver): teach the fake libcuda the eagerly-resolved cuMemsetD8_v2
Driver::load resolves cuMemsetD8_v2 (the `zero` entry point) up front, but the
synthetic mock_cuda.c (also #included by the q5/q6/projection-family mocks)
never defined it, so every isolated CPU ELF gate died in Driver::load with
MissingSymbol("cuMemsetD8_v2") before reaching its protocol assertions. Add a
load-only stub (same policy as the existing cuMemcpyDtoD_v2 stub) and an opt-in
`run.sh --mocks` mode that builds the fake libraries and runs the mock_driver,
q5_mock and q6_mock matrices in the Linux container.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 16:43:29 +02:00
Pavlo Ratushnyi 5a06a29b9a Retain PLE and MTP outputs and memoize immutable PTX checks 2026-10-10 10:20:59 +02:00
Pavlo Ratushnyi 69fc520e3e Keep routed MoE Down products on CUDA through combine 2026-10-10 09:18:19 +02:00
Pavlo Ratushnyi 793e4eb8d9 Batch cached PLE Key projection as one complete matrix 2026-10-10 06:06:09 +02:00
Pavlo Ratushnyi 173465d91a Reuse native routed Gate Up activations within each MoE step 2026-10-10 05:55:22 +02:00
Pavlo Ratushnyi 58dbd1799c Retain selected Qwen weights on GPU and dispatch complete matrices 2026-10-10 04:06:45 +02:00
Pavlo Ratushnyi 83cc41698b test(cuda): release refusal fixtures before mixed matrix 2026-10-09 12:50:51 +02:00
Pavlo Ratushnyi 11f9de7170 [skip ci] Integrate qualified Q2_0 routed projection asset 2026-10-09 12:29:05 +02:00
Pavlo Ratushnyi 2c6ef76e22 feat(cuda): integrate projection family [skip ci] 2026-10-09 11:20:44 +02:00
Pavlo Ratushnyi 570db27fdb feat(cuda-driver): add resident Q6_K projection and independent component gates [skip ci] 2026-10-08 19:25:15 +02:00
Pavlo Ratushnyi 08dcb1d4a2 feat(cuda): add native-compatible Q5_K Q8_1 projection [skip ci] 2026-10-08 18:04:43 +02:00
Pavlo Ratushnyi f9f7690f3d test(cuda): qualify fixed kernels on installed NVIDIA driver
Linux / keyless-cuda-gate (pull_request) Skipped
Linux / verify (pull_request) Successful in 2m44s
Linux / keyless-cuda (pull_request) Skipped
Linux / static-cuda-package (pull_request) Skipped
Linux / hosted-cuda-package (pull_request) Skipped
Linux / linux-cli-container (pull_request) Successful in 1m29s
Linux / linux-static-cli (pull_request) Successful in 4m49s
Linux / release-cli (pull_request) Skipped
2026-10-08 10:32:33 +02:00
Pavlo Ratushnyi 303fd4cf46 feat(cuda-driver): add fixed ordered f32 matvec primitive
Linux / keyless-cuda-gate (pull_request) Skipped
Linux / verify (pull_request) Successful in 3m45s
Linux / keyless-cuda (pull_request) Skipped
Linux / static-cuda-package (pull_request) Skipped
Linux / hosted-cuda-package (pull_request) Skipped
Linux / linux-cli-container (pull_request) Successful in 1m39s
Linux / linux-static-cli (pull_request) Successful in 5m47s
Linux / release-cli (pull_request) Skipped
2026-10-08 09:51:12 +02:00
Pavlo Ratushnyi 3a478b603c feat(cuda): add fixed typed vector launch and isolated PTX gate
Linux / verify (pull_request) Successful in 6m15s
Linux / keyless-cuda-gate (pull_request) Skipped
Linux / keyless-cuda (pull_request) Skipped
Linux / static-cuda-package (pull_request) Skipped
Linux / hosted-cuda-package (pull_request) Skipped
Linux / linux-cli-container (pull_request) Failing after 4m2s
Linux / linux-static-cli (pull_request) Successful in 9m31s
Linux / release-cli (pull_request) Skipped
Desktop foundation / core (ubuntu-latest) (push) Failing after 13s
Desktop foundation / core (windows-latest) (push) Canceled after 0s
Desktop foundation / core (macos-latest) (push) Canceled after 0s
2026-10-07 23:43:54 +02:00
Pavlo Ratushnyi 7e61ab8007 STRA-102 implement independent CUDA Driver context and buffers
Linux / keyless-cuda-gate (pull_request) Skipped
Linux / verify (pull_request) Failing after 42s
Linux / keyless-cuda (pull_request) Skipped
Linux / static-cuda-package (pull_request) Skipped
Linux / hosted-cuda-package (pull_request) Skipped
Linux / linux-static-cli (pull_request) Skipped
Linux / linux-cli-container (pull_request) Skipped
Linux / release-cli (pull_request) Skipped
2026-10-07 23:09:48 +02:00