Commit Graph
2149 Commits
Author SHA1 Message Date
Pavlo Ratushnyi 9f03ea2ae3 Merge branch 'claude/par-r02' into claude/hexagonal-finish-14ee3a 2026-11-08 02:16:21 +01:00
Pavlo Ratushnyi 0c682e2aa2 STRA-338 params r02: name the split files by content; OriginalRingBlocks lives in original_session_state.rs
impl_originalmtpscalarprefill_{2_2,4,6,7,8}.rs become kernel_commands, call_admission, record_operands, group_loop and
group_capture; impl_originalmtpactor_2_2.rs becomes draft_rounds. OriginalRingBlocks moves out of
original_conversation_state.rs, which would otherwise pass the 400-line file limit.
2026-11-08 02:15:18 +01:00
Pavlo Ratushnyi 47a5938f2f STRA-338 params r02: restore_ring takes OriginalRingBlocks (begin, end, slots) 2026-11-08 02:07:40 +01:00
Pavlo Ratushnyi 9e74f4a0e6 STRA-338 params r02: capture_layer_stage and capture_append_rows take the row range
Both took begin and end next to the layer; they now take `rows: Range<usize>`.

Files:
crates/cuda-driver/src/original_verify_window_ops/impl_originalverifywindowops.rs
crates/cuda-driver/src/original_verify_window_ops/impl_windowops_for_originalverifywindowops.rs
2026-11-08 02:07:40 +01:00
Pavlo Ratushnyi 083119c233 STRA-338 params r02: MTP draft round passes DraftTarget, AcceptedWindow, RepeatRowWindow, DraftSampling, DraftOutput
OriginalMtpActor::draft_from_verifier/launch_draft_from_verifier/draft_first_from_verifier/draft/draft_first and
OriginalMtpDrafter::draft_public/draft_first_public take the new draft-round DTOs (original_mtp_draft_round.rs) instead of
eight to twelve positional arguments; the engine adapter and the preflight probe build them at the call.

Files:
crates/engine-qwen35-cuda/src/qwen_forward/original_mtp_verified_adapter.rs
crates/engine-qwen35-cuda/src/qwen_forward/original_mtp_verified_adapter/impl_originalpromptexecutor.rs
2026-11-08 02:07:35 +01:00
Pavlo Ratushnyi 4b99d52b47 STRA-338 params r02: scalar prefill chain (kernel, finite, project, record, groups)
Module::launch takes the shared LaunchShape; OriginalMtpScalarPrefill::kernel takes it too, finite and q8_guard lose the
unused group argument, project takes ProjectionBuffers. record/record_impl/record_scalar/record_groups take RecordRun,
PrefillRows and the new ScalarDraftKvSources; validate_scalar is split into validate_owners and validate_prompt; the
group loop (run_groups, stage_group, submit_group, enqueue_group, complete) passes ScalarGroupSources, GroupSpan,
GroupSubmission and PagePublication. OriginalMtpDrafter/OriginalMtpActor::record_scalar_prefill pass the same DTOs.

