#[non_exhaustive]pub struct NativeHostOffloadConfig {
pub num_host_blocks: usize,
pub d2h_bandwidth_gbps: f64,
pub h2d_bandwidth_gbps: f64,
}Expand description
Physical controls for framework-native G1-to-host offload.
Framework policy remains selected by EngineConfig::backend. This
descriptor intentionally contains only shared capacity and transfer
parameters so additional framework profiles can reuse it without exposing
unsupported policy combinations. Physical bytes per block are derived from
EngineConfig::block_size and EngineConfig::kv_cache_bytes_per_token.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.num_host_blocks: usizePhysical host-cache capacity in KV blocks.
d2h_bandwidth_gbps: f64Modeled device-to-host bandwidth in decimal GB/s. Zero is instantaneous.
h2d_bandwidth_gbps: f64Modeled host-to-device bandwidth in decimal GB/s. Zero is instantaneous.
Implementations§
Trait Implementations§
Source§impl Clone for NativeHostOffloadConfig
impl Clone for NativeHostOffloadConfig
Source§fn clone(&self) -> NativeHostOffloadConfig
fn clone(&self) -> NativeHostOffloadConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NativeHostOffloadConfig
Source§impl Debug for NativeHostOffloadConfig
impl Debug for NativeHostOffloadConfig
Source§impl<'de> Deserialize<'de> for NativeHostOffloadConfig
impl<'de> Deserialize<'de> for NativeHostOffloadConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NativeHostOffloadConfig
impl PartialEq for NativeHostOffloadConfig
Source§impl Serialize for NativeHostOffloadConfig
impl Serialize for NativeHostOffloadConfig
impl StructuralPartialEq for NativeHostOffloadConfig
Auto Trait Implementations§
impl Freeze for NativeHostOffloadConfig
impl RefUnwindSafe for NativeHostOffloadConfig
impl Send for NativeHostOffloadConfig
impl Sync for NativeHostOffloadConfig
impl Unpin for NativeHostOffloadConfig
impl UnsafeUnpin for NativeHostOffloadConfig
impl UnwindSafe for NativeHostOffloadConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more