pub struct Mamba3SingleSsdCachesConfig {
pub n_real_caches: usize,
pub cache: Mamba3SingleSsdCacheConfig,
}Expand description
Configuration / factory for Mamba3SingleSsdCaches.
Fields§
§n_real_caches: usizeNumber of cache slots (= number of virtual layers).
cache: Mamba3SingleSsdCacheConfigShared configuration that determines the shape of each cache.
Implementations§
Source§impl Mamba3SingleSsdCachesConfig
impl Mamba3SingleSsdCachesConfig
Sourcepub fn new_from_block_config(
n_real_caches: usize,
batch: usize,
block_config: Mamba3Config,
) -> Self
pub fn new_from_block_config( n_real_caches: usize, batch: usize, block_config: Mamba3Config, ) -> Self
Convenience constructor from a block config.
Sourcepub fn init(&self, device: &Device) -> Mamba3SingleSsdCaches
pub fn init(&self, device: &Device) -> Mamba3SingleSsdCaches
Allocate all cache tensors (zero-initialised) on device.
Trait Implementations§
Source§impl Clone for Mamba3SingleSsdCachesConfig
impl Clone for Mamba3SingleSsdCachesConfig
Source§impl Config for Mamba3SingleSsdCachesConfig
impl Config for Mamba3SingleSsdCachesConfig
§fn load_binary(data: &[u8]) -> Result<Self, ConfigError>
fn load_binary(data: &[u8]) -> Result<Self, ConfigError>
Loads the configuration from a binary buffer. Read more
Source§impl Debug for Mamba3SingleSsdCachesConfig
impl Debug for Mamba3SingleSsdCachesConfig
Source§impl<'de> Deserialize<'de> for Mamba3SingleSsdCachesConfig
impl<'de> Deserialize<'de> for Mamba3SingleSsdCachesConfig
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
Auto Trait Implementations§
impl Freeze for Mamba3SingleSsdCachesConfig
impl RefUnwindSafe for Mamba3SingleSsdCachesConfig
impl Send for Mamba3SingleSsdCachesConfig
impl Sync for Mamba3SingleSsdCachesConfig
impl Unpin for Mamba3SingleSsdCachesConfig
impl UnsafeUnpin for Mamba3SingleSsdCachesConfig
impl UnwindSafe for Mamba3SingleSsdCachesConfig
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