Files:
crates/cuda-driver/src/mtp_original_full_forward/impl_originalmtpforwardprogram.rs
crates/cuda-driver/src/mtp_original_full_forward/impl_originalmtpfullforward_3/prefix_parts.rs
crates/cuda-driver/src/mtp_original_full_forward/impl_originalmtpfullforward_3/prefix_rows.rs
crates/cuda-driver/src/mtp_original_full_round/impl_originalmtpdraftprogram.rs
crates/cuda-driver/src/mtp_original_full_drafter/impl_originalmtpdrafter/impl_originalmtpdrafter_3.rs
2026-11-08 02:07:28 +01:00
Pavlo Ratushnyi 0095b60c59 Merge branch 'claude/par-r01' into claude/hexagonal-finish-14ee3a 2026-11-08 02:03:22 +01:00
Pavlo Ratushnyi 42fc233323 STRA-338 params r01: resident QSA layer prepare/complete take owners and device bundles 2026-11-08 02:00:04 +01:00
Pavlo Ratushnyi ad6d25da04 STRA-338 params r01: QSA attend, prompt index, decode index and prompt device take domain structs
Files:
crates/engine-qwen35-cuda/src/qwen_forward/executor_prefill_chunk/prepare_micro_ffn_rows_fn/qsa_native.rs
2026-11-08 02:00:04 +01:00
Pavlo Ratushnyi a41c6a0d62 STRA-338 params r01: MTP attention transport proof takes AttendInput; fused MLP run takes MtpGrMlpResidual 2026-11-08 01:59:50 +01:00
Pavlo Ratushnyi 1eae5956c0 STRA-338 params r01: original prompt layer takes PromptWeightOwners and its parts bundle 2026-11-08 01:59:49 +01:00
Pavlo Ratushnyi d0d6d03533 STRA-338 params r03: direct packet batch owns its groups and prepared Gate/Up; project_group_direct is a PacketRun method
PacketRun now holds the expert groups and the prepared Gate/Up Q8 rows, so execute (6 -> 4), operate (7 -> 5),
project_groups (7 -> 5) and execute_direct_packets (12 -> 4) drop them. project_one (7 -> 4) and project_group_direct
(11 -> 4, now PacketRun::project_group_direct) take the DirectRun (actual, packets, cancelled).
BoundRows::packet_run builds the PacketRun that execute_direct_packets used to assemble from 12 arguments.
2026-11-08 01:57:23 +01:00
Pavlo Ratushnyi f02db063c6 STRA-338 params r03: MoePrefillStage::route_shared_micro takes WindowReads, WindowOperands and PrefillLoans
New WindowReads (binding, layer, reads) next to the existing WindowOperands and PrefillLoans (9 -> 3 parameters),
the same shape combine_micro already uses.

Files:
crates/engine-qwen35-cuda/src/qwen_forward/executor_prefill_chunk/prepare_micro_ffn_rows_fn/ffn_rows.rs
2026-11-08 01:57:22 +01:00
Pavlo Ratushnyi 27433ac8aa STRA-338 params r03: GdnStage::step_chunk_batch takes the PromptLayer
binding, layer, cache and the lent device context are the existing PromptLayer (8 -> 5 parameters).

Files:
crates/engine-qwen35-cuda/src/qwen_forward/executor_prefill_chunk/prepare_micro_ffn_rows_fn/gdn_native.rs
2026-11-08 01:57:22 +01:00
Pavlo Ratushnyi 3bd4589873 STRA-338 params r03: GdnStage::step and step_projected take the GdnLayerInput
The binding, layer and residual input of a GDN step already travel together as GdnLayerInput;
step (6 -> 4) and step_projected (7 -> 5) now take it instead of three separate arguments.
Callers build the struct from the same values in the same order.

