| 211 | /// Configuration for the Qwen3 text encoder within FLUX.2-klein. |
| 212 | #[derive(Debug, Clone)] |
| 213 | pub struct EncoderConfig { |
| 214 | pub hidden_size: usize, |
| 215 | pub intermediate_size: usize, |
| 216 | pub num_hidden_layers: usize, |
| 217 | pub num_heads: usize, |
| 218 | pub num_kv_heads: usize, |
| 219 | pub head_dim: usize, |
| 220 | pub vocab_size: usize, |
| 221 | pub rms_norm_eps: f64, |
| 222 | } |
| 223 | |
| 224 | impl EncoderConfig { |
| 225 | /// FLUX.2-klein-4B text encoder config (from text_encoder/config.json). |
nothing calls this directly
no outgoing calls
no test coverage detected