pub struct TabFMConfig {Show 16 fields
pub embed_dim: u32,
pub max_classes: u32,
pub col_num_blocks: u32,
pub col_nhead: u32,
pub col_num_inds: u32,
pub row_num_blocks: u32,
pub row_nhead: u32,
pub row_num_cls: u32,
pub icl_num_blocks: u32,
pub icl_nhead: u32,
pub ff_factor: u32,
pub feature_group_size: u32,
pub is_classifier: bool,
pub num_freq: u32,
pub decoder_hidden: Option<u32>,
pub norm_eps: f64,
}Expand description
{task}/config.json from google/tabfm-1.0.0-pytorch. Mirrors the upstream Python loader’s
Config dataclass (tabfm/src/pytorch/tabfm_v1_0_0.py) field-for-field.
Fields§
§embed_dim: u32§max_classes: u32§col_num_blocks: u32§col_nhead: u32§col_num_inds: u32§row_num_blocks: u32§row_nhead: u32§row_num_cls: u32§icl_num_blocks: u32§icl_nhead: u32§ff_factor: u32§feature_group_size: u32§is_classifier: bool§num_freq: u32null in the JSON means “use the TabFM.__init__ default of icl_dim * 2”.
norm_eps: f64Implementations§
Trait Implementations§
Source§impl Debug for TabFMConfig
impl Debug for TabFMConfig
Source§impl<'de> Deserialize<'de> for TabFMConfig
impl<'de> Deserialize<'de> for TabFMConfig
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 From<&TabFMConfig> for InferConfig
Every field here is load-bearing architecture metadata (must match the checkpoint the GGUF
was converted from) — there is no sensible standalone Default. Build one from a parsed
config.json via From<&TabFMConfig> (or TabFMModelBuilder::config_from), then optionally
layer on the few genuinely optional overrides below.
impl From<&TabFMConfig> for InferConfig
Every field here is load-bearing architecture metadata (must match the checkpoint the GGUF
was converted from) — there is no sensible standalone Default. Build one from a parsed
config.json via From<&TabFMConfig> (or TabFMModelBuilder::config_from), then optionally
layer on the few genuinely optional overrides below.
Source§fn from(tc: &TabFMConfig) -> Self
fn from(tc: &TabFMConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TabFMConfig
impl RefUnwindSafe for TabFMConfig
impl Send for TabFMConfig
impl Sync for TabFMConfig
impl Unpin for TabFMConfig
impl UnsafeUnpin for TabFMConfig
impl UnwindSafe for TabFMConfig
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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