maxtext.integration.tunix.weight_mapping.qwen3 module#
Defines the weight mapping from MaxText’s Qwen3 model to a vLLM-compatible format.
This module provides the QWEN3_VLLM_MAPPING dataclass, which contains all the necessary configurations to convert MaxText’s Qwen3 model weights into a format that can be loaded by HuggingFace’s vLLM. This includes: - A direct mapping of parameter names. - Sharding specifications for distributed environments.
- class maxtext.integration.tunix.weight_mapping.qwen3.QWEN3_VLLM_MAPPING[source]#
Bases:
objectMapping MaxText Qwen3-8 weights to vLLM’s Qwen3-8 weights.
- static to_hf_hook_fns()[source]#
Returns a dictionary of hook functions to be applied to MaxText weights.
- Returns:
An empty dictionary, as no hook functions are needed for this mapping.
- static to_hf_transpose_keys()[source]#
Returns a list of keys for weights that need to be transposed.
- Returns:
An empty dictionary, as no keys require transposition for this mapping.