mstar.model.qwen3_5.config#
Qwen3.5’s text and vision configs, read off the HF config.json.
Field names mirror HF’s so from_hf can splat the checkpoint’s own dict.
Classes
|
|
|
The ViT tower's own config, read off |
- class mstar.model.qwen3_5.config.Qwen3_5Config(num_hidden_layers: 'int', hidden_size: 'int', intermediate_size: 'int', layer_types: 'list[str]', num_attention_heads: 'int', num_key_value_heads: 'int', head_dim: 'int', linear_num_key_heads: 'int', linear_num_value_heads: 'int', linear_key_head_dim: 'int', linear_value_head_dim: 'int', linear_conv_kernel_dim: 'int', vocab_size: 'int', rms_norm_eps: 'float', max_position_embeddings: 'int', attn_output_gate: 'bool' = False, tie_word_embeddings: 'bool' = False, eos_token_id: 'int | list[int] | None' = None, vision_start_token_id: 'int | None' = None, vision_end_token_id: 'int | None' = None, image_token_id: 'int | None' = None, video_token_id: 'int | None' = None, rope_theta: 'float' = 10000.0, mrope_section: 'list[int] | None' = None, mrope_interleaved: 'bool' = False, partial_rotary_factor: 'float' = 1.0, mtp_num_hidden_layers: 'int' = 0, mamba_ssm_dtype: 'str' = 'float32', extra_stop_token_ids: 'tuple[int, ...]' = ())[source]#
Bases:
object- Parameters:
num_hidden_layers (int)
hidden_size (int)
intermediate_size (int)
num_attention_heads (int)
num_key_value_heads (int)
head_dim (int)
linear_num_key_heads (int)
linear_num_value_heads (int)
linear_key_head_dim (int)
linear_value_head_dim (int)
linear_conv_kernel_dim (int)
vocab_size (int)
rms_norm_eps (float)
max_position_embeddings (int)
attn_output_gate (bool)
tie_word_embeddings (bool)
vision_start_token_id (int | None)
vision_end_token_id (int | None)
image_token_id (int | None)
video_token_id (int | None)
rope_theta (float)
mrope_interleaved (bool)
partial_rotary_factor (float)
mtp_num_hidden_layers (int)
mamba_ssm_dtype (str)
- resource_layer_index(layer_idx)[source]#
Where a stack layer sits among its own resource’s layers.
The KV cache holds only full-attention layers and the recurrent pool only linear ones; a stack index would read another layer’s state.
- class mstar.model.qwen3_5.config.Qwen3_5VisionConfig(depth, hidden_size, intermediate_size, num_heads, in_channels, patch_size, temporal_patch_size, spatial_merge_size, num_position_embeddings, out_hidden_size, hidden_act='gelu_pytorch_tanh', rope_theta=10000.0, deepstack_visual_indexes=())[source]#
Bases:
objectThe ViT tower’s own config, read off
config.json’svision_config.- Parameters:
- classmethod from_hf_or_none(path)[source]#
None when the checkpoint is text-only.
- Parameters:
- Return type:
Qwen3_5VisionConfig | None