pub struct LocateAnythingTextConfig {Show 18 fields
pub vocab_size: usize,
pub hidden_size: usize,
pub intermediate_size: usize,
pub num_hidden_layers: usize,
pub num_attention_heads: usize,
pub num_key_value_heads: usize,
pub max_position_embeddings: usize,
pub rms_norm_eps: f64,
pub rope_theta: f64,
pub hidden_act: String,
pub tie_word_embeddings: bool,
pub block_size: usize,
pub causal_attn: bool,
pub bos_token_id: u32,
pub eos_token_id: u32,
pub null_token_id: Option<u32>,
pub switch_token_id: Option<u32>,
pub text_mask_token_id: Option<u32>,
}Expand description
Qwen2.5-3B text trunk (text_config in HF JSON).
Fields§
§vocab_size: usize§intermediate_size: usize§num_attention_heads: usize§num_key_value_heads: usize§max_position_embeddings: usize§rms_norm_eps: f64§rope_theta: f64§tie_word_embeddings: bool§block_size: usizeMTP / parallel box block size (HF default 6).
causal_attn: bool§bos_token_id: u32§eos_token_id: u32§null_token_id: Option<u32>§switch_token_id: Option<u32>§text_mask_token_id: Option<u32>Implementations§
Source§impl LocateAnythingTextConfig
impl LocateAnythingTextConfig
pub fn head_dim(&self) -> usize
pub fn kv_group_size(&self) -> usize
Sourcepub fn to_qwen3_config(&self) -> Qwen3Config
pub fn to_qwen3_config(&self) -> Qwen3Config
Map HF text trunk to rlx_qwen3::Qwen3Config (Qwen2.5 — biases on, no QK-norm).
Trait Implementations§
Source§impl Clone for LocateAnythingTextConfig
impl Clone for LocateAnythingTextConfig
Source§fn clone(&self) -> LocateAnythingTextConfig
fn clone(&self) -> LocateAnythingTextConfig
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 LocateAnythingTextConfig
impl Debug for LocateAnythingTextConfig
Source§impl<'de> Deserialize<'de> for LocateAnythingTextConfig
impl<'de> Deserialize<'de> for LocateAnythingTextConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LocateAnythingTextConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LocateAnythingTextConfig, <__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 LocateAnythingTextConfig
impl RefUnwindSafe for LocateAnythingTextConfig
impl Send for LocateAnythingTextConfig
impl Sync for LocateAnythingTextConfig
impl Unpin for LocateAnythingTextConfig
impl UnsafeUnpin for LocateAnythingTextConfig
impl UnwindSafe for LocateAnythingTextConfig
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