diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/executor_original_prompt/impl_originalpromptexecutor/impl_originalpromptexecutor_2.rs b/crates/engine-qwen35-cuda/src/qwen_forward/executor_original_prompt/impl_originalpromptexecutor/impl_originalpromptexecutor_2.rs index 8b9b48f8..3ebc064b 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/executor_original_prompt/impl_originalpromptexecutor/impl_originalpromptexecutor_2.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/executor_original_prompt/impl_originalpromptexecutor/impl_originalpromptexecutor_2.rs @@ -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; diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/executor_original_prompt/impl_originalpromptexecutor/impl_originalpromptexecutor_2/impl_originalpromptexecutor.rs b/crates/engine-qwen35-cuda/src/qwen_forward/executor_original_prompt/impl_originalpromptexecutor/impl_originalpromptexecutor_2/executor_construction.rs similarity index 100% rename from crates/engine-qwen35-cuda/src/qwen_forward/executor_original_prompt/impl_originalpromptexecutor/impl_originalpromptexecutor_2/impl_originalpromptexecutor.rs rename to crates/engine-qwen35-cuda/src/qwen_forward/executor_original_prompt/impl_originalpromptexecutor/impl_originalpromptexecutor_2/executor_construction.rs diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/executor_original_prompt/impl_originalpromptexecutor/impl_originalpromptexecutor_2_2.rs b/crates/engine-qwen35-cuda/src/qwen_forward/executor_original_prompt/impl_originalpromptexecutor/impl_originalpromptexecutor_2_2.rs index 00ba2798..eba052f5 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/executor_original_prompt/impl_originalpromptexecutor/impl_originalpromptexecutor_2_2.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/executor_original_prompt/impl_originalpromptexecutor/impl_originalpromptexecutor_2_2.rs @@ -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; diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/executor_original_prompt/impl_originalpromptexecutor/impl_originalpromptexecutor_2_2/impl_originalpromptexecutor.rs b/crates/engine-qwen35-cuda/src/qwen_forward/executor_original_prompt/impl_originalpromptexecutor/impl_originalpromptexecutor_2_2/prompt_chunk_forward.rs similarity index 100% rename from crates/engine-qwen35-cuda/src/qwen_forward/executor_original_prompt/impl_originalpromptexecutor/impl_originalpromptexecutor_2_2/impl_originalpromptexecutor.rs rename to crates/engine-qwen35-cuda/src/qwen_forward/executor_original_prompt/impl_originalpromptexecutor/impl_originalpromptexecutor_2_2/prompt_chunk_forward.rs diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/gr_batch_chunk.rs b/crates/engine-qwen35-cuda/src/qwen_forward/gr_batch_chunk.rs index 16afb4c5..6b452834 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/gr_batch_chunk.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/gr_batch_chunk.rs @@ -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; diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/gr_batch_chunk/inject_batch_fns.rs b/crates/engine-qwen35-cuda/src/qwen_forward/gr_batch_chunk/batch_inject.rs similarity index 100% rename from crates/engine-qwen35-cuda/src/qwen_forward/gr_batch_chunk/inject_batch_fns.rs rename to crates/engine-qwen35-cuda/src/qwen_forward/gr_batch_chunk/batch_inject.rs diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/gr_batch_chunk/impl_grstage_2.rs b/crates/engine-qwen35-cuda/src/qwen_forward/gr_batch_chunk/impl_grstage_2.rs index b5d66de1..121b48eb 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/gr_batch_chunk/impl_grstage_2.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/gr_batch_chunk/impl_grstage_2.rs @@ -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 { diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/moe_mmq_adaptive.rs b/crates/engine-qwen35-cuda/src/qwen_forward/moe_mmq_adaptive.rs index c1c0d9b9..ba6f455c 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/moe_mmq_adaptive.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/moe_mmq_adaptive.rs @@ -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>( diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/moe_mmq_chunk.rs b/crates/engine-qwen35-cuda/src/qwen_forward/moe_mmq_chunk.rs index 1ccbf8ec..f0d477ac 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/moe_mmq_chunk.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/moe_mmq_chunk.rs @@ -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>( diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/moe_mmq_chunk/resident_fns.rs b/crates/engine-qwen35-cuda/src/qwen_forward/moe_mmq_chunk/resident_layer.rs similarity index 100% rename from crates/engine-qwen35-cuda/src/qwen_forward/moe_mmq_chunk/resident_fns.rs rename to crates/engine-qwen35-cuda/src/qwen_forward/moe_mmq_chunk/resident_layer.rs diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/mtp_experts.rs b/crates/engine-qwen35-cuda/src/qwen_forward/mtp_experts.rs index b6418c98..38896308 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/mtp_experts.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/mtp_experts.rs @@ -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; diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/mtp_experts/impl_mtpblock.rs b/crates/engine-qwen35-cuda/src/qwen_forward/mtp_experts/mtp_block.rs similarity index 100% rename from crates/engine-qwen35-cuda/src/qwen_forward/mtp_experts/impl_mtpblock.rs rename to crates/engine-qwen35-cuda/src/qwen_forward/mtp_experts/mtp_block.rs diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/mtp_experts/route_fn.rs b/crates/engine-qwen35-cuda/src/qwen_forward/mtp_experts/routed_and_shared_experts.rs similarity index 100% rename from crates/engine-qwen35-cuda/src/qwen_forward/mtp_experts/route_fn.rs rename to crates/engine-qwen35-cuda/src/qwen_forward/mtp_experts/routed_and_shared_experts.rs diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/prompt_device_rows/impl_promptdeviceread.rs b/crates/engine-qwen35-cuda/src/qwen_forward/prompt_device_rows/impl_promptdeviceread.rs index 8da627d9..4d45c01a 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/prompt_device_rows/impl_promptdeviceread.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/prompt_device_rows/impl_promptdeviceread.rs @@ -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; diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/prompt_device_rows/impl_promptdeviceread/impl_promptdeviceread_2.rs b/crates/engine-qwen35-cuda/src/qwen_forward/prompt_device_rows/impl_promptdeviceread/read_completion.rs similarity index 100% rename from crates/engine-qwen35-cuda/src/qwen_forward/prompt_device_rows/impl_promptdeviceread/impl_promptdeviceread_2.rs rename to crates/engine-qwen35-cuda/src/qwen_forward/prompt_device_rows/impl_promptdeviceread/read_completion.rs diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/qsa_prefill_batch.rs b/crates/engine-qwen35-cuda/src/qwen_forward/qsa_prefill_batch.rs index 3e8f9f06..53ae9e72 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/qsa_prefill_batch.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/qsa_prefill_batch.rs @@ -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; diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/qsa_prefill_batch/native_error_fn.rs b/crates/engine-qwen35-cuda/src/qwen_forward/qsa_prefill_batch/native_projection_row.rs similarity index 100% rename from crates/engine-qwen35-cuda/src/qwen_forward/qsa_prefill_batch/native_error_fn.rs rename to crates/engine-qwen35-cuda/src/qwen_forward/qsa_prefill_batch/native_projection_row.rs diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/qsa_prefill_batch/concat_mixed_fn.rs b/crates/engine-qwen35-cuda/src/qwen_forward/qsa_prefill_batch/projection_rows.rs similarity index 100% rename from crates/engine-qwen35-cuda/src/qwen_forward/qsa_prefill_batch/concat_mixed_fn.rs rename to crates/engine-qwen35-cuda/src/qwen_forward/qsa_prefill_batch/projection_rows.rs