Merge claude/debt-low-docs: 52 modules named by responsibility instead of two things joined by _and_
Linux / keyless-cuda-gate (push) Skipped
Rust port / port-fast (push) Failing after 34s
Linux / verify (push) Failing after 1m0s
Linux / keyless-cuda (push) Skipped
Linux / static-cuda-package (push) Skipped
Linux / hosted-cuda-package (push) Skipped
Linux / linux-static-cli (push) Skipped
Linux / linux-cli-container (push) Skipped
Linux / release-cli (push) Skipped
Rust port / port-oracles (push) Failing after 44s
Rust port / port-typecheck (push) Successful in 1m1s
Rust port / port-linux-tests (push) Failing after 47s
Product / product (push) Failing after 29m26s

This commit is contained in:
Pavlo Ratushnyi
2026-11-14 21:41:14 +01:00
105 changed files with 132 additions and 131 deletions
+2 -2
View File
@@ -92,7 +92,7 @@
{"crate": "leleka-gptoss-npu", "file": "src/service_transfers.rs", "ratchet": "instant-now", "reason": "measurement timer, not decision logic: transfer wall-time measurement toward the NPU service"},
{"crate": "leleka-gpu-npu-worker", "file": "src/lib.rs", "ratchet": "instant-now", "reason": "measurement timer, not decision logic: wall-time measurement of the split prefill passes, reported in the timing line"},
{"crate": "leleka-gpu-npu-worker", "file": "src/split_run.rs", "ratchet": "instant-now", "reason": "measurement timer, not decision logic: lap timers of the GPU and NPU legs of the split prefill"},
{"crate": "leleka-igpu", "file": "src/matrices_and_moe_plan.rs", "ratchet": "instant-now", "reason": "measurement timer, not decision logic: wall-time measurement of the weight upload, reported at load"},
{"crate": "leleka-igpu", "file": "src/matrix_uploads.rs", "ratchet": "instant-now", "reason": "measurement timer, not decision logic: wall-time measurement of the weight upload, reported at load"},
{"crate": "leleka-npu-service", "file": "src/engine/execution.rs", "ratchet": "instant-now", "reason": "measurement timer, not decision logic: lap timers of one NPU execution, summed into the profile report"},
{"crate": "leleka-model-format", "file": "src/bulk_read/for_each_chunk.rs", "ratchet": "instant-now", "reason": "measurement timer, not decision logic: wall-time measurement of the bulk read, reported in the load report"},
{"crate": "leleka-model-format", "file": "src/huge_pages.rs", "ratchet": "instant-now", "reason": "measurement timer, not decision logic: wall-time measurement of the huge-page allocation probe, reported in the load report"},
@@ -111,7 +111,7 @@
{"crate": "leleka-experimental-ref", "file": "src/remote_experts.rs", "ratchet": "dyn-trait", "reason": "parameter struct Candidates borrows the primary's residency test from the caller's table; generic parameters would leak into every caller's signature"},
{"crate": "leleka-cpu-worker", "file": "src/engine.rs", "ratchet": "dyn-trait", "reason": "port boundary: the engine holds the prefill accelerator (iGPU, NPU or split) as Box<dyn PrefillAccelerator + Send>, chosen by the worker binary"},
{"crate": "leleka-cpu-worker", "file": "src/serve.rs", "ratchet": "dyn-trait", "reason": "dyn-compatible worker trait: the progress callback of a trait method must be a trait object"},
{"crate": "leleka-gptoss", "file": "src/state_and_cache.rs", "ratchet": "dyn-trait", "reason": "port boundary: PrefillAccelerator and LayerCache are the accelerator seams, chosen by the worker binary; their methods take the progress callback as a trait object"},
{"crate": "leleka-gptoss", "file": "src/decode_state.rs", "ratchet": "dyn-trait", "reason": "port boundary: PrefillAccelerator and LayerCache are the accelerator seams, chosen by the worker binary; their methods take the progress callback as a trait object"},
{"crate": "leleka-gptoss", "file": "src/model.rs", "ratchet": "dyn-trait", "reason": "port boundary: the model's weights read through Arc<dyn ModelBytes> (file, memory map or test bytes), chosen when the model is loaded"},
{"crate": "leleka-gptoss", "file": "src/tensor_loading.rs", "ratchet": "dyn-trait", "reason": "port boundary: the model's weights read through Arc<dyn ModelBytes> (file, memory map or test bytes), chosen when the model is loaded"},
{"crate": "leleka-gptoss", "file": "src/weights.rs", "ratchet": "dyn-trait", "reason": "port boundary: the model's weights read through Arc<dyn ModelBytes> (file, memory map or test bytes), chosen when the model is loaded"},
+2 -2
View File
@@ -169,5 +169,5 @@ mod rope_scaling_type;
pub use rope_scaling_type::*;
mod rope_table;
pub use rope_table::*;
mod setup_rope_error_and_resolve;
pub use setup_rope_error_and_resolve::*;
mod setup_rope_resolution;
pub use setup_rope_resolution::*;
@@ -1,4 +1,5 @@
//! Attention score and weighted-sum kernels, SwiGLU, f16 conversion and the softmax exponent sum.
//! The argument-checked scalar and AVX2 entry points of the attention score and weighted-sum kernels; the elementwise
//! kernels (SwiGLU, f16 conversion, the softmax exponent sum) are the second clause of the same checked surface.
use super::{AttnShape, KernelError, ScoreSpec, check_scores, check_swiglu, check_weighted_sum, simd};
#[cfg(target_arch="x86_64")]
+5 -5
View File
@@ -127,22 +127,22 @@ pub use portable::{
dot_q8_0_q8_0_scalar, dot_q8_0_q8r_multi_scalar, f32_to_f16_bits_scalar, mxfp4_q8_0_isums_scalar,
q8_0_q8_0_isums_scalar, quantize_q8_0_scalar,
};
mod avx2_and_avxvnni;
mod x86_dot_kernels;
#[cfg(target_arch = "x86_64")]
pub use avx2_and_avxvnni::{
pub use x86_dot_kernels::{
dot_i4i8_avx2, dot_i4i8_avxvnni, dot_i8i8_avx2, dot_i8i8_avxvnni, dot_mxfp4_q8_0_avx2, dot_mxfp4_q8_0_avxvnni,
dot_mxfp4_q8r_avx2, dot_mxfp4_q8r4_avx2, dot_mxfp4_q8r4_avxvnni, dot_mxfp4_q8r4_multi_avx2,
dot_mxfp4_q8r4_multi_avxvnni, dot_q8_0_q8_0_avx2, dot_q8_0_q8_0_avxvnni, dot_q8_0_q8r_multi_avx2,
dot_q8_0_q8r_multi_avxvnni, f32_to_f16_bits_f16c, mxfp4_q8_0_isums_avx2, mxfp4_q8_0_isums_avxvnni,
q8_0_q8_0_isums_avx2, q8_0_q8_0_isums_avxvnni, quantize_q8_0_avx2,
};
mod attention_and_elementwise;
mod checked_attention_kernels;
#[cfg(target_arch = "x86_64")]
pub use attention_and_elementwise::{
pub use checked_attention_kernels::{
attn_scores_avx2, attn_scores_f16_avx2, attn_weighted_sum_avx2, attn_weighted_sum_f16_avx2, exp_shift_sum_avx2,
f16_to_f32_slice_avx2, f32_to_f16_slice_avx2, swiglu_oai_avx2,
};
pub use attention_and_elementwise::{
pub use checked_attention_kernels::{
attn_scores_f16_scalar, attn_scores_scalar, attn_weighted_sum_f16_scalar, attn_weighted_sum_scalar,
exp_shift_sum_scalar, f16_to_f32_slice_scalar, f32_to_f16_slice_scalar, swiglu_oai_scalar,
};
+9 -9
View File
@@ -79,19 +79,19 @@ pub const MULTI_MAX: usize = 16;
#[cfg(target_arch = "x86_64")]
pub mod x86;
mod scalar_dots_and_formats;
use scalar_dots_and_formats::load_u16;
pub use scalar_dots_and_formats::{
mod scalar_dot_kernels;
use scalar_dot_kernels::load_u16;
pub use scalar_dot_kernels::{
attn_scores_f16_scalar, attn_scores_scalar, attn_weighted_sum_f16_scalar, attn_weighted_sum_scalar,
dot_mxfp4_q8_0_scalar, dot_mxfp4_q8r_scalar, dot_q8_q8r_scalar, mxfp4_q8_0_isums_scalar,
};
pub use scalar_dots_and_formats::{dot_i4i8_scalar, dot_i8i8_scalar};
pub use scalar_dots_and_formats::{e8m0_half, f16_to_f32, f32_to_f16};
mod scalar_tiles_and_elementwise;
use scalar_tiles_and_elementwise::dot_i4i8_tail;
pub use scalar_tiles_and_elementwise::{
pub use scalar_dot_kernels::{dot_i4i8_scalar, dot_i8i8_scalar};
pub use scalar_dot_kernels::{e8m0_half, f16_to_f32, f32_to_f16};
mod scalar_tile_kernels;
use scalar_tile_kernels::dot_i4i8_tail;
pub use scalar_tile_kernels::{
dot_mxfp4_q8r_multi_scalar, dot_q8_0_q8r_multi_scalar, exp_shift_sum_scalar, f16_to_f32_slice_scalar,
f32_to_f16_slice_scalar, mxfp4_q8r_tile_scalar, prepare_act, q8_q8r_tile_scalar, quantize_q8_0_scalar,
swiglu_oai_scalar,
};
pub use scalar_tiles_and_elementwise::{dot_q8_0_q8_0_scalar, q8_0_q8_0_isums_scalar};
pub use scalar_tile_kernels::{dot_q8_0_q8_0_scalar, q8_0_q8_0_isums_scalar};
+10 -10
View File
@@ -181,30 +181,30 @@ multi_kernel!(
|xb, ib| (_mm256_loadu_si256(xb.add(2) as *const __m256i), half_to_f32(xb))
);
mod reductions_and_int_dots;
use reductions_and_int_dots::{block_p32_avx2, mx_table, mx_values};
use reductions_and_int_dots::{cvt_f32_f16, half_to_f32, hsum_epi32, hsum_ps};
pub use reductions_and_int_dots::{dot_i4i8_avx2, dot_i4i8_avxvnni, dot_i8i8_avx2, dot_i8i8_avxvnni};
mod int_dot_kernels;
use int_dot_kernels::{block_p32_avx2, mx_table, mx_values};
use int_dot_kernels::{cvt_f32_f16, half_to_f32, hsum_epi32, hsum_ps};
pub use int_dot_kernels::{dot_i4i8_avx2, dot_i4i8_avxvnni, dot_i8i8_avx2, dot_i8i8_avxvnni};
mod mxfp4_q8_dots;
use mxfp4_q8_dots::{block_p32_vnni, mxfp4_scaled_fma};
pub use mxfp4_q8_dots::{
dot_mxfp4_q8_0_avx2, dot_mxfp4_q8_0_avxvnni, dot_mxfp4_q8r_avx2, dot_mxfp4_q8r4_avx2, mxfp4_q8_0_isums_avx2,
mxfp4_q8_0_isums_avxvnni,
};
mod q8_dots_and_mxfp4_tiles;
pub use q8_dots_and_mxfp4_tiles::dot_mxfp4_q8r4_avxvnni;
pub use q8_dots_and_mxfp4_tiles::{
mod q8_0_dot_kernels;
pub use q8_0_dot_kernels::dot_mxfp4_q8r4_avxvnni;
pub use q8_0_dot_kernels::{
dot_q8_0_q8_0_avx2, dot_q8_0_q8_0_avxvnni, q8_0_q8_0_isums_avx2, q8_0_q8_0_isums_avxvnni,
};
use q8_dots_and_mxfp4_tiles::{mx_table_biased, mxfp4_tile_avx2};
use q8_0_dot_kernels::{mx_table_biased, mxfp4_tile_avx2};
mod tile_kernels;
use tile_kernels::{decoded_p32_avx2, decoded_p32_vnni, multi_reduce};
pub use tile_kernels::{mxfp4_q8r_tile_avx2, mxfp4_q8r_tile_avxvnni, q8_q8r_tile_avx2, q8_q8r_tile_avxvnni};
mod attention_kernels;
use attention_kernels::{WeightedSum, attn_dot_f16, exp256, load_f16x8};
pub use attention_kernels::{attn_scores_avx2, attn_weighted_sum_avx2};
mod f16_attention_and_elementwise;
pub use f16_attention_and_elementwise::{
mod f16_attention_kernels;
pub use f16_attention_kernels::{
attn_scores_f16_avx2, attn_weighted_sum_f16_avx2, exp_shift_sum_avx2, f16_to_f32_slice_avx2, f32_to_f16_f16c,
f32_to_f16_slice_avx2, swiglu_oai_avx2,
};
@@ -8,5 +8,5 @@ use super::{
poison_slots, s_gemv_entry_index, s_gemv_slots, s_operand_bytes,
};
mod closed_kernels_flash_and_s_gemv;
mod closed_kernels_launches;
mod closed_kernels_open_admit_run;
+2 -2
View File
@@ -67,12 +67,12 @@ fn the_window_and_journal_modules_never_clone_a_handle() {
include_str!("../original_verify/window_ops/qsa_prelude_ops.rs"),
include_str!("../original_verify/window_ops/side_qsa_branches.rs"),
include_str!("../original_verify/window_ops/side_shared_expert.rs"),
include_str!("../original_verify/window_ops/window_ops_kernels_and_pcie_plan.rs"),
include_str!("../original_verify/window_ops/window_step_recording.rs"),
];
let journals = [
include_str!("../original_verify/original_verify_gdn_journal/verify_gdn_fused_step.rs"),
include_str!("../original_verify/original_verify_gdn_journal/verify_gdn_journal_ladder_logits_scan.rs"),
include_str!("../original_verify/original_verify_gdn_journal/verify_gdn_journal_stage_and_commit.rs"),
include_str!("../original_verify/original_verify_gdn_journal/verify_gdn_journal_commit.rs"),
include_str!("../original_verify/original_verify_gdn_journal/verify_gdn_journal_window_launches.rs"),
include_str!("../qsa_prompt_index/resident_index/verification_commit/verify_qsa_journal_capture_commit.rs"),
include_str!("../qsa_prompt_index/resident_index/verification_commit/verify_qsa_journal_index_image.rs"),
@@ -10,5 +10,5 @@ use super::{
};
mod attention_launch;
mod program_and_kv_pool_launches;
mod kv_pool_launches;
mod stream_keyless_cvec_launches;
@@ -7,8 +7,8 @@ use super::{
experimental, i32_of, i64_of, invalid, stream_runs,
};
mod q8_gather_and_resolve_launch;
use q8_gather_and_resolve_launch::Q8Gather;
mod q8_gather_launch;
use q8_gather_launch::Q8Gather;
impl<'c> Experimental<'c> {
/// `kv_gather_q8_step`: dequantize the selected cells into fp16 scratch (K and V of the same pool).
+6 -6
View File
@@ -257,12 +257,12 @@ mod original_serve_access;
mod bringup_trace_enabled;
use bringup_trace_enabled::combine;
use bringup_trace_enabled::valid_size;
mod projection_grids_and_bounds;
use projection_grids_and_bounds::projection_ranges;
use projection_grids_and_bounds::projection_shape;
mod projection_geometry;
use projection_geometry::projection_ranges;
use projection_geometry::projection_shape;
#[cfg(test)]
use projection_grids_and_bounds::q4_k_native_indices_fit;
use projection_grids_and_bounds::q5_k_shape;
use projection_geometry::q4_k_native_indices_fit;
use projection_geometry::q5_k_shape;
mod q6_k_shape;
use q6_k_shape::matvec_allocations;
use q6_k_shape::matvec_shape;
@@ -272,7 +272,7 @@ mod context;
mod context_gate_up_projection_admission;
mod context_matvec_k_quant_projections;
mod context_projection_kernel_slots;
mod context_q8_1_and_gate_up_projection;
mod context_routed_gate_up_projection;
mod context_unload_close_destroy;
mod device_buffer;
@@ -8,5 +8,5 @@ use super::{
};
mod mapped_expert_bank_close;
mod mapped_expert_bank_pcie_and_triplets;
mod mapped_expert_bank_pieces_and_pinning;
mod mapped_expert_bank_device_copies;
mod mapped_expert_bank_host_views;
@@ -8,7 +8,7 @@ use super::{
};
mod ring_construction;
mod ring_gather_and_finish;
mod ring_gather;
mod ring_init;
mod ring_prefetch;
pub(super) use ring_prefetch::profile_prefetch;
@@ -7,6 +7,6 @@ use super::{
STATUS, TMP, WD, WG, WIDTHS, XQ, commands, ffi, format_index, kind, layout,
};
mod finite_and_quantize;
mod layer_buffer_checks;
mod group_projection;
mod original_mmq_layer_stage_experts;
@@ -16,7 +16,7 @@ mod original_mtp_prefill_close;
mod projection_commands;
mod record_operands;
mod record_walk;
mod run_and_settle;
mod command_list_execution;
use record_operands::{
Admit, AppendBlock, Block, Call, GrBufs, KernelAt, KernelShape, PageRuns, ProjectionAddresses, ProjectionDims,
Stage, Staged, WEIGHT_EXTENTS,
@@ -331,6 +331,6 @@ use validate_scalar_prefix::push;
use validate_scalar_prefix::validate_scalar_prefix;
mod context_original_mtp_shared_layout;
mod full_forward_prefix_program;
mod matrix_vector_buffers_and_shape;
mod matrix_vector_planning;
mod original_mtp_forward_program;
mod original_mtp_forward_program_original_graph;
@@ -12,5 +12,5 @@ mod original_expert_cache_adaptive_swaps;
mod original_expert_cache_batched_refill;
pub use original_expert_cache_batched_refill::RefillBatchOptions;
mod original_expert_cache_file_slot_fill;
mod original_expert_cache_open_and_slots;
mod original_expert_cache_verify_and_lend;
mod original_expert_cache_slots;
mod original_expert_cache_loans;
@@ -1,7 +1,7 @@
//! Expert cache: the adaptive swap batch (arm event, poll/wait, publish swapped slots) and the queued fills from a
//! mapped bank or probe bytes, with admission checks, the copy stream choice and the liveness guard.
use super::original_expert_cache_open_and_slots::{check_total, span_layer};
use super::original_expert_cache_slots::{check_total, span_layer};
use super::{
Error, MappedExpertBank, OriginalExpertCache, Rc, ResidentExpertBankSpan, Result, RetainedFill, State, api,
combine, ffi,
@@ -1,7 +1,7 @@
//! Expert cache audits and loans: read-back byte verification of a filled slot against its source, lending the cache
//! tail slots to a prefill (choose_loan, lend_prefill_tail, needs_refill), plus poison, close and leak-all teardown.
use super::original_expert_cache_open_and_slots::span_layer;
use super::original_expert_cache_slots::span_layer;
use super::{
Error, MappedExpertBank, OriginalCachePrefix, OriginalExpertCache, OriginalPrefillArena, PrefillLayoutOptions,
ResidentExpertBankSpan, Result, State, combine, ffi,
@@ -116,9 +116,9 @@ pub(crate) enum OriginalFileStreamSource<'source, 'ctx> {
},
}
mod original_resident_options_and_blob;
use original_resident_options_and_blob::key;
use original_resident_options_and_blob::vec_filled;
mod original_file_source_blob;
use original_file_source_blob::key;
use original_file_source_blob::vec_filled;
mod file_expert_source_swap_exchanges;
mod original_file_expert_source_operations;
#[cfg(windows)]
@@ -12,6 +12,6 @@ use super::{
mod build_phases;
mod file_expert_source_cache_complement;
mod file_expert_source_prefetch;
mod file_expert_source_stages_and_blobs;
mod file_expert_source_blobs;
mod file_expert_source_status_counters;
mod fill_workers;
@@ -80,4 +80,4 @@ use library_drop::check;
use library_drop::noop_host_fn;
use library_drop::raise_after_copies;
mod api;
mod async_copies_and_flag_writes;
mod async_copy_flags;
@@ -12,6 +12,6 @@ use super::{
mod original_verify_window;
mod verify_gdn_fused_step;
mod verify_gdn_journal_ladder_logits_scan;
mod verify_gdn_journal_stage_and_commit;
mod verify_gdn_journal_commit;
mod verify_gdn_journal_window_launches;
pub(crate) use original_verify_window::verify_assets_sealed;
@@ -3,7 +3,7 @@
//! `capture_layer_stage` binds for the three Original kernels.
use super::super::gdn_fused::{AbUnrolledStep, FusedGdnBuffers, FusedGdnStep, GateSource, GdnGateOperands, RowSpan};
use super::verify_gdn_journal_stage_and_commit::StageOperands;
use super::verify_gdn_journal_commit::StageOperands;
use super::{EPS, Error, OriginalCapture, OriginalGraphResources, OriginalVerifyGdnJournal, Result, admit};
impl<'ctx> OriginalVerifyGdnJournal<'ctx> {
@@ -11,4 +11,4 @@ use super::{
mod qsa_window_prelude_rows;
mod qsa_window_query_key_paths;
mod qsa_window_select_and_attend;
mod qsa_window_attention_launches;
@@ -9,19 +9,19 @@ use super::{
RESERVE, Rc, RefCell, Result, STATE_WORDS, StagedWindow, combine, diag, kernels, profile, resources,
};
mod verify_bank_and_canonical_gdn_open;
pub(super) use verify_bank_and_canonical_gdn_open::admission;
pub(super) use verify_bank_and_canonical_gdn_open::admit;
pub(super) use verify_bank_and_canonical_gdn_open::check_canonical_lengths;
pub(super) use verify_bank_and_canonical_gdn_open::check_commands;
pub(super) use verify_bank_and_canonical_gdn_open::command;
pub(crate) use verify_bank_and_canonical_gdn_open::gather_rows_module;
pub(super) use verify_bank_and_canonical_gdn_open::handle;
pub(super) use verify_bank_and_canonical_gdn_open::poison;
pub(super) use verify_bank_and_canonical_gdn_open::sealed_asset;
pub(super) use verify_bank_and_canonical_gdn_open::share_window_modules;
pub(super) use verify_bank_and_canonical_gdn_open::transport;
pub(super) use verify_bank_and_canonical_gdn_open::zero;
mod verify_bank_canonical_gdn;
pub(super) use verify_bank_canonical_gdn::admission;
pub(super) use verify_bank_canonical_gdn::admit;
pub(super) use verify_bank_canonical_gdn::check_canonical_lengths;
pub(super) use verify_bank_canonical_gdn::check_commands;
pub(super) use verify_bank_canonical_gdn::command;
pub(crate) use verify_bank_canonical_gdn::gather_rows_module;
pub(super) use verify_bank_canonical_gdn::handle;
pub(super) use verify_bank_canonical_gdn::poison;
pub(super) use verify_bank_canonical_gdn::sealed_asset;
pub(super) use verify_bank_canonical_gdn::share_window_modules;
pub(super) use verify_bank_canonical_gdn::transport;
pub(super) use verify_bank_canonical_gdn::zero;
mod original_verify_bank;
mod physical;
mod verify_bank_plan_and_window_rows;
mod verify_bank_plan_access;
@@ -115,7 +115,7 @@ mod window_launches;
mod qsa_prelude_ops;
mod side_qsa_branches;
mod side_shared_expert;
mod window_ops_kernels_and_pcie_plan;
mod window_step_recording;
mod wait_rows;
#[cfg(test)]
pub(crate) use original_verifier::graph_oom_at;
@@ -1,6 +1,6 @@
//! The launches and plan words of `OriginalVerifyWindowOps`: the GDN side stream, embedding, the plan and its group
//! offsets, the journal and submit.
//! Apart from `window_ops_kernels_and_pcie_plan.rs`, which implements the `WindowOps` kernels.
//! Apart from `window_step_recording.rs`, which implements the `WindowOps` kernels.
use super::{
Arg, Command, Error, Launch, OriginalVerifyGdnJournal, OriginalVerifyGeometry, OriginalVerifyWindowOps, PlanLayout,
@@ -84,4 +84,4 @@ pub(crate) struct KernelModule {
mod library;
use library::check;
mod blas;
mod kernel_module_launch_and_close;
mod kernel_module;
@@ -49,7 +49,7 @@ mod resident_attention;
pub(crate) use resident_attention::OriginalQsaAttendedKv;
pub use resident_attention::OriginalQsaResidentAttention;
mod attention_kernel_plan_and_passes;
mod attention_launch_plan;
mod qsa_attention_inputs;
mod qsa_prompt_attention_drop;
pub(crate) use qsa_prompt_attention_drop::guard_grid;
@@ -1,5 +1,5 @@
//! Same literal attention on the real selected query/IDs/steps/attn arena.
use super::attention_kernel_plan_and_passes::AttnPasses;
use super::attention_launch_plan::AttnPasses;
use super::{Error, NativeBatchWorkspace, QsaAttendedKv, QsaPromptAttention, QsaPromptStage, Result};
impl<'ctx> QsaPromptAttention<'ctx> {
pub(crate) fn attend_original_arena(
@@ -1,5 +1,5 @@
//! Same literal attention on the real selected query/IDs/steps/attn arena.
use super::attention_kernel_plan_and_passes::{AttnPasses, KernelEntry, admit_budget};
use super::attention_launch_plan::{AttnPasses, KernelEntry, admit_budget};
use super::{
Arguments, Context, Error, LaunchGeometry, Module, NativeBatchWorkspace, QsaPromptAttention, Result,
SelectSwitches, checked, combine,
+1 -1
View File
@@ -86,7 +86,7 @@ use max_blocks::max_blocks;
use max_blocks::sizes;
mod append_select;
mod index_run;
mod qsa_prompt_index_read_and_close;
mod qsa_prompt_index_results;
mod qsa_prompt_index_workspace;
mod run_launches;
mod run_phases;
@@ -7,5 +7,5 @@ use super::{
QsaPromptKv, Rc, Result, SelectedRows, checked, stage_runs,
};
mod qsa_mapped_journal_append_and_resolve;
mod qsa_mapped_journal_prefix_and_prefetch;
mod qsa_mapped_journal_arena;
mod qsa_mapped_journal_prefix_lineage;
@@ -8,5 +8,5 @@ use super::{
};
mod native_projection;
mod qkv_and_z_projections;
mod recurrence_and_output;
mod gdn_batch_input_stages;
mod gdn_batch_recurrence_stages;
+9 -9
View File
@@ -23,15 +23,15 @@ use qsa_layout::gdn_layout;
use qsa_layout::moe_layout;
use qsa_layout::ple_layout;
pub(super) use qsa_layout::qsa_layout;
mod asset_validation_and_bf16_layout;
pub(super) use asset_validation_and_bf16_layout::bf16_layout;
use asset_validation_and_bf16_layout::gdn_asset;
use asset_validation_and_bf16_layout::gr_asset;
use asset_validation_and_bf16_layout::inspect_ptx;
pub(super) use asset_validation_and_bf16_layout::kar_ple_layout;
use asset_validation_and_bf16_layout::moe_asset;
use asset_validation_and_bf16_layout::ple_asset;
use asset_validation_and_bf16_layout::qsa_asset;
mod asset_admission;
pub(super) use asset_admission::bf16_layout;
use asset_admission::gdn_asset;
use asset_admission::gr_asset;
use asset_admission::inspect_ptx;
pub(super) use asset_admission::kar_ple_layout;
use asset_admission::moe_asset;
use asset_admission::ple_asset;
use asset_admission::qsa_asset;
mod asset;
pub(super) use asset::asset;
pub(crate) use asset::sha256;
+2 -2
View File
@@ -108,7 +108,7 @@ pub struct CvecTables {
#[cfg(test)]
mod tests;
mod cvec_reading_and_errors;
pub use cvec_reading_and_errors::*;
mod cvec_reader;
pub use cvec_reader::*;
mod load_control_vectors;
pub use load_control_vectors::*;
+1 -1
View File
@@ -110,7 +110,7 @@ fn fail(e: impl std::fmt::Display) -> ModelError {
#[cfg(test)]
mod tests;
mod construction_and_estimates;
mod npu_prefill_setup;
mod service_transfers;
mod prefill_batch;
mod prefill_part_pass;
+4 -4
View File
@@ -37,8 +37,8 @@ const DEFAULT_PREFILL_CHUNK: usize = 64;
#[cfg(test)]
mod tests;
mod bytes_and_errors;
pub use bytes_and_errors::{ModelBytes, ModelError};
mod model_bytes;
pub use model_bytes::{ModelBytes, ModelError};
mod config;
pub use config::Config;
mod weights;
@@ -54,8 +54,8 @@ mod model;
pub use model::Model;
mod profile;
pub use profile::Profile;
mod state_and_cache;
pub use state_and_cache::{LayerCache, PrefillAccelerator, PrefillJob, PrefillOffload, PrefillSpan, Reuse, State};
mod decode_state;
pub use decode_state::{LayerCache, PrefillAccelerator, PrefillJob, PrefillOffload, PrefillSpan, Reuse, State};
mod scalar_numerics;
use scalar_numerics::{argmax, dequantize_q8_0_row, f32_to_half_bits, half_to_f32};
mod parallel_jobs;
@@ -1,4 +1,4 @@
//! The weight kind and the error of the GPU backend.
//! The error of the GPU backend, with the weight kind its upload and shape errors name.
use super::fmt;
+5 -5
View File
@@ -22,8 +22,8 @@ const MXFP4_BYTES: usize = 17;
#[cfg(test)]
mod tests;
mod error_and_kind;
pub use error_and_kind::{GpuError, WeightKind};
mod gpu_error;
pub use gpu_error::{GpuError, WeightKind};
mod handles;
pub use handles::{Buf, GpuActivations, GpuMatrix};
mod params;
@@ -43,10 +43,10 @@ pub use repacking::{repack_activations, repack_mxfp4};
mod device;
pub use device::Gpu;
use device::{entry, groups_1d};
mod matrices_and_moe_plan;
mod matrix_uploads;
mod readback;
mod recorder_core;
pub use recorder_core::Recorder;
mod recorder_attention_and_submit;
mod recorder_attention;
mod recorder_moe;
mod recorder_norm_and_routing;
mod recorder_activation_passes;
+6 -6
View File
@@ -10,15 +10,15 @@ mod gemm;
mod gemm_template;
pub use gemm::*;
mod tiling_norm_and_rope;
pub use tiling_norm_and_rope::{RMSNORM_QUANT, ROPE, TILE_M, TILE_N};
mod rmsnorm_rope_shaders;
pub use rmsnorm_rope_shaders::{RMSNORM_QUANT, ROPE, TILE_M, TILE_N};
mod kv_store;
pub use kv_store::KV_STORE;
mod attention;
pub use attention::ATTENTION;
mod quantize_and_swiglu;
pub use quantize_and_swiglu::{QUANTIZE, SWIGLU_QUANT};
mod routing_and_combine;
pub use routing_and_combine::{MOE_COMBINE, ROUTER};
mod quantize_shaders;
pub use quantize_shaders::{QUANTIZE, SWIGLU_QUANT};
mod expert_routing_shaders;
pub use expert_routing_shaders::{MOE_COMBINE, ROUTER};
mod f16_round;
use f16_round::F16_ROUND;
@@ -118,4 +118,4 @@ use job_default::now_ms;
mod epoch_scheduling;
mod expert_pool;
mod expert_pool_split_multi_run;
mod shared_wait_done_and_quantize_lanes;
mod phase_handoff;
+2 -2
View File
@@ -32,8 +32,8 @@ pub use c_api_types::Element;
use c_api_types::{CompileFns, CoreFns, DevicesFns, Fns, ModelFns, RawDevices, RawShape, RequestFns, Status, TensorFns};
mod library;
pub use library::OpenVino;
mod compile_and_infer;
pub use compile_and_infer::{Compiled, Core, Request};
mod inference_runtime;
pub use inference_runtime::{Compiled, Core, Request};
mod tensor;
pub use tensor::Tensor;
use tensor::cstring;

Some files were not shown because too many files have changed in this diff Show More