pub struct GemmaAudioConfig {
pub hidden_size: usize,
pub audio_embed_dim: usize,
pub audio_samples_per_token: usize,
pub output_proj_dims: usize,
pub rms_norm_eps: f64,
}Expand description
Audio tower / projection config for Gemma 4 unified.
Fields§
Hidden dimension inside the audio projector.
audio_embed_dim: usizeEmbedding dim emitted by the per-frame projection.
audio_samples_per_token: usizeNumber of raw waveform samples per audio token.
output_proj_dims: usizeFinal projection target. Note: for Gemma 4 12B this is 640
while the LM hidden is 3840; the runtime must include the
extra audio→LM linear it ships in audio_tower.lm_proj.
rms_norm_eps: f64Trait Implementations§
Source§impl Clone for GemmaAudioConfig
impl Clone for GemmaAudioConfig
Source§fn clone(&self) -> GemmaAudioConfig
fn clone(&self) -> GemmaAudioConfig
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 moreSource§impl Debug for GemmaAudioConfig
impl Debug for GemmaAudioConfig
Source§impl Default for GemmaAudioConfig
impl Default for GemmaAudioConfig
Source§fn default() -> GemmaAudioConfig
fn default() -> GemmaAudioConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GemmaAudioConfigwhere
GemmaAudioConfig: Default,
impl<'de> Deserialize<'de> for GemmaAudioConfigwhere
GemmaAudioConfig: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GemmaAudioConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GemmaAudioConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GemmaAudioConfig
impl RefUnwindSafe for GemmaAudioConfig
impl Send for GemmaAudioConfig
impl Sync for GemmaAudioConfig
impl Unpin for GemmaAudioConfig
impl UnsafeUnpin for GemmaAudioConfig
impl UnwindSafe for GemmaAudioConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more