MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS-TTS / build_qwen3_config

Function build_qwen3_config

scripts/extract_weights_llama_cpp.py:65–72  ·  view source on GitHub ↗
(moss_config: dict)

Source from the content-addressed store, hash-verified

63
64
65def build_qwen3_config(moss_config: dict) -> dict:
66 lang = dict(moss_config["language_config"])
67 lang["architectures"] = ["Qwen3ForCausalLM"]
68 lang["model_type"] = "qwen3"
69 lang.pop("_name_or_path", None)
70 lang.setdefault("torch_dtype", "bfloat16")
71 lang.setdefault("transformers_version", moss_config.get("transformers_version", "4.57.1"))
72 return lang
73
74
75MAX_SHARD_SIZE = 5 * 1024**3

Callers 1

extractFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected