STRA-338 params e02: rename mechanically named modules of the touched families (prompt_chunk_forward, executor_construction, read_completion, resident_layer, native_projection_row, projection_rows, mtp_block, routed_and_shared_experts, batch_inject)

This commit is contained in:
Pavlo Ratushnyi
2026-11-08 02:27:44 +01:00
parent 7c56ce7ccc
commit 7fedb835fe
18 changed files with 52 additions and 52 deletions
@@ -3,7 +3,7 @@
#[allow(unused_imports)]
use super::*;
#[path = "impl_originalpromptexecutor_2/impl_originalpromptexecutor.rs"]
mod impl_originalpromptexecutor;
#[path = "impl_originalpromptexecutor_2/executor_construction.rs"]
mod executor_construction;
#[path = "impl_originalpromptexecutor_2/impl_originalpromptexecutor_2_2.rs"]
mod impl_originalpromptexecutor_2_2;
@@ -3,7 +3,7 @@
#[allow(unused_imports)]
use super::*;
#[path = "impl_originalpromptexecutor_2_2/impl_originalpromptexecutor.rs"]
mod impl_originalpromptexecutor;
#[path = "impl_originalpromptexecutor_2_2/impl_originalpromptexecutor_2.rs"]
mod impl_originalpromptexecutor_2;
#[path = "impl_originalpromptexecutor_2_2/prompt_chunk_forward.rs"]
mod prompt_chunk_forward;
@@ -53,9 +53,9 @@ mod impl_grmicroinput;
pub(super) use impl_grmicroinput::micro_driver_error;
#[allow(unused_imports)]
pub(super) use impl_grmicroinput::save_micro_values;
#[path = "gr_batch_chunk/batch_inject.rs"]
mod batch_inject;
#[path = "gr_batch_chunk/impl_grstage.rs"]
mod impl_grstage;
#[path = "gr_batch_chunk/impl_grstage_2.rs"]
mod impl_grstage_2;
#[path = "gr_batch_chunk/inject_batch_fns.rs"]
mod inject_batch_fns;
@@ -1,9 +1,9 @@
//! Moved out of the parent module by STRA-338: impl GrStage.
#[allow(unused_imports)]
use super::inject_batch_fns::{device_inject, gather_batch};
use super::batch_inject::{device_inject, gather_batch};
#[cfg(all(any(target_os = "linux", target_os = "windows"), target_arch = "x86_64"))]
use super::inject_batch_fns::{finish_queued, queued_inject};
use super::batch_inject::{finish_queued, queued_inject};
use super::*;
impl GrStage {
@@ -9,7 +9,7 @@ use leleka_cuda_driver::{MmqWorkspace, OriginalMmqLayer};
mod gather_fns;
#[path = "moe_mmq_adaptive/walk_fns.rs"]
mod walk_fns;
use super::resident_fns::{LayerResources, Resident, RoutedGroups};
use super::resident_layer::{LayerResources, Resident, RoutedGroups};
use walk_fns::{SlotState, Walk};
pub(super) fn execute_adaptive_groups<'ctx>(
@@ -8,10 +8,10 @@ mod admission_fns;
#[cfg(all(any(target_os = "linux", target_os = "windows"), target_arch = "x86_64"))]
#[path = "moe_mmq_adaptive.rs"]
mod original_adaptive;
#[path = "moe_mmq_chunk/resident_fns.rs"]
mod resident_fns;
#[path = "moe_mmq_chunk/resident_layer.rs"]
mod resident_layer;
use admission_fns::{mmq_triplets, rows_supported};
use resident_fns::{Resident, execute_resident};
use resident_layer::{Resident, execute_resident};
impl MoeExpertStage {
pub(in crate::qwen_forward) fn execute_chunk_mmq<'ctx>(
@@ -47,42 +47,42 @@ struct S2Tile {
#[cfg(test)]
mod tests;
mod impl_mtpblock;
mod mtp_block;
#[allow(unused_imports)]
use impl_mtpblock::admit_input;
use mtp_block::admit_input;
#[allow(unused_imports)]
use impl_mtpblock::compose_bound;
use mtp_block::compose_bound;
#[allow(unused_imports)]
use impl_mtpblock::moe_driver_error;
use mtp_block::moe_driver_error;
#[allow(unused_imports)]
use impl_mtpblock::route_mixed;
use mtp_block::route_mixed;
#[allow(unused_imports)]
use impl_mtpblock::validate_route;
mod route_fn;
use mtp_block::validate_route;
mod routed_and_shared_experts;
#[allow(unused_imports)]
use route_fn::combine_uploaded;
use routed_and_shared_experts::combine_uploaded;
#[allow(unused_imports)]
use route_fn::compose;
use routed_and_shared_experts::compose;
#[allow(unused_imports)]
use route_fn::down_tile;
use routed_and_shared_experts::down_tile;
#[allow(unused_imports)]
use route_fn::gate_up_tile;
use routed_and_shared_experts::gate_up_tile;
#[allow(unused_imports)]
use route_fn::route;
use routed_and_shared_experts::route;
#[allow(unused_imports)]
use route_fn::routed;
use routed_and_shared_experts::routed;
#[allow(unused_imports)]
use route_fn::routed_down;
use routed_and_shared_experts::routed_down;
#[allow(unused_imports)]
use route_fn::routed_hidden;
use routed_and_shared_experts::routed_hidden;
#[allow(unused_imports)]
use route_fn::routed_parts;
use routed_and_shared_experts::routed_parts;
#[allow(unused_imports)]
use route_fn::scale_shared;
use routed_and_shared_experts::scale_shared;
#[allow(unused_imports)]
use route_fn::shared;
use routed_and_shared_experts::shared;
#[allow(unused_imports)]
use route_fn::shared_hidden;
use routed_and_shared_experts::shared_hidden;
mod append_row_fn;
#[allow(unused_imports)]
use append_row_fn::append_row;
@@ -4,8 +4,8 @@
#[allow(unused_imports)]
use super::*;
mod impl_promptdeviceread_2;
mod produce_original_gdn_fn;
mod read_completion;
pub(in crate::qwen_forward) use produce_original_gdn_fn::QsaLayerDevices;
#[allow(unused_imports)]
pub(super) use produce_original_gdn_fn::produce_original_gdn;
@@ -39,41 +39,41 @@ pub(super) struct NativeOutRow<'ctx> {
#[path = "qsa_prefill_batch/projection_operands.rs"]
mod projection_operands;
pub(super) use projection_operands::{AttendedRows, AttentionRow, ChunkAttentionSlot, NativeQsaDevices};
mod native_error_fn;
mod native_projection_row;
#[allow(unused_imports)]
use native_error_fn::check_batch;
use native_projection_row::check_batch;
#[allow(unused_imports)]
use native_error_fn::check_input;
use native_projection_row::check_input;
#[allow(unused_imports)]
use native_error_fn::check_inputs;
use native_projection_row::check_inputs;
#[allow(unused_imports)]
use native_error_fn::chunk_owners;
use native_projection_row::chunk_owners;
#[allow(unused_imports)]
use native_error_fn::native;
use native_projection_row::native;
#[allow(unused_imports)]
use native_error_fn::native_error;
use native_projection_row::native_error;
#[allow(unused_imports)]
pub(super) use native_error_fn::project;
pub(super) use native_projection_row::project;
#[allow(unused_imports)]
use native_error_fn::project_batches;
mod concat_mixed_fn;
use native_projection_row::project_batches;
mod projection_rows;
#[allow(unused_imports)]
use concat_mixed_fn::check_batches;
use projection_rows::check_batches;
#[allow(unused_imports)]
use concat_mixed_fn::check_shapes;
use projection_rows::check_shapes;
#[allow(unused_imports)]
use concat_mixed_fn::concat_mixed;
use projection_rows::concat_mixed;
#[allow(unused_imports)]
use concat_mixed_fn::gather_rows;
use projection_rows::gather_rows;
#[allow(unused_imports)]
pub(super) use concat_mixed_fn::project_out;
pub(super) use projection_rows::project_out;
#[allow(unused_imports)]
use concat_mixed_fn::project_rows;
use projection_rows::project_rows;
#[allow(unused_imports)]
use concat_mixed_fn::ready_rows;
use projection_rows::ready_rows;
#[allow(unused_imports)]
use concat_mixed_fn::retained_matrices;
use projection_rows::retained_matrices;
#[allow(unused_imports)]
use concat_mixed_fn::row_values;
use projection_rows::row_values;
#[allow(unused_imports)]
use concat_mixed_fn::split_rows;
use projection_rows::split_rows;