Files:
crates/engine-qwen35-cuda/src/qwen_forward/executor_prefill_chunk/impl_qwenforward/impl_qwenforward_3/host_attention.rs
2026-11-08 01:57:22 +01:00
Pavlo Ratushnyi 1bf6949ec3 Merge branch 'claude/par-h04' into claude/hexagonal-finish-14ee3a
# Conflicts:
#	crates/engine-qwen35-cuda/src/qwen_forward/gdn_verification/compute_row_fn/compute_row_fn_2.rs
2026-11-08 01:36:57 +01:00
Pavlo Ratushnyi f5887b48ec Merge branch 'claude/par-h02' into claude/hexagonal-finish-14ee3a
# Conflicts:
#	crates/cuda-driver/src/gr_native_batch/impl_grnativebatch/native_gemm_launch.rs
#	crates/cuda-driver/src/qsa_resident_device/impl_originalqsaresidentselection.rs
#	crates/cuda-driver/src/qsa_resident_index_program/impl_qsapromptindexworkspace.rs
2026-11-08 01:35:23 +01:00
Pavlo Ratushnyi 3d5627ce8c Merge branch 'claude/par-h03' into claude/hexagonal-finish-14ee3a
# Conflicts:
#	crates/cuda-driver/src/qsa_prompt_attention.rs
#	crates/cuda-driver/src/qsa_prompt_attention/impl_qsapromptattention/prompt_attention_owner.rs
#	crates/cuda-driver/src/root_exports.rs
#	crates/cuda-driver/src/routed_group_workspace_gpu/down_case.rs
2026-11-08 01:34:53 +01:00
Pavlo Ratushnyi b698bc5a07 STRA-338 params h04: rename mechanically named modules of the touched families (cached_step, stage_steps, projection, profile_build, route_micro, step_batch) 2026-11-08 01:34:32 +01:00
Pavlo Ratushnyi 23b25ec28e STRA-338 params h03: shared tail, routed workspace/queue and their proofs take domain structs; numbered QSA/dispatch files renamed by content 2026-11-08 01:33:22 +01:00
Pavlo Ratushnyi 3d38a23cc3 Merge branch 'claude/par-p01' into claude/hexagonal-finish-14ee3a 2026-11-08 01:30:29 +01:00
Pavlo Ratushnyi 27b3038904 STRA-338 params p01: split native_pack/dense_files.rs (pack_publication) and deploy e2e harness.rs (harness/up_plan) under 400 lines 2026-11-08 01:30:18 +01:00
Pavlo Ratushnyi d691b7bc12 STRA-338 params h04: MoE prefill batch (combine window, loans, window operands) takes grouped operands 2026-11-08 01:26:25 +01:00
Pavlo Ratushnyi d2d8f17ebd STRA-338 params h04: shared-permanent profile build (profile file/request, pool seed, quartet room, pinned source) takes grouped operands 2026-11-08 01:26:24 +01:00
Pavlo Ratushnyi 32ceea0fd9 STRA-338 params h04: dense weight cache (PLE matrix expectation, QSA selection request) takes grouped operands 2026-11-08 01:26:24 +01:00
Pavlo Ratushnyi 73b79d5ca7 Merge branch 'claude/par-p04' into claude/hexagonal-finish-14ee3a 2026-11-08 01:24:17 +01:00
Pavlo Ratushnyi e3e8c7acc1 STRA-338 params p04: split remote_experts.rs (device_image child module), PrefillOffload generic instead of dyn 2026-11-08 01:24:09 +01:00
Pavlo Ratushnyi e5661723eb STRA-338 params h02: MoE prompt device prepare takes SharedExpertLayout 2026-11-08 01:23:47 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 eb780392b8 STRA-338 params: ExpertCache::choose_loan takes LoanRequest, QsaPromptAttention::attend_selected takes QsaPromptSources (no external callers)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 01:22:46 +01:00
Pavlo Ratushnyi f2aa4093d0 STRA-338 params h04: gdn family (gates, recur, projections, step phases, chunk rows, mirror, chain, prompt device) takes grouped operands 2026-11-08 01:21:30 +01:00
Pavlo Ratushnyi 94031dc391 STRA-338 params h02: PLE batch queue compose takes PleBatchSources; scan takes ScanExtent 2026-11-08 01:20:55 +01:00
Pavlo Ratushnyi d8a960e46d STRA-338 params h02: stream-all stager run entry points take OriginalStreamPair and OriginalStreamAllPass; walk takes WalkedLayer 2026-11-08 01:20:54 +01:00
Pavlo Ratushnyi e009182533 STRA-338 params h02: original sampler takes SampleWindow and SampleRequest; kernel launch takes SamplerLaunchShape 2026-11-08 01:20:54 +01:00
Pavlo Ratushnyi 7b43b56e7a STRA-338 params h02: PCIe copy smoke run_rounds and check_round take fewer parameters 2026-11-08 01:20:53 +01:00
Pavlo Ratushnyi 5285097511 STRA-338 params h02: public prefill plan takes OriginalMtpPrefillRequest 2026-11-08 01:20:53 +01:00
Pavlo Ratushnyi cffd79cbc7 STRA-338 params h02: MTP actor adopt and admit take OriginalMtpLoadedParts; draft head takes OriginalMainHead 2026-11-08 01:20:52 +01:00
Pavlo Ratushnyi 8223ee2628 STRA-338 params h02: MoE prompt device GEMM, scan, run, copy ring and layer methods take named structs 2026-11-08 01:20:51 +01:00
Pavlo Ratushnyi c9d42e565b STRA-338 params h02: file expert source arena fill, ranking and exchange copy take named structs 2026-11-08 01:20:43 +01:00
Pavlo Ratushnyi 68aabec645 STRA-338 params h02: session layout takes OriginalLayerBounds and OriginalSessionShape; QSA rope init takes OriginalRopeSetup 2026-11-08 01:20:42 +01:00
Pavlo Ratushnyi 0440629841 STRA-338 params h02: native head finish_same_stream drops the unused path binding 2026-11-08 01:20:42 +01:00
Pavlo Ratushnyi 1da95236fe Merge branch 'claude/par-p03' into claude/hexagonal-finish-14ee3a 2026-11-08 01:17:16 +01:00
Pavlo Ratushnyi 4989e85084 Merge branch 'claude/par-p04' into claude/hexagonal-finish-14ee3a 2026-11-08 01:17:15 +01:00
Pavlo Ratushnyi 0a28a049dc Merge branch 'claude/par-p05' into claude/hexagonal-finish-14ee3a
# Conflicts:
#	crates/cuda-driver/src/experimental_gpu_smoke.rs
2026-11-08 01:17:14 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b4d4626273 STRA-338 params: mechanical regrouping in files the speed-vs-strata session may touch (record/launch/inject/down)
Files changed outside the burn-down slices (for the speed session to rebase onto):
crates/cuda-driver/src/mtp_original_prefill.rs, mtp_original_prefill/impl_originalmtpprefill.rs, .../record_walk.rs, .../record_operands.rs,
mtp_original_int8_ffi.rs, mtp_original_int8_ffi/enabled.rs, mtp_original_int8_ffi/impl_arguments.rs, mtp_original_int8.rs,
mtp_original_int8/impl_mtporiginalint8/impl_mtporiginalint8_2_2.rs, mtp_original_full_forward/impl_originalmtpforwardprogram.rs,
mtp_dense_kv.rs, root_exports.rs;
crates/engine-qwen35-cuda/src/qwen_forward/original_mtp_prefill.rs, prompt_device_rows.rs,
executor_original_prompt/.../forward_draft.rs, gr_batch_chunk/inject_batch_fns.rs, gr_batch_chunk/impl_grstage_2.rs,
moe_group_chunk.rs, moe_group_chunk/project_group_{direct_fn,fn,shared_fns}.rs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 01:17:00 +01:00
Pavlo Ratushnyi 5871533f32 STRA-338 params h03: qwen_dispatch fixed-ABI kernels take operand groups (fixed_operands.rs), selected-KV misses, verification journal rows 2026-11-08 01:12:08 +01:00
Pavlo Ratushnyi 48417b6b41 STRA-338 params p04: gptoss family (gptoss, igpu, gptoss-igpu, gptoss-npu, gpu-npu-worker, npu-service) down to 5 parameters; domain names for the experimental-ref structs 2026-11-08 01:05:51 +01:00
Pavlo Ratushnyi 6713a07820 STRA-338 params p03: boolean and unit names on the new structs; keep serve_loop.rs under the file limit 2026-11-08 01:05:38 +01:00
Pavlo Ratushnyi 2dbfd6d581 STRA-338 params h02: cuBLAS and kernel-module wrappers take GemmOperands, GemmDims, GemmScalars, LinearLaunch, ClusterShape; call sites adapted 2026-11-08 01:05:36 +01:00
Pavlo Ratushnyi 66bf072382 STRA-338 params p05: domain-named DTOs, fewer bundles (Attend*, Owner thread, client link, control vector, resolve index), naming checklist, meaningful file names 2026-11-08 01:04:28 +01:00
Pavlo Ratushnyi dbeb968a1f Merge branch 'claude/par-h01' into claude/hexagonal-finish-14ee3a 2026-11-08 01:02:12 +01:00