diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill.rs b/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill.rs index 7f596081..89091cf7 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill.rs @@ -184,5 +184,5 @@ mod impl_moeweightcache_3; #[path = "cache_profile_fill/impl_moeweightcache_4.rs"] mod impl_moeweightcache_4; #[cfg(all(any(target_os = "linux", target_os = "windows"), target_arch = "x86_64"))] -#[path = "cache_profile_fill/profile_build_fns.rs"] -mod profile_build_fns; +#[path = "cache_profile_fill/profile_build.rs"] +mod profile_build; diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill/impl_moeweightcache_2.rs b/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill/impl_moeweightcache_2.rs index b671f0c8..3d34cbc8 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill/impl_moeweightcache_2.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill/impl_moeweightcache_2.rs @@ -2,7 +2,7 @@ #[allow(unused_imports)] #[cfg(all(any(target_os = "linux", target_os = "windows"), target_arch = "x86_64"))] -use super::profile_build_fns::{ProfileFile, ProfileKind, ProfileRequest}; +use super::profile_build::{ProfileFile, ProfileKind, ProfileRequest}; use super::*; /// The room a shared quartet upload must leave free: the spill allowance and the main pool size once the quartet is diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill/impl_moeweightcache_3.rs b/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill/impl_moeweightcache_3.rs index f79ba2ae..c636ebb9 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill/impl_moeweightcache_3.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill/impl_moeweightcache_3.rs @@ -2,7 +2,7 @@ #[allow(unused_imports)] #[cfg(all(any(target_os = "linux", target_os = "windows"), target_arch = "x86_64"))] -use super::profile_build_fns::{ProfileFile, ProfileKind, ProfileRequest}; +use super::profile_build::{ProfileFile, ProfileKind, ProfileRequest}; use super::*; #[cfg(all(any(target_os = "linux", target_os = "windows"), target_arch = "x86_64"))] diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill/impl_moeweightcache_4.rs b/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill/impl_moeweightcache_4.rs index d96ff669..7e6b9620 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill/impl_moeweightcache_4.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill/impl_moeweightcache_4.rs @@ -1,7 +1,7 @@ //! Moved out of the parent module by STRA-338: impl MoeWeightCache. #[allow(unused_imports)] -use super::profile_build_fns::ProfileFile; +use super::profile_build::ProfileFile; use super::*; #[cfg(all(any(target_os = "linux", target_os = "windows"), target_arch = "x86_64"))] diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill/profile_build_fns.rs b/crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill/profile_build.rs similarity index 100% rename from crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill/profile_build_fns.rs rename to crates/engine-qwen35-cuda/src/qwen_forward/cache_profile_fill/profile_build.rs diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/gdn.rs b/crates/engine-qwen35-cuda/src/qwen_forward/gdn.rs index 7caa071e..4ec826b9 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/gdn.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/gdn.rs @@ -221,26 +221,26 @@ mod prompt_device; #[cfg(all(any(target_os = "linux", target_os = "windows"), target_arch = "x86_64"))] pub(in crate::qwen_forward) use prompt_device::{PromptLayer, PromptProgram, PromptSource}; +mod cached_step; mod impl_gdnready; -mod impl_gdnstage; -mod step_cached_fn; +mod stage_steps; #[allow(unused_imports)] -use step_cached_fn::preflight_budget; +use cached_step::preflight_budget; #[allow(unused_imports)] -use step_cached_fn::project_chain_input; +use cached_step::project_chain_input; #[allow(unused_imports)] -use step_cached_fn::step_cached; -mod project_fn; +use cached_step::step_cached; +mod projection; #[allow(unused_imports)] -use project_fn::convolve; +use projection::convolve; #[allow(unused_imports)] -use project_fn::dispatch_projection; +use projection::dispatch_projection; #[allow(unused_imports)] -use project_fn::normalize_qk; +use projection::normalize_qk; #[allow(unused_imports)] -use project_fn::project_retained; +use projection::project_retained; #[allow(unused_imports)] -use project_fn::{ProjectionOperands, project}; +use projection::{ProjectionOperands, project}; mod gates_fn; #[allow(unused_imports)] use gates_fn::{GateHostOperands, OutNormScale}; diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/gdn/step_cached_fn.rs b/crates/engine-qwen35-cuda/src/qwen_forward/gdn/cached_step.rs similarity index 100% rename from crates/engine-qwen35-cuda/src/qwen_forward/gdn/step_cached_fn.rs rename to crates/engine-qwen35-cuda/src/qwen_forward/gdn/cached_step.rs diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/gdn/project_fn.rs b/crates/engine-qwen35-cuda/src/qwen_forward/gdn/projection.rs similarity index 100% rename from crates/engine-qwen35-cuda/src/qwen_forward/gdn/project_fn.rs rename to crates/engine-qwen35-cuda/src/qwen_forward/gdn/projection.rs diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/gdn/impl_gdnstage.rs b/crates/engine-qwen35-cuda/src/qwen_forward/gdn/stage_steps.rs similarity index 100% rename from crates/engine-qwen35-cuda/src/qwen_forward/gdn/impl_gdnstage.rs rename to crates/engine-qwen35-cuda/src/qwen_forward/gdn/stage_steps.rs diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/gdn_prefill_batch.rs b/crates/engine-qwen35-cuda/src/qwen_forward/gdn_prefill_batch.rs index a5441491..f098c8bb 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/gdn_prefill_batch.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/gdn_prefill_batch.rs @@ -144,5 +144,5 @@ mod impl_buffers; use impl_buffers::release_pool; #[path = "gdn_prefill_batch/impl_gdnstage.rs"] mod impl_gdnstage; -#[path = "gdn_prefill_batch/step_batch_fns.rs"] -mod step_batch_fns; +#[path = "gdn_prefill_batch/step_batch.rs"] +mod step_batch; diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/gdn_prefill_batch/impl_gdnstage.rs b/crates/engine-qwen35-cuda/src/qwen_forward/gdn_prefill_batch/impl_gdnstage.rs index 38ac891d..035d2aa3 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/gdn_prefill_batch/impl_gdnstage.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/gdn_prefill_batch/impl_gdnstage.rs @@ -1,7 +1,7 @@ //! Moved out of the parent module by STRA-338: impl GdnStage. #[allow(unused_imports)] -use super::step_batch_fns::{ +use super::step_batch::{ check_gdn_window, gather_gdn_rows, gdn_operands, latch_cuda_failure, prepare_or_refuse, run_gdn_program, settle_gdn, window_bytes, }; diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/gdn_prefill_batch/step_batch_fns.rs b/crates/engine-qwen35-cuda/src/qwen_forward/gdn_prefill_batch/step_batch.rs similarity index 100% rename from crates/engine-qwen35-cuda/src/qwen_forward/gdn_prefill_batch/step_batch_fns.rs rename to crates/engine-qwen35-cuda/src/qwen_forward/gdn_prefill_batch/step_batch.rs diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/moe_prefill_batch.rs b/crates/engine-qwen35-cuda/src/qwen_forward/moe_prefill_batch.rs index c20afdbe..e67c08ac 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/moe_prefill_batch.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/moe_prefill_batch.rs @@ -130,9 +130,9 @@ pub(crate) struct MoePrefillStage; #[cfg(test)] mod tests; -#[path = "moe_prefill_batch/route_micro_fns.rs"] -mod route_micro_fns; -use route_micro_fns::{ +#[path = "moe_prefill_batch/route_micro.rs"] +mod route_micro; +use route_micro::{ CombineOperands, MicroInputs, WindowOperands, assemble_products, check_combine_window, combine_on_device, route_on_device, validate_micro, }; diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/moe_prefill_batch/route_micro_fns.rs b/crates/engine-qwen35-cuda/src/qwen_forward/moe_prefill_batch/route_micro.rs similarity index 100% rename from crates/engine-qwen35-cuda/src/qwen_forward/moe_prefill_batch/route_micro_fns.rs rename to crates/engine-qwen35-cuda/src/qwen_forward/moe_prefill_batch/route_micro.rs