mistralrs_core/vision_models/idefics3/
config.rs1use serde::Deserialize;
2
3use crate::{layers::Activation, models};
4
5#[derive(Debug, Clone, Deserialize)]
6pub struct Idefics3VisionConfig {
7 pub hidden_size: usize,
8 pub intermediate_size: usize,
9 pub num_hidden_layers: usize,
10 pub num_attention_heads: usize,
11 pub num_channels: usize,
12 pub image_size: usize,
13 pub patch_size: usize,
14 pub hidden_act: Activation,
15 pub layer_norm_eps: f64,
16}
17
18#[derive(Debug, Clone, Deserialize)]
19pub struct Idefics3Config {
20 pub image_token_id: usize,
21 pub vision_config: Idefics3VisionConfig,
22 pub text_config: models::llama::Config,
23 pub scale_factor: usize,
24}