engine-qwen35-cuda: explicit imports and generated doc headers for the files rustsplit left (compiled and pruned per file)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
fc79029ebb
commit
1d346c39b6
@@ -1,5 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl OriginalServeMode, impl ExpertSource, fn
|
||||
//! published_prefix_summary, impl PrefixTail, impl Default_for_OriginalServeOptions, impl OriginalServeOptions ....
|
||||
//! Methods of `OriginalServeMode`: `parse`, `as_str`. Methods of `ExpertSource`: `parse`, `as_str`.
|
||||
//! Implements `Default for OriginalServeOptions`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent file by STRA-338 (same module path as before).
|
||||
//! Defines `GpuProbe`, `Run`.
|
||||
//! Split out of `original_serve` to keep its files under the line limit.
|
||||
|
||||
use super::super::{
|
||||
ActiveGuard, BackendError, Command, DeferredTail, ErrorCode, FinishReason, GENERATION_TIMEOUT, GenerationEvent,
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
//! The command loop of the Original owner, moved out of `run` by STRA-338 (size): receive, sweep the idle sessions,
|
||||
//! and answer each command in the order `run` did.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{
|
||||
BackendError, Command, Duration, GenerateEnv, IdleSweep, Live, LoadPhase, LoadedModel, Ordering,
|
||||
OriginalServeStack, Receiver, ReopenEnv, Reply, Shared, SystemClock, Tokenizer, abandon_stack, exhausted, invalid,
|
||||
load_failure, mpsc, reconfigure, serve_generate, sweep_idle, unavailable,
|
||||
};
|
||||
|
||||
/// What the loop reads and does not change: the channel, the flags, the model handle and the clock.
|
||||
pub(super) struct LoopCtx<'r, 'a, 'ctx> {
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
//! The owner loop of the Original serve stack: open it, answer the load, serve commands until unload.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{
|
||||
BackendError, Duration, Live, LoopCtx, Ordering, Rc, RecordedModel, ReopenEnv, Run, announce, answer_unload,
|
||||
close_context, close_stack, command_loop, gpu_probe, open_run_stack, publish_open,
|
||||
};
|
||||
use leleka_memory::telemetry;
|
||||
use leleka_memory_os::HostProc;
|
||||
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
//! `Command::Reconfigure` of the Original owner loop, moved out of `owner_run_steps` by STRA-338 (size): close the
|
||||
//! old stack, open one with the new settings, or reopen the previous ones.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{
|
||||
BackendError, Clock, Duration, ErrorCode, ModelBinding, Ordering, OriginalServeOptions, OriginalServeStack,
|
||||
RECONFIGURE_HEADROOM_BYTES, Rc, Shared, SystemClock, open_error, publish_prefix_summary, stack_config, thread,
|
||||
unavailable,
|
||||
};
|
||||
use leleka_cuda_driver::Context;
|
||||
use std::time::Instant;
|
||||
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
//! One request over the Original serve stack: the token delivery to the client, the stop signals and the final
|
||||
//! usage, telemetry and operator lines.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{
|
||||
AtomicBool, CapturedIds, Clock, FinishReason, ForwardError, GENERATION_TIMEOUT, GenerationEvent, GenerationFailure,
|
||||
GenerationRequest, GenerationSink, Ordering, PhaseDurations, ServeDevice, ServeError, ServeRequest, ServeStop,
|
||||
Shared, Tokenizer, Usage, Utf8Pending, admission_error, capture_request, clock_seed, emit_event, invalid,
|
||||
log_request_end, request_sampler, unavailable,
|
||||
};
|
||||
use crate::qwen_forward::original_serve_engine::ServeOutcome;
|
||||
use crate::qwen_forward::original_serve_request::RequestSampling;
|
||||
use crate::qwen_forward::original_serve_residency::ResidencyStats;
|
||||
|
||||
+5
-2
@@ -1,8 +1,11 @@
|
||||
//! The stack configuration and the reports around it: GPU probe, start-up facts, error classes, the per-request
|
||||
//! log line and the offline capture of served requests.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{
|
||||
Admission, BackendError, ErrorCode, ForwardError, GenerationRequest, GpuProbe, LoadPhase, Ordering,
|
||||
OriginalServeOptions, OriginalServeStack, PREFIX_SUMMARY, PREFIX_SUMMARY_HEADS, PREVIOUS_TIER, PrefixTail,
|
||||
ServeFailure, Shared, StackConfig, Usage, exhausted, invalid, load_failure,
|
||||
};
|
||||
|
||||
/// The telemetry sampler's view of the GPU: NVML when `libnvidia-ml` loads, otherwise polling `nvidia-smi` (WSL2,
|
||||
/// containers without the management library), otherwise nothing (the document then has no `gpu` block).
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//! Moved out of the parent file by STRA-338 (same module path as before).
|
||||
//! Unit tests of `original_serve`.
|
||||
|
||||
use super::*;
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn required_path.
|
||||
//! Functions: `required_path`.
|
||||
//! Split out of `original_serve_replay` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl fmt_Display_for, impl std_error_Error, impl BindingIdentity, impl
|
||||
//! BoundLayer, impl InputConstants.
|
||||
//! Methods of `BindingIdentity`: `matches`. Methods of `BoundLayer`: `index`, `kind`.
|
||||
//! Implements `Display for InputBindingError`, `Error for InputBindingError`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl ModelBinding, fn bind_expert_counts.
|
||||
//! Methods of `ModelBinding`: `bind`, `from_artifact`, `from_artifact_with_kar_ple`, `with_kar_expert_source` and 22...
|
||||
//! Functions: `bind_expert_counts`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn validate_ple_descriptor, impl InputConstants, fn bind_layers, fn
|
||||
//! bind_layer, impl BindingIdentity.
|
||||
//! Methods of `InputConstants`: `test_fixture`. Methods of `BindingIdentity`: `test_identity`.
|
||||
//! Functions: `validate_ple_descriptor`, `bind_layers`, `bind_layer`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl InheritedKarArchive, fn open_sealed_archive_fd, fn
|
||||
//! open_read_only_archive, fn check_read_only_archive, fn reopen_read_only_archive, fn verify_open_provenance.
|
||||
//! Methods of `InheritedKarArchive`: `open`, `open_sparse`, `open_sparse`, `sparse_extents` and 7 more.
|
||||
//! Functions: `open_sealed_archive_fd`, `open_read_only_archive`, `check_read_only_archive`, `reopen_read_only_archi...
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn load_pinned_inherited_archive, fn log_startup_read, fn
|
||||
//! load_pinned_inherited_archive, fn load_pinned_inherited_archive, impl KarRowPacket, impl KarRowReader ....
|
||||
//! Methods of `KarRowPacket`: `payload`, `partition`. Methods of `KarRowReader`: `read_rows`.
|
||||
//! Functions: `open_archive_reader`, `load_pinned_inherited_archive`, `log_startup_read`, `load_pinned_inherited_arc...
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn pinned_profile, fn pinned_parts, fn pinned_profile_spec, fn
|
||||
//! load_pinned_archive, fn verify_pinned_provenance, fn load_pinned_archive ....
|
||||
//! Methods of `InheritedKarArchive`: `expert_capture_observation`.
|
||||
//! Functions: `pinned_profile`, `pinned_parts`, `pinned_profile_spec`, `load_pinned_archive` and 3 more.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent file by STRA-338 (same module path as before).
|
||||
//! Implements `Write for BrokenSink`.
|
||||
//! Functions: `diagnostic_cases`, `assert_kar_diagnostic_redacts`, `assert_input_diagnostic_survives_broken_sink`, `...
|
||||
|
||||
use super::*;
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent file by STRA-338 (same module path as before).
|
||||
//! Defines `Inode`, `IoPhase`, `OwnedCopy`.
|
||||
//! Split out of `qwen4exp_kar_ple` to keep its files under the line limit.
|
||||
|
||||
use super::{InputBindingError, InputResult, LoadPhase, input_failure};
|
||||
#[cfg(target_os = "linux")]
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn checked_reader, fn copy_exact, fn copy_exact_reporting.
|
||||
//! Functions: `checked_reader`, `copy_exact`, `copy_exact_reporting`, `copy_buffer` and 1 more.
|
||||
//! Split out of `private_copy` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn inode, fn diagnostic, fn report_io, fn phase_error, fn
|
||||
//! provenance_error, fn open_regular ....
|
||||
//! Methods of `OwnedCopy`: `create`, `created`, `writer`, `detach` and 2 more. Implements `Drop for OwnedCopy`.
|
||||
//! Functions: `inode`, `diagnostic`, `report_io`, `phase_error` and 8 more.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent file by STRA-338 (same module path as before).
|
||||
//! Functions: `io_error`, `open_regular`, `open_read_only_archive`, `check_len` and 3 more.
|
||||
//! Split out of `qwen4exp_kar_ple` to keep its files under the line limit.
|
||||
|
||||
use super::{InputBindingError, InputResult};
|
||||
use std::{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl ModelBinding.
|
||||
//! Groups the submodules `model_binding_moe_descriptors`, `moe_expert_block_reads`.
|
||||
//! Split out of `moe_expert` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl ModelBinding.
|
||||
//! Methods of `ModelBinding`: `moe_expert_weights`, `moe_preload_descriptor`, `check_preload_key`, `moe_preload_bloc...
|
||||
//! Functions: `moe_matrix`, `check_gate_scalar`, `preload_key`, `preload_matrix_role` and 1 more.
|
||||
|
||||
use super::super::routed_source_descriptor::validate_rows_finite;
|
||||
use super::super::routed_source_descriptor::{check_matrix_tensor, check_moe_metadata, selected_expert};
|
||||
|
||||
+6
-4
@@ -1,8 +1,10 @@
|
||||
//! Moved out of the parent module by STRA-338: impl MoeExpertWeights, impl MoeExpertBlock, fn index, fn matrix_kind, fn
|
||||
//! descriptor, fn validate_selected ....
|
||||
//! Methods of `MoeExpertWeights`: `matches`, `matrix`, `shape`, `kind`.
|
||||
//! Methods of `MoeExpertBlock`: `kind`, `columns`, `rows`, `bytes` and 1 more.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{
|
||||
BindingIdentity, E, EXPERTS, FF, InputResult, Matrix, MoeExpertBlock, MoeExpertSelection, MoeExpertWeights,
|
||||
MoeMatrixKind, MoeMatrixRole, N, SELECTED, TILE,
|
||||
};
|
||||
|
||||
impl MoeExpertWeights {
|
||||
pub(crate) fn matches(&self, binding: &BindingIdentity, layer: u32) -> bool {
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl MoeRoutedSourceScope, impl ModelBinding, impl ModelBinding.
|
||||
//! Methods of `MoeRoutedSourceScope`: `retarget`, `check_first_member`, `check_members`.
|
||||
//! Methods of `ModelBinding`: `with_moe_routed_group_source`, `moe_shared_preload_descriptors`, `moe_shared_preload_...
|
||||
|
||||
use super::routed_source_descriptor::check_moe_metadata;
|
||||
#[cfg(all(any(target_os = "linux", target_os = "windows"), target_arch = "x86_64"))]
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn routed_source_descriptor, fn routed_source_role, impl
|
||||
//! MoeRoutedSourceScope, impl ModelBinding.
|
||||
//! Methods of `MoeRoutedSourceScope`: `validate_binding`, `descriptor`, `block`, `bank_span` and 2 more.
|
||||
//! Methods of `ModelBinding`: `with_moe_routed_source`, `check_members_select`, `open_routed_source`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent file by STRA-338 (same module path as before).
|
||||
//! Methods of `OwnedCopy`: `create`, `writer`, `owns_directory`, `owns_file` and 1 more.
|
||||
//! Implements `Drop for OwnedCopy`. Functions: `inode`, `regular`, `root`, `copy_exact` and 8 more.
|
||||
|
||||
use super::*;
|
||||
use sha2::{Digest, Sha256};
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
//! Moved out of the parent module by STRA-338: DENSE_BYTES, EXPERT_BYTES, EXPERT_BLOB, INDEX_BYTES, MAX_ROWS, MAX_READ
|
||||
//! ....
|
||||
//! Defines `MtpIndex`, `MtpRows`, `MtpWeights`.
|
||||
//! DENSE_BYTES, EXPERT_BYTES, EXPERT_BLOB, INDEX_BYTES, MAX_ROWS, MAX_READ ....
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{BindingIdentity, File, MtpKind};
|
||||
|
||||
pub(super) const DENSE_BYTES: u64 = 116_099_072;
|
||||
pub(super) const EXPERT_BYTES: u64 = 707_788_800;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Moved out of the parent module by STRA-338: DESCRIPTORS.
|
||||
//! Items of the parent module.
|
||||
//! Split out of `mtp` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{Dense, Descriptor, MtpKind, MtpRole};
|
||||
|
||||
pub(super) const DESCRIPTORS: [Descriptor; 31] = [
|
||||
Descriptor {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
//! Moved out of the parent module by STRA-338: MtpKind, MtpExpertMatrix, MtpRole, Descriptor, Dense.
|
||||
//! Defines `MtpKind`, `MtpExpertMatrix`, `MtpExpertRef` and 3 more.
|
||||
//! MtpKind, MtpExpertMatrix, MtpRole, Descriptor, Dense.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
pub(crate) enum MtpKind {
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
//! Moved out of the parent module by STRA-338: fn pack_identity, fn descriptor, fn pinned_dense_bytes, fn
|
||||
//! rt_dense_roles, fn rt_dense_name, fn rt_dense_shape ....
|
||||
//! Methods of `IndexScan`: `accept`, `fits`, `complete`. Methods of `MtpIndex`: `inspect`.
|
||||
//! Functions: `pack_identity`, `descriptor`, `pinned_dense_bytes`, `rt_dense_roles` and 6 more.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{
|
||||
DENSE_BYTES, DESCRIPTORS, Dense, Descriptor, FILE_PINS, INDEX_LIMIT, InputBindingError, InputResult, MtpIndex,
|
||||
MtpKind, MtpRole, MtpRows,
|
||||
};
|
||||
|
||||
pub(in super::super) fn pack_identity() -> [&'static str; 3] {
|
||||
FILE_PINS.map(|(_, _, digest)| digest)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn read_expert_rows, fn row_range, fn allocate, fn read_exact_range, fn
|
||||
//! interleave_q2, fn validate_numeric.
|
||||
//! Functions: `read_expert_rows`, `read_expert_row`, `row_range`, `allocate` and 3 more.
|
||||
//! Split out of `mtp` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+7
-4
@@ -1,8 +1,11 @@
|
||||
//! Moved out of the parent module by STRA-338: impl Drop_for_EphemeralRoutedOwner, impl MappedStageShape, impl
|
||||
//! EphemeralRoutedOwner, impl MappedStage, impl Drop_for_MappedStage.
|
||||
//! Methods of `MappedStageShape`: `slots`.
|
||||
//! Methods of `EphemeralRoutedOwner`: `new_mapped`, `slot_count`, `uses_mapped`, `mapped_eligible`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{
|
||||
Buffers, Context, DeviceBuffer, EphemeralRoutedOwner, Error, HOST_LIMIT, MappedExpertCopyScratch, MappedSlot,
|
||||
MappedStage, MappedStageShape, ModelBinding, MoeRoutedSourceScope, MoeWeightDescriptor, ROLES, Rc, Result, SLOTS,
|
||||
TripletLoanRequest, binding_error, close_buffers, combine, driver_error, empty_slot,
|
||||
};
|
||||
|
||||
type CompletedLoan<'ctx> = ([MoeWeightDescriptor; 3], Buffers<'ctx>, Option<MappedExpertCopyScratch<'ctx>>);
|
||||
|
||||
|
||||
+8
-3
@@ -1,7 +1,12 @@
|
||||
//! Moved out of the parent module by STRA-338: impl EphemeralRoutedOwner.
|
||||
//! Groups the submodules `ephemeral_owner_allocation`, `ephemeral_owner_loans_and_drain`, `ephemeral_owner_stage_tra...
|
||||
//! Split out of `cache_ephemeral_routed` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{
|
||||
Buffers, CLOSED_MAXIMUM, Cell, Context, DeviceBuffer, EphemeralRoutedOwner, Error, HOST_LIMIT, MappedStage,
|
||||
ModelBinding, MoeExpertBlock, MoeRoutedSourceScope, MoeWeightDescriptor, OwnedCopyPoll, PendingOwnedCopy, RESERVE,
|
||||
ROLES, Result, SLOTS, Slot, TripletLoanRequest, binding_error, close_buffers, close_slot, combine, driver_error,
|
||||
empty_slot, healthy_cancel,
|
||||
};
|
||||
|
||||
#[path = "ephemeral_routed_owner/ephemeral_owner_allocation.rs"]
|
||||
mod ephemeral_owner_allocation;
|
||||
|
||||
+7
-3
@@ -1,7 +1,11 @@
|
||||
//! Moved out of the parent module by STRA-338: impl EphemeralRoutedOwner.
|
||||
//! Methods of `EphemeralRoutedOwner`: `new`, `validate_maximum`, `allocate_idle`, `room` and 9 more.
|
||||
//! Functions: `key_identity_ok`, `key_shape_ok`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{
|
||||
CLOSED_MAXIMUM, Context, DeviceBuffer, EphemeralRoutedOwner, Error, MappedStage, ModelBinding,
|
||||
MoeRoutedSourceScope, MoeWeightDescriptor, RESERVE, ROLES, Result, SLOTS, Slot, binding_error, driver_error,
|
||||
empty_slot,
|
||||
};
|
||||
|
||||
impl<'ctx> EphemeralRoutedOwner<'ctx> {
|
||||
/// Maximum is a sizing prediction from Root's actual 48 descriptor triplets,
|
||||
|
||||
+6
-3
@@ -1,7 +1,10 @@
|
||||
//! Moved out of the parent module by STRA-338: impl EphemeralRoutedOwner (3).
|
||||
//! Methods of `EphemeralRoutedOwner`: `loan_completed`, `borrow_triplet`, `with_triplet_inner`, `settle_inner_loan` ...
|
||||
//! Split out of `ephemeral_routed_owner` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{
|
||||
Buffers, DeviceBuffer, EphemeralRoutedOwner, Error, MappedStage, MoeRoutedSourceScope, MoeWeightDescriptor,
|
||||
PendingOwnedCopy, Result, SLOTS, Slot, TripletLoanRequest, close_slot, combine, driver_error, empty_slot,
|
||||
};
|
||||
|
||||
impl<'ctx> EphemeralRoutedOwner<'ctx> {
|
||||
fn loan_completed(
|
||||
|
||||
+7
-3
@@ -1,7 +1,11 @@
|
||||
//! Moved out of the parent module by STRA-338: impl EphemeralRoutedOwner (2).
|
||||
//! Methods of `EphemeralRoutedOwner`: `stage_inner`, `fixed_preparation`, `admit_stage`, `install_idle_buffers` and ...
|
||||
//! Functions: `check_block_matches`. Defines `DetachedPayloads`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{
|
||||
Buffers, Cell, DeviceBuffer, EphemeralRoutedOwner, Error, HOST_LIMIT, ModelBinding, MoeExpertBlock,
|
||||
MoeRoutedSourceScope, MoeWeightDescriptor, OwnedCopyPoll, ROLES, Result, Slot, TripletLoanRequest, binding_error,
|
||||
close_buffers, combine, driver_error, healthy_cancel,
|
||||
};
|
||||
|
||||
/// Host payloads taken out of the source blocks, with the pair vector reserved for the copy.
|
||||
struct DetachedPayloads<'ctx> {
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
//! Moved out of the parent module by STRA-338: fn healthy_cancel, fn observe_cancel, fn combine, fn close_buffers, fn
|
||||
//! close_slot, fn empty_slot.
|
||||
//! Functions: `healthy_cancel`, `observe_cancel`, `combine`, `close_buffers` and 2 more.
|
||||
//! Split out of `cache_ephemeral_routed` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{Buffers, Cell, Error, Result, Slot, Stage, driver_error};
|
||||
|
||||
/// A genuinely observed cancellation: the executor's cancelled closure returned true during
|
||||
/// THIS loan. The error code alone never qualifies (it is shared with other producers).
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl LruIndex.
|
||||
//! Methods of `LruIndex`: `new`, `with_capacity`, `metadata_bytes`, `len` and 15 more.
|
||||
//! Split out of `cache_lru_index` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl LruIndex.
|
||||
//! Methods of `LruIndex`: `seed_existing`, `is_pristine`, `load_seed`, `seed_insert` and 5 more.
|
||||
//! Split out of `cache_lru_index` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Moved out of the parent module by STRA-338: fn slot.
|
||||
//! Functions: `slot`.
|
||||
//! Split out of `cache_lru_index` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{Error, MAX_KEYS, MoeWeightDescriptor, PER_LAYER, Result};
|
||||
|
||||
pub(super) fn slot(key: MoeWeightDescriptor) -> Result<usize> {
|
||||
let layer = usize::try_from(key.layer).map_err(|_| Error::Overflow)?;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn dense_copies_equal, impl MoeWeightCache.
|
||||
//! Methods of `MoeWeightCache`: `share_rt_mtp_dense`, `share_entry`, `device_copies_equal`, `adopt_rt_buffer` and 2 ...
|
||||
//! Functions: `dense_copies_equal`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl RetainedOriginalMtpWeights, fn rt_kind.
|
||||
//! Methods of `RetainedOriginalMtpWeights`: `from_rt_bank`, `rt_dense`, `rt_extras`, `dense_file_bytes` and 11 more.
|
||||
//! Functions: `rt_kind`. Defines `HeadBinding`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl MoeWeightCache.
|
||||
//! Methods of `MoeWeightCache`: `new_original_prompt_arena`, `retained_bank_mapping`, `arena_workspace`, `attach_are...
|
||||
//! Functions: `arena_driver_error`, `shared_descriptors`, `shared_bytes`. Defines `ArenaPlan`, `ExpertBankMapping`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl MoeWeightCache (2).
|
||||
//! Methods of `MoeWeightCache`: `original_prompt_moe`, `original_prompt_parts`, `original_prompt_precheck`.
|
||||
//! Functions: `raw_weight`, `shared_formats`, `shared_weights`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::prompt_layer_fns::{PromptIo, PromptParts, PromptWeightOwners, SpanScan, run_prompt_layer};
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn prompt_stream_settings, fn native_format, fn span_cache_enabled, fn
|
||||
//! set_span_cache_override.
|
||||
//! Functions: `prompt_stream_settings`, `native_format`, `span_cache_enabled`, `set_span_cache_override`.
|
||||
//! Split out of `cache_original_prompt` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
//! Moved out of the parent module by STRA-338: impl RankedProfile, impl PrefixPlan.
|
||||
//! Methods of `RankedProfile`: `parse`, `check_header`, `parse_pair`, `ordered_pairs` and 1 more.
|
||||
//! Methods of `PlanBudget`: `capacity`, `new`. Defines `PlanBudget`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{
|
||||
Digest, EXPERTS, Error, HOST_CAP, LAYERS, PAIRS, PrefixPlan, ProfileLimits, RankedProfile, Result, Sha256,
|
||||
};
|
||||
|
||||
const RANKED_BASE: usize = 24 + PAIRS * 4;
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
//! Moved out of the parent module by STRA-338: impl SharedPermanentPool, fn remaining_shared_main, fn
|
||||
//! learned_main_slot_bound.
|
||||
//! Methods of `SharedPermanentPool`: `new`, `contains`, `quartet`, `descriptor_count` and 7 more.
|
||||
//! Functions: `remaining_shared_main`, `learned_main_slot_bound`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{Error, LAYERS, MoeWeightDescriptor, Result, RoleTraffic, SHARED_MAX_BYTES, SharedPermanentPool};
|
||||
|
||||
impl SharedPermanentPool {
|
||||
pub(in super::super) fn new(descriptors: Vec<[MoeWeightDescriptor; 4]>) -> Result<Self> {
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl MoeWeightCache, impl MoeWeightCache.
|
||||
//! Methods of `MoeWeightCache`: `new_profile_shared_permanent_learned_main_lru`, `learned_main_totals`, `check_learn...
|
||||
//! Split out of `cache_profile_fill` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
#[cfg(all(any(target_os = "linux", target_os = "windows"), target_arch = "x86_64"))]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl MoeWeightCache.
|
||||
//! Groups the submodules `pinned_triplet_preload`, `profile_ranked_fill_and_pool`.
|
||||
//! Split out of `cache_profile_fill` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl MoeWeightCache (2).
|
||||
//! Methods of `MoeWeightCache`: `preload_pinned_triplet`, `admit_pinned_triplet`, `pinned_layouts`, `check_pinned_ro...
|
||||
//! Defines `PinnedLayouts`, `PinnedSource`, `PinnedAdmission`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl MoeWeightCache.
|
||||
//! Methods of `MoeWeightCache`: `new_native_integer_iq3_mmq_retained_mtp_kv_shared_tail_profile`, `new_native_intege...
|
||||
//! Functions: `ranked_keys`. Defines `MapReservation`, `ProfileFill`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn profile_window_spill, fn profile_window_spill_with_floor.
|
||||
//! Functions: `profile_window_spill`, `profile_window_spill_with_floor`.
|
||||
//! Split out of `cache_profile_fill` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl MoeWeightCache.
|
||||
//! Methods of `MoeWeightCache`: `new_native_integer_iq3_mmq_retained_mtp_kv_shared_tail_profile_mtp_input_spill_floo...
|
||||
//! Defines `QuartetRoom`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
#[cfg(all(any(target_os = "linux", target_os = "windows"), target_arch = "x86_64"))]
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl MoeWeightCache.
|
||||
//! Methods of `MoeWeightCache`: `new_native_strata_adaptive_shared_permanent`, `new_native_strata_adaptive_shared_pe...
|
||||
//! Functions: `adaptive_template`. Defines `AdaptivePlan`, `SharedKeys`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::profile_build::ProfileFile;
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
//! Moved out of the parent module by STRA-338: impl AdaptiveCache.
|
||||
//! Methods of `AdaptiveCache`: `preload`, `unpublished`, `validate`, `revalidate_keys` and 19 more.
|
||||
//! Defines `StagedPairs`, `Staged`, `UploadReserve` and 1 more.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{
|
||||
ADAPT_EVERY, ADAPT_SWAPS, AdaptiveCache, AdaptivePolicy, AdaptiveSizing, AdaptiveWitness, CachedMoeMatrix, Context,
|
||||
DeviceBuffer, Error, HOST_CAP, ModelBinding, MoeExpertSelection, MoeExpertWeights, MoeMatrixRole,
|
||||
MoeWeightDescriptor, OwnedCopyPoll, Result, Swap, Transfer, WORKING_RESERVE, binding_error, blob_bytes, cell,
|
||||
driver_error, reserve,
|
||||
};
|
||||
|
||||
#[path = "adaptive_cache/preload.rs"]
|
||||
mod preload;
|
||||
|
||||
+4
-2
@@ -1,7 +1,9 @@
|
||||
//! Slot preload phases of the adaptive cache: reservation, per-role admission and upload.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{
|
||||
ADAPT_SWAPS, AdaptiveCache, AdaptivePolicy, DeviceBuffer, Error, HOST_CAP, ModelBinding, MoeWeightDescriptor,
|
||||
Reserved, Result, Transfer, UploadReserve, WORKING_RESERVE, binding_error, driver_error, reserve,
|
||||
};
|
||||
|
||||
impl<'ctx> AdaptiveCache<'ctx> {
|
||||
pub(super) fn reserve_owners(policy: &AdaptivePolicy, external_metadata: usize) -> Result<Reserved<'ctx>> {
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
//! Moved out of the parent module by STRA-338: fn reserve, fn cell, fn blob_bytes, impl AdaptivePolicy.
|
||||
//! Methods of `AdaptivePolicy`: `new`, `template_charges`, `initial_slots_for`, `measure_metadata` and 13 more.
|
||||
//! Functions: `reserve`, `cell`, `blob_key_identity_ok`, `blob_key_shape_ok` and 2 more. Defines `InitialSlots`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{
|
||||
ADAPT_EVERY, ADAPT_SWAPS, AdaptivePolicy, CELLS, EXPERTS, Error, HOST_CAP, LAYERS, MoeWeightDescriptor, PrefixPlan,
|
||||
ProfileLimits, RankedProfile, Result, Slot, Swap,
|
||||
};
|
||||
|
||||
pub(super) fn reserve<T>(count: usize) -> Result<Vec<T>> {
|
||||
let mut v = Vec::new();
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
//! Moved out of the parent module by STRA-338: fn transfer_metadata_bound.
|
||||
//! Functions: `transfer_metadata_bound`.
|
||||
//! Split out of `cache_strata_adaptive` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use super::{ADAPT_SWAPS, Transfer};
|
||||
|
||||
pub(in super::super) fn transfer_metadata_bound() -> usize {
|
||||
ADAPT_SWAPS * std::mem::size_of::<Transfer<'static>>()
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn dense_slab_policy, fn startup_step.
|
||||
//! Functions: `dense_slab_policy`, `startup_step`.
|
||||
//! Split out of `dense_weight_cache` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl DenseWeightCache.
|
||||
//! Groups the submodules `dense_cache_buffers_and_close`, `dense_cache_eager_layer_load`, `dense_cache_gdn_qsa_works...
|
||||
//! Split out of `dense_weight_cache` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl DenseWeightCache (7).
|
||||
//! Methods of `DenseWeightCache`: `gr_buffers`, `counters`, `chunk_modules`, `close` and 4 more.
|
||||
//! Functions: `close_into`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl DenseWeightCache (3).
|
||||
//! Methods of `DenseWeightCache`: `new_with_selected`, `unloaded`, `load_eager`, `reserve_layer_tables` and 6 more.
|
||||
//! Functions: `reserve_table`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl DenseWeightCache (5).
|
||||
//! Methods of `DenseWeightCache`: `gdn_batch_resources`, `qsa_native_workspace`, `test_record_gr_batch_completed`, `...
|
||||
//! Split out of `dense_weight_cache_methods` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl DenseWeightCache (4).
|
||||
//! Methods of `DenseWeightCache`: `add`, `add_f32`, `add_bf16`, `add_gr` and 13 more. Defines `ExpectedPleMatrix`.
|
||||
//! Split out of `dense_weight_cache_methods` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl DenseWeightCache (6).
|
||||
//! Methods of `DenseWeightCache`: `ple`, `ple_key`, `ple_value`, `ple_value_tile` and 16 more.
|
||||
//! Functions: `gdn_native_type`, `qsa_native_type`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl DenseWeightCache (2).
|
||||
//! Methods of `DenseWeightCache`: `new_original_prompt_capacity`, `load_prompt_owners`, `load_prompt_workspaces`, `l...
|
||||
//! Split out of `dense_weight_cache_methods` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl DenseWeightCache.
|
||||
//! Methods of `DenseWeightCache`: `new`, `new_qsa_selected`, `new_qsa_selected_router`, `new_qsa_selected_router_gr_...
|
||||
//! Split out of `dense_weight_cache_methods` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl PrefillStepProduct, impl TargetStepProduct, fn diagnose.
|
||||
//! Methods of `PrefillStepProduct`: `mtp_source`.
|
||||
//! Methods of `TargetStepProduct`: `test_prefix_residual`, `mtp_source`, `predicted`, `position` and 1 more.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl QwenForward.
|
||||
//! Groups the submodules `qwen_forward_reset`, `step_core`, `step_entries`.
|
||||
//! Split out of `executor` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl QwenForward (3).
|
||||
//! Methods of `QwenForward`: `reset`.
|
||||
//! Split out of `qwen_forward` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn read_layer_attention, fn prepare_layer_attention_micro, fn
|
||||
//! validate_layer_plan, fn validate_descriptors.
|
||||
//! Functions: `read_layer_attention`, `read_layer_one`, `prepare_layer_attention_micro`, `prepare_layer_one_micro` a...
|
||||
//! Defines `LayerEntry`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl OriginalPromptExecutor.
|
||||
//! Groups the submodules `construction_and_parking`, `prompt_executor_forward_and_close`, `prompt_executor_retire_ow...
|
||||
//! Split out of `original_prompt` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl OriginalPromptExecutor.
|
||||
//! Groups the submodules `executor_construction`, `session_park_and_qsa_owners`.
|
||||
//! Split out of `original_prompt_executor` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl OriginalPromptExecutor.
|
||||
//! Methods of `OriginalPromptExecutor`: `new`, `new_with_mtp_weights`, `check_construction`, `empty` and 17 more.
|
||||
//! Split out of `construction_and_parking` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl OriginalPromptExecutor (2).
|
||||
//! Methods of `OriginalPromptExecutor`: `take_qsa_owners`, `adopt_qsa_owners`, `rebuild_qsa_layers`, `checkpoint_ses...
|
||||
//! Defines `QsaOwners`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl OriginalPromptExecutor (2).
|
||||
//! Groups the submodules `prompt_chunk_forward`, `prompt_executor_close`.
|
||||
//! Split out of `original_prompt_executor` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl OriginalPromptExecutor.
|
||||
//! Methods of `OriginalPromptExecutor`: `forward`, `arena_holds_window`, `admit_window`, `finish_forward` and 4 more.
|
||||
//! Functions: `trace_step`, `arena_serves_chunk`, `trace_error`. Defines `ForwardDone`, `StagedRows`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl OriginalPromptExecutor (2).
|
||||
//! Methods of `OriginalPromptExecutor`: `close`.
|
||||
//! Split out of `prompt_executor_forward_and_close` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl OriginalPromptExecutor (3).
|
||||
//! Methods of `OriginalPromptExecutor`: `close_inner`, `retire_device_owners`, `retire_mtp_and_layers`.
|
||||
//! Split out of `original_prompt_executor` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-3
@@ -1,6 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl Drop_for_OriginalPromptExecutor, impl OriginalPromptPending, impl
|
||||
//! Drop_for_OriginalPromptPending, impl OriginalPromptHooks_for_NoPromptHooks, impl crate_backend_original_prompt, fn
|
||||
//! run_original_prompt ....
|
||||
//! Methods of `OriginalPromptPending`: `publish`.
|
||||
//! Implements `Drop for OriginalPromptExecutor`, `Drop for OriginalPromptPending` and 2 more.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn staged_input_enabled.
|
||||
//! Functions: `staged_input_enabled`.
|
||||
//! Split out of `original_prompt` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-3
@@ -1,6 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn check_chunk_on_loaded.
|
||||
//!
|
||||
//! STRA-338 size: the check runs as a scalar baseline, the two cancellation checks and the chunk comparison.
|
||||
//! Methods of `Ids`: `new`, `position`.
|
||||
//! Methods of `Rig`: `snapshot`, `prefill`, `step_final`, `prefill_chunk` and 7 more.
|
||||
#![cfg(all(test, any(target_os = "linux", target_os = "windows"), target_arch = "x86_64"))]
|
||||
|
||||
#[allow(unused_imports)]
|
||||
|
||||
+2
-4
@@ -1,7 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn prepare_micro_ffn_rows.
|
||||
//!
|
||||
//! STRA-338 size: the phases live in the child modules: the attention blocks (native GDN, native QSA or row by row),
|
||||
//! then the FFN read of the retained bank and the routing of every row.
|
||||
//! Methods of `MicroRows`: `reserve`, `push`, `collect`, `inject`. Functions: `prepare_micro_ffn_rows`.
|
||||
//! Defines `MicroEnv`, `MicroSources`, `MicroBlockSources` and 2 more.
|
||||
#![cfg(all(any(target_os = "linux", target_os = "windows"), target_arch = "x86_64"))]
|
||||
|
||||
#[allow(unused_imports)]
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn prepare_q6_layer_columns.
|
||||
//! Functions: `prepare_q6_layer_columns`, `q6_inputs`, `q6_roles`, `q6_project` and 1 more.
|
||||
//! Split out of `prefill_chunk` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl QwenForward.
|
||||
//! Groups the submodules `joint_chunk`, `prefill_chunk_cached_windowed`, `prefill_chunk_native_windowed` and 1 more.
|
||||
//! Split out of `prefill_chunk` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl QwenForward.
|
||||
//! Methods of `QwenForward`: `test_chunk_on_loaded`, `prefill_chunk_mmq_joint`, `prefill_chunk_cached_joint`, `prepa...
|
||||
//! Split out of `qwen_forward` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl QwenForward (2).
|
||||
//! Methods of `QwenForward`: `prefill_chunk_native_integer_iq3_windowed256_retained_gr_joint`, `prepare_prefill_chun...
|
||||
//! Split out of `qwen_forward` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-4
@@ -1,7 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl QwenForward (3).
|
||||
//!
|
||||
//! `prepare_prefill_chunk_with_policy_windowed` is the batched prefill of one chunk. STRA-338 size: its phases live in
|
||||
//! the child modules, in the order they run: setup, layer loop, window attention, window FFN rows, expert execution.
|
||||
//! Methods of `ChunkEnv`: `new`, `with_boundary`, `native_prompt`. Methods of `ChunkRun`: `window`.
|
||||
//! Defines `MicroBank`, `MicroBank`, `NativeMoe` and 6 more.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn read_chunk_attention_ffn, impl QwenForward.
|
||||
//! Methods of `AttentionHandoff`: `new`.
|
||||
//! Methods of `QwenForward`: `test_layer0_pair_on_loaded`, `run_layer0_diagnostic`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl TargetStepProduct, fn chunk_diagnostic.
|
||||
//! Methods of `TargetStepProduct`: `from_chunk_commit`. Functions: `chunk_diagnostic`.
|
||||
//! Split out of `prefill_chunk` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn step_cached, fn project_chain_input, fn preflight_budget.
|
||||
//! Methods of `CachedGdn`: `project`, `run`, `leading_products`, `recurrence` and 3 more.
|
||||
//! Functions: `step_cached`, `open_chain`, `settle_cached`, `chain_output_role` and 3 more.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn driver_error, fn validate_candidates, fn state_index, fn key_head.
|
||||
//! Functions: `driver_error`, `validate_candidates`, `state_index`, `key_head`.
|
||||
//! Split out of `gdn` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn gates, fn recur, fn out_norm, fn allocate, fn upload, fn
|
||||
//! pool_enabled ....
|
||||
//! Methods of `RecurHost`: `validate`, `upload_all`.
|
||||
//! Functions: `gates`, `upload_gate_inputs`, `run_gate_kernels`, `release_owned` and 16 more.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl GdnReady.
|
||||
//! Methods of `GdnReady`: `identity`, `output`, `validate_origin`, `take_pending`.
|
||||
//! Split out of `gdn` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn project, fn dispatch_projection, fn project_retained, fn convolve,
|
||||
//! fn normalize_qk.
|
||||
//! Methods of `ProjectionOperands`: `without_cache`.
|
||||
//! Functions: `project`, `project_leased`, `project_uploaded`, `upload_matrix_block` and 10 more.
|
||||
|
||||
use super::gates::{release_with_owned, upload_unless_resident};
|
||||
#[allow(unused_imports)]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl GdnStage.
|
||||
//! Methods of `GdnStage`: `step_chunk_selected`, `step`, `step_projected`, `step_impl` and 4 more.
|
||||
//! Split out of `gdn` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: fn allocate_qk_slot, fn normalize_retained_qk, impl QkScratch, impl
|
||||
//! Role, impl Product, impl RecurrenceBorrow ....
|
||||
//! Methods of `QkScratch`: `test_slot_bytes`, `new`, `validate`, `take` and 2 more. Methods of `Role`: `count`.
|
||||
//! Functions: `allocate_qk_slot`, `normalize_retained_qk`.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl Chain.
|
||||
//! Groups the submodules `chain_construction_and_buffers`, `chain_projection_convolution`, `chain_readout_and_finish...
|
||||
//! Split out of `chain` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl Chain.
|
||||
//! Methods of `Chain`: `new`, `validate`, `set_verification_pool`, `return_fixed` and 15 more.
|
||||
//! Split out of `chain` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
//! Moved out of the parent module by STRA-338: impl Chain (3).
|
||||
//! Methods of `Chain`: `upload_values`, `note`, `note_err`, `free` and 10 more.
|
||||
//! Split out of `chain` to keep its files under the line limit.
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user