Refactor: flatten models/ to one directory per model build - #886
Refactor: flatten models/ to one directory per model build#886zhangqi-chen wants to merge 1 commit into
Conversation
|
Important Review skippedToo many files! This PR contains 184 files, which is 84 over the limit of 100. To get a review, narrow the scope: Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (184)
You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The models/<family>/<variant>/ nesting held no family-level shared code, so the intermediate directories were pure namespacing. Flatten them to <family>_<version>[_<quant>], which also settles the hyphen-vs-underscore inconsistency between v4-flash and v3_2. - qwen3/14b, qwen3/32b, deepseek/v3_2 become qwen3_14b, qwen3_32b, deepseek_v3_2. - deepseek/v4-flash becomes deepseek_v4_flash_w8a8int and deepseek/v4-pro becomes deepseek_v4_pro_w4a8mx. The suffix names the deployment quantization with the CANN convert_model.py --quant_type vocabulary, separators dropped. Flash matches its Atlas A3 deployment; Pro names its A5 Hybrid MXFP8-MXFP4 target while its kernels still consume INT8 re-quantized from the MXFP4 grid. - Drop the now-redundant model-name prefix from filenames under deepseek_v3_2, qwen3_32b, and the qwen3_14b drafts. - contract.py derived the models root as _KERNEL_DIR.parent.parent.parent, one level too many for the flatter tree; use .parent, which matches the variable name. config.py and constants.py exist only under models/, so the narrower prefix keeps the shadowed-module check equivalent. - Retarget the CI change selectors, the contract registry variant path, the contract test's Path-segment literals, and the docs.
f77fec9 to
9b59d7f
Compare
The models/// nesting held no family-level shared code,
so the intermediate directories were pure namespacing. Flatten them to
[], which also settles the hyphen-vs-underscore
inconsistency between v4-flash and v3_2.
deepseek_v3_2.
becomes deepseek_v4_pro_w4a8mx. The suffix names the deployment
quantization with the CANN convert_model.py --quant_type vocabulary,
separators dropped. Flash matches its Atlas A3 deployment; Pro names
its A5 Hybrid MXFP8-MXFP4 target while its kernels still consume INT8
re-quantized from the MXFP4 grid.
deepseek_v3_2, qwen3_32b, and the qwen3_14b drafts.
one level too many for the flatter tree; use .parent, which matches the
variable name. config.py and constants.py exist only under models/, so
the narrower prefix keeps the shadowed-module check equivalent.
the contract test's Path-segment literals, and the docs.