MCPcopy Create free account
hub / github.com/evilsocket/cake / EncoderConfig

Class EncoderConfig

cake-core/src/models/flux/text_encoder.rs:213–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211/// Configuration for the Qwen3 text encoder within FLUX.2-klein.
212#[derive(Debug, Clone)]
213pub 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
224impl EncoderConfig {
225 /// FLUX.2-klein-4B text encoder config (from text_encoder/config.json).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected