mstar.model.command_a_plus.config#
Classes
|
The outer Cohere2 Vision checkpoint configuration. |
|
|
|
The SigLIP tower, pixel shuffle and SwiGLU projector that feed image tiles to the LLM. |
- class mstar.model.command_a_plus.config.CommandAPlusConfig(text_config, vision_config)[source]#
Bases:
objectThe outer Cohere2 Vision checkpoint configuration.
- Parameters:
text_config (CommandAPlusTextConfig)
vision_config (CommandAPlusVisionConfig)
- classmethod from_json(path)[source]#
Load a local config.json without resolving or downloading weights.
- Parameters:
- Return type:
- text_config: CommandAPlusTextConfig#
- vision_config: CommandAPlusVisionConfig#
- class mstar.model.command_a_plus.config.CommandAPlusTextConfig(vocab_size: int, hidden_size: int, num_hidden_layers: int, num_attention_heads: int, num_key_value_heads: int, head_dim: int, intermediate_size: int, num_experts: int, num_experts_per_tok: int, num_shared_experts: int, layer_types: list[str], sliding_window: int, max_position_embeddings: int, rope_theta: float, layer_norm_eps: float, logit_scale: float, bos_token_id: int, eos_token_id: int, pad_token_id: int)[source]#
Bases:
object- Parameters:
vocab_size (int)
hidden_size (int)
num_hidden_layers (int)
num_attention_heads (int)
num_key_value_heads (int)
head_dim (int)
intermediate_size (int)
num_experts (int)
num_experts_per_tok (int)
num_shared_experts (int)
sliding_window (int)
max_position_embeddings (int)
rope_theta (float)
layer_norm_eps (float)
logit_scale (float)
bos_token_id (int)
eos_token_id (int)
pad_token_id (int)
- classmethod from_dict(data)[source]#
Parse the text config; shapes are checked when weights load, so only the math is pinned here.
- Parameters:
data (dict)
- Return type:
Width of the shared MLP, derived from the expert dimensions.
- class mstar.model.command_a_plus.config.CommandAPlusVisionConfig(hidden_size, intermediate_size, num_hidden_layers, num_attention_heads, image_size, patch_size, layer_norm_eps, downsample_factor, alignment_intermediate_size, image_token_id)[source]#
Bases:
objectThe SigLIP tower, pixel shuffle and SwiGLU projector that feed image tiles to the LLM.
- Parameters:
- classmethod from_dict(data)[source]#
datais the whole checkpoint config; the tower’s own fields sit invision_config.- Parameters:
data (dict)
- Return type: