Repository navigation
[OMNIML-6063] [3/3] Load a checkpoint its model spec decompresses through the expert-parallel loader - #2747
[OMNIML-6063] [3/3] Load a checkpoint its model spec decompresses through the expert-parallel loader#2747shengliangxu wants to merge 14 commits into
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
2142693 to
2e134ec
Compare
95832dd to
e243f04
Compare
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## shengliangx/hfep-13-ep-export #2747 +/- ##
================================================================
Coverage ? 62.46%
================================================================
Files ? 658
Lines ? 74106
Branches ? 0
================================================================
Hits ? 46294
Misses ? 27812
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
/ok to test e243f04 |
2e134ec to
fdd217a
Compare
e243f04 to
d6afd32
Compare
|
/ok to test d6afd32 |
67355f4 to
b162532
Compare
0a3e056 to
67f1c8f
Compare
|
/ok to test b162532 |
67f1c8f to
2f18815
Compare
b162532 to
269d3d2
Compare
269d3d2 to
dddc2ee
Compare
|
/ok to test dddc2ee |
dddc2ee to
c668ec2
Compare
68f620d to
5c5cde0
Compare
|
LGTM: the loader change is correct as far as I traced it and the new early refusal is tested; a human still has to sign off on two edits to existing tests. Needs action:
No action needed:
|
|
/ok to test 23eb10d |
|
/claude review |
|
LGTM: the one new commit closes my last round's suggestion — the early MTP refusal now reuses the tensor-name map Needs action:
No action needed:
|
|
/ok to test 7d78ca1 |
|
/ok to test 6b87b69 |
|
/ok to test 4af4529 |
|
/ok to test dc7457e |
|
/ok to test 92830fc |
|
/ok to test 1560551 |
|
/ok to test 9930028 |
|
/ok to test 57daa15 |
|
/ok to test 3642bd0 |
|
/ok to test 9012915 |
…llel loader load_and_prepare_ep refused a compressed-tensors checkpoint at its format check. A config the on-the-fly decompressor marked now passes it, and on that path the load deletes quantization_config from its copy of the config at every level _ckpt_quant_method reads, so transformers builds no compressed-tensors quantizer to compete with the decompressor (from 5.13 it claims the experts' converters itself). Before anything loads, check_compressed_keys checks the names and dtypes the checkpoint stores: the experts alone compressed, every one of them, in floats bf16 holds. Both run inside the loader's collective checks: the format check and the deletion with the config checks, the stored-tensor check right after the checkpoint is made local, so a refusal on one rank fails every rank. Moved here from the on-the-fly decompression change, whose history is archived; the decompression itself is its own change below this one. Signed-off-by: Shengliang Xu <[email protected]>
…aced The export copies the checkpoint tensors the model has no parameter for as stored, and the expert-parallel load of a decompressed checkpoint drops the quantization_config that would read a compressed one. An MTP layer's compressed experts, in no layer the model builds, would reach the export packed. The load now refuses once it knows the unplaced tensors, inside its collective checks. _ckpt_quant_method reads the same config levels as the deletion, from _SUB_CONFIG_ATTRS, and the deletion pops from the instance dict. Signed-off-by: Shengliang Xu <[email protected]>
…the real one does Signed-off-by: Shengliang Xu <[email protected]>
The expert-parallel load refuses compressed tensors the model leaves unplaced, and relies on unplaced_source_keys placing the stored weight_packed / weight_scale / weight_shape of every expert the model builds. A CPU from_pretrained of a tiny compressed Qwen3-MoE, through the real decompressor, pins that: they resolve through the converters the load recorded (the stock mapping places none of them), and only the experts of a layer past num_hidden_layers stay unplaced. The two local modelopt.torch.models imports say why they are local, and the loader test's docstring says what its stand-in covers. Signed-off-by: Shengliang Xu <[email protected]>
…ssing its own A tiny Qwen3-MoE whose experts are compressed-tensors INT4 (Kimi-K2.5's format) or MXFP4 (Kimi-K3's), installed for on-the-fly decompression and loaded through load_and_prepare_ep: each rank must hold exactly the dense model's weights for its own experts, every stored tensor must be placed, and the sharded model's logits must match the dense model loaded whole. The MXFP4 case goes through compressed-tensors, which the decompressor reads, not transformers' own MXFP4 dequantization. Each rank's checks are gathered before any rank fails, under bounded collectives. Signed-off-by: Shengliang Xu <[email protected]>
The decompressor's keep-integers patch moved from _materialize_copy to spawn_materialize (#3137), so the 2-GPU job and the real-load unplaced test restore that hook. The GPU case's skip reason names the package it needs: compressed-tensors is not in CI's GPU image, where it skips. Signed-off-by: Shengliang Xu <[email protected]>
The real decompressing load sets the decompressor's load flag, which outlives the load; the test now runs it on a flag of its own. Signed-off-by: Shengliang Xu <[email protected]>
…e matchers hold From Claude's review: the load clears quantization_config from each config level's instance dict, which leaves a class attribute or property in place, and transformers' own quantizer would then compete with the decompressor. The load now refuses such a config inside its collective checks. Comments say why "weight" is left out of the compressed names (a float format's anchor, and a plain weight the export has always carried) and why a suffix tells a carried compressed tensor (check_compressed_keys refused any outside the experts). Signed-off-by: Shengliang Xu <[email protected]>
…e cleared From Claude's review: the top config and its nested language-model configs were walked three times, in _ckpt_quant_method, in the load's quantization_config deletion and in the decompressor. moe.config_levels, beside _SUB_CONFIG_ATTRS, now gives those levels to all three. (#3135 adds the same _SUB_CONFIG_ATTRS; the helper beside it conflicts there once, at the Kimi base's rebuild.) The deletion now clears every level before it checks any: a config class that forwards its text config's quantization_config through a property holds none once the text config's is gone, and is no longer refused; a class attribute, or a property of its own, still is. Signed-off-by: Shengliang Xu <[email protected]>
…odel The EP loader tests now build their stand-in MoE from the shared model_with_decoder_at, and the file's own copy is gone. Signed-off-by: Shengliang Xu <[email protected]>
From Claude's review: the load refused the compressed tensors its model leaves unplaced only once from_pretrained had read the whole checkpoint. An MTP layer, the usual case, is stored past the decoder layers the EP config says the model builds, and the checkpoint's tensor names show that before anything loads. Its compressed experts are now refused there; the check after the load stays for any other shape. Signed-off-by: Shengliang Xu <[email protected]>
… read From Claude's review: the early refusal read the checkpoint's tensor names and every shard header a second time, right after check_compressed_keys had, and scanned them even for a config with no num_hidden_layers. It now takes the map check_compressed_keys returns, and skips the scan without a layer count. Its message says what it found, an MTP layer's typically, rather than assert the cause. Signed-off-by: Shengliang Xu <[email protected]>
… spec names The expert-parallel load is to read the config's model type for its spec checks, so each config standing in for a checkpoint's names one, as the moved loader tests' do. save_file is already imported at the top of the file the tests moved into. Signed-off-by: Shengliang Xu <[email protected]>
Signed-off-by: Shengliang Xu <[email protected]> #3137 now refuses an older compressed-tensors, whose compressors take no scheme: the tests that load through the real library skip there, as the decompressor's own do, rather than fail on the refusal.
|
/ok to test a39cdb5 |
|
Folded into #3137, its parent, so the decompression and its loader side are reviewed as one change. #3137's branch now holds this PR's commits as they are (fast-forwarded to a39cdb5), and its description carries this one's content. The review history stays here; please review the combined change in #3137. The branch is kept. |
Note
Split at the reviewers' request (2026-10-30): this PR is now [3/3], the expert-parallel loader's side of on-the-fly decompression.
stage_full_remote_closure, with [OMNIML-6078] [2/2] Add the Kimi-K2.5 expert-parallel adapter #2748'skeep_patched.Base:
shengliangx/hfep-base-11a-decompress: main, which holds #3136 since it merged, joined with #3137. The diff below is this PR's alone, and it merges after #3137.Series layout
main([OMNIML-6063] [1/3] Stage and keep patched a checkpoint's own modeling code #3130 [1/3], [OMNIML-6060] [1/3] Add require_transformers, and build a VLM without its LM head #3131, [OMNIML-6079] [1/2] Fix Kimi-K3's own modeling code for current transformers and fla-core #3132, [OMNIML-6076] [1/3] Describe expert parallelism in the model specs #3134, [OMNIML-6076] [2/3] Prepare a model's config for expert parallelism from its spec #3135, [OMNIML-6054] [1/2] Move fsdp2_wrap out of distributed.py into fsdp2_utils #3140, [OMNIML-6054] [2/2] Route load_pretrained by the distribution plan #2779, [OMNIML-6073] [2/2] Calibrate fused experts on grouped_mm and torch_a2a instead of forcing eager #3074, [OMNIML-6073] Quantize Nemotron-H's experts under grouped_mm, with their wrapper in its model folder #3067, [OMNIML-6071] Calibrate a distributed model on per-rank data #2740 and [OMNIML-6060] [2/3] Load an MoE expert-parallel: shard the experts at load time #3136 have merged)prepareon the expert-parallel route onlyWhat does this PR do?
Type of change: New feature
load_and_prepare_eptakes a checkpoint whose model spec decompresses its experts as they load (#3137), which its format check refused before.quantization_configfrom its copy of the config, at the top level and ontext_configandllm_config: every level_ckpt_quant_methodreads. So transformers builds no compressed-tensors quantizer to compete with the decompressor.quantization_configto the top level, and from transformers 5.13 that quantizer claims the experts' converters itself.None: before 5.11, transformers takes anyquantization_configattribute,Nonetoo, for a quantized checkpoint.check_compressed_keys). A class target such asLineardoes not say what was compressed, and the load drops the config that would load any other compressed weight. So every weight stored compressed must be an expert's, and every expert's weight stored compressed. No compressed tensor may be a float that bf16 cannot hold exactly.Non-expert-parallel loads. A spec's
prepareinstalls the decompressor and marks the config, and it runs only on expert-parallel routes:So a marked config reaches
from_pretrainedonly through this load. What outlives apreparein the process is inert for other loads: the conversion-mapping hook rewrites only a marked config's converters.Usage
Internal to the Kimi adapters (#2748, #2749), whose
prepareinstalls the decompressor; the expert-parallel load does the rest.Testing
tests/unit/torch/utils/test_model_load_utils.py: the compressed-checkpoint case loads from a small safetensors checkpoint, which stores int32 packed weights and bf16 scales as the real ones do. It runs the load tofrom_pretrained, whose config has noquantization_configat any level,llm_config's included, while the caller's config keeps its own.from_pretrained.The stored-name check, run read-only on the tensor names of the real Kimi-K2.5, K2.6, K2.7-Code and K3 checkpoints (their index and shard headers): all four pass. Reading the stored names, and with them the compressed experts' dtypes, takes, per rank:
On GPUs, the Kimi-K3 run ([OMNIML-6079] [2/3] Add the Kimi-K3 expert-parallel adapter #2749) loads its MXFP4 experts through this path.
Locally at the round-1 head:
tests/unit/torch/utilsandtests/unit/torch/modelspass on CPU, torch 2.14: 927 on transformers 5.18, and 861 passed, 27 skipped on 5.5.4.2026-10-30: round 2 (unplaced compressed tensors refused,
_ckpt_quant_methodreads the_SUB_CONFIG_ATTRSlevels, the deletion pops from the instance dict), rebased onto [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 42fa4de, on [OMNIML-6060] [2/3] Load an MoE expert-parallel: shard the experts at load time #3136 4c59a6b (main 99c3834);tests/unit/torch/models/test_onfly_decompress.py+tests/unit/torch/utils/test_ep_loader.py+test_hf_checkpoint_utils.pyon CPU, torch 2.14: 149 passed on transformers 5.18, and 97 passed, 9 skipped on 5.5.4; pre-commit against main passes, mypy included. The refusal's test fails without it.2026-10-30: round 3.
test_unplaced_source_keys.pygains a real decompressedfrom_pretrainedon CPU (a tiny int4 pack-quantized Qwen3-MoE through the real decompressor): every built expert's stored tensors are placed through the recorded converters, so the new refusal passes them, and only a layer pastnum_hidden_layersstays unplaced. It fails with the stock mapping alone and without the decompressor. The two local imports state their reason.test_onfly_decompress.py,test_ep_loader.py,test_hf_checkpoint_utils.pyandtest_unplaced_source_keys.pyon CPU, torch 2.14: 163 passed on transformers 5.18, and 110 passed, 10 skipped on 5.5.4; pre-commit against main passes, mypy included.2026-10-30: rebased onto [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 7a57fe4, which moved onto [OMNIML-6060] [2/3] Load an MoE expert-parallel: shard the experts at load time #3136 b726fb3 after [OMNIML-6060] [1/3] Add require_transformers, and build a VLM without its LM head #3131 merged. No conflicts; the own diff is unchanged. Pre-commit against main 62a5c48 passes, mypy included. On CPU, torch 2.14,
test_onfly_decompress.py,test_ep_loader.py,test_unplaced_source_keys.py,test_hf_checkpoint_utils.pyandtest_model_load_utils.pypass: 305 on transformers 5.18, and 240 passed, 22 skipped on 5.5.4.2026-10-30: rebased onto [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 ee9dc75 (cjluo-nv's round there) with the own diff unchanged. Pre-commit against main passes, mypy included. On CPU, torch 2.14,
test_onfly_decompress.py,test_ep_loader.py,test_unplaced_source_keys.py,test_hf_checkpoint_utils.py,test_model_load_utils.pyandtests/unit/torch/exportpass on transformers 5.18 and 5.5.4, apart from seventest_export_diffusers.pycases that fail the same way at the base in this environment.2026-10-30: rebased onto [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 a005dab, on [OMNIML-6060] [2/3] Load an MoE expert-parallel: shard the experts at load time #3136 e251f6c. One textual conflict, in
model_load_utils.py's moe import list: both_EXPERTS_STYLES([OMNIML-6060] [2/3] Load an MoE expert-parallel: shard the experts at load time #3136) and_SUB_CONFIG_ATTRS(this PR) kept; the own diff is unchanged. Pre-commit against main passes;test_onfly_decompress.py,test_ep_loader.py,test_unplaced_source_keys.py,test_hf_checkpoint_utils.pyandtest_model_load_utils.pypass on transformers 5.18 (312) and 5.5.4 (241 passed, 23 skipped).2026-10-30: rebased onto [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 c0022f6 with the own diff unchanged; pre-commit against main passes; the five test files pass on transformers 5.18 (313) and 5.5.4 (241 passed, 23 skipped).
2026-10-30: a 2-GPU case,
tests/gpu/torch/utils/test_expert_parallel_load.py::test_compressed_experts_load_expert_parallel_each_rank_decompressing_its_own[int4|mxfp4]: a tiny Qwen3-MoE whose experts are compressed (INT4, MXFP4 through compressed-tensors), loaded at EP2 through the decompressor; each rank's experts must equal the dense model's exactly, every stored tensor must be placed, and the logits must match the dense model loaded whole. compressed-tensors is not in CI's GPU image, so it skips there (the skip names the package); it runs on our cluster, where the run on transformers 5.18 with compressed-tensors 0.19.0 is pending. Also from Claude's review: a config whose class keepsquantization_configis refused, since the load cannot clear it. Rebased onto [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 0d7866e ([OMNIML-6060] [2/3] Load an MoE expert-parallel: shard the experts at load time #3136 1491b66). Pre-commit against main passes; the five unit test files pass on transformers 5.18 (317) and 5.5.4 (242 passed, 23 skipped).2026-10-30: the 2-GPU case ran on two GPUs, with transformers 5.18.0 and compressed-tensors 0.19.0,
tests/gpu/torch/utils/test_expert_parallel_load.py::test_compressed_experts_load_expert_parallel_each_rank_decompressing_its_own[int4]and[mxfp4]passed at this PR's e2e7486, loading each case at EP2 through thespawn_materializefix; on one GPU both skip, as they need two. Since then: rebased onto [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137's no-behaviour-change commits, the three config walks sharemoe.config_levels(dc0a618; the same levels as before), and the class-heldquantization_configcheck runs once every level is cleared, which changes nothing for the configs the case uses. [OMNIML-6076] [2/3] Prepare a model's config for expert parallelism from its spec #3135 adds the same_SUB_CONFIG_ATTRStomoe.py, soconfig_levelsbeside it conflicts once where the two meet (resolved at the Kimi base's rebuild). Pre-commit against main passes; the five unit test files pass on transformers 5.18 (317) and 5.5.4 (242 passed, 23 skipped).Re-cut on 2026-10-29 onto [OMNIML-6060] [3/3] Refuse an expert-parallel load that would calibrate the experts wrong #2741, and split on 2026-10-30; the history before is archived. Review fixes then:
_SUB_CONFIG_ATTRSis imported at module level;2026-10-30: rebased onto main 059588b through [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 1a90be5 and [OMNIML-6060] [2/3] Load an MoE expert-parallel: shard the experts at load time #3136 584c8b4. [OMNIML-6060] [2/3] Load an MoE expert-parallel: shard the experts at load time #3136's loader tests now build their stand-in MoE from the shared
model_with_decoder_at, and the unplaced-refusal test here does too. From Claude's review (4428815680): an MTP layer's compressed experts, stored at or past the EP config'snum_hidden_layers, are refused before anything loads, from the checkpoint's tensor names. The refusal after the load stays for any other shape. The loader test's new[compressed-past-the-layers]case fails without the change, and its other cases fail if every layer is refused. Pre-commit against main passes, mypy included;tests/unit/torch/modelsandtests/unit/torch/utilspass on CPU, torch 2.14, on transformers 5.18 and 5.5.4. The compressed-expert GPU cases passed on 2 and 4 GPUs at dc0a618, in [OMNIML-6079] [2/3] Add the Kimi-K3 expert-parallel adapter #2749's run of the whole GPU file (transformers 5.18.0, compressed-tensors 0.19.0); this round adds only the early check, which their checkpoints pass.2026-10-30: restacked onto [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 7a56a68 and [OMNIML-6060] [2/3] Load an MoE expert-parallel: shard the experts at load time #3136 56353ef. From Claude's review (4429033004, 4429033879): the early MTP refusal reads the map
check_compressed_keysreturns instead of every shard header again, skips the scan withoutnum_hidden_layers, and its message says what it found rather than assert the cause. Pre-commit against main passes, mypy included;tests/unit/torch/modelsandtests/unit/torch/utilspass on CPU, torch 2.14, on transformers 5.18 and 5.5.4. At this head, with transformers 5.18.0 and compressed-tensors 0.19.0,test_compressed_experts_load_expert_parallel_each_rank_decompressing_its_own[int4]and[mxfp4]passed on 2 GPUs and on 4 GPUs, in a run of the whole GPU file.2026-10-31: restacked onto main d464d30 through [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 43f08b5 and [OMNIML-6060] [2/3] Load an MoE expert-parallel: shard the experts at load time #3136 ab06860. [OMNIML-6060] [2/3] Load an MoE expert-parallel: shard the experts at load time #3136 shortened the comment before the local-checkpoint guard; this PR's
compressed_namesline now follows the shortened comment, and the own diff is otherwise unchanged. Pre-commit against main passes, mypy included;tests/unit/torch/modelsandtests/unit/torch/utilspass on CPU, torch 2.14, on transformers 5.18 and 5.5.4.2026-10-31: at 7d78ca1,
test_compressed_experts_load_expert_parallel_each_rank_decompressing_its_own[int4]and[mxfp4]passed on 2 GPUs and on 4 GPUs, with transformers 5.18.0 and compressed-tensors 0.19.0, in a run of the whole GPU file at [OMNIML-6079] [2/3] Add the Kimi-K3 expert-parallel adapter #2749 63c8267, which contains it.2026-10-31: restacked onto main e352cac through [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 9deea3b and [OMNIML-6060] [2/3] Load an MoE expert-parallel: shard the experts at load time #3136 930bb0f. [OMNIML-6060] [2/3] Load an MoE expert-parallel: shard the experts at load time #3136 moved the expert-parallel loader tests from
test_ep_loader.pyintotest_model_load_utils.py, and this PR's loader-test changes moved with them, unchanged. Its stand-in configs now name a model type no spec registers (6b87b69), as [OMNIML-6076] [3/3] Apply the model spec when deciding and loading expert-parallel #2746's load reads the config's model type first. Pre-commit against main passes, mypy included;tests/unit/torch/modelsandtests/unit/torch/utilspass on CPU, torch 2.14, on transformers 5.18 and 5.5.4.2026-10-31: at 6b87b69, over the rebuilt base,
test_compressed_experts_load_expert_parallel_each_rank_decompressing_its_own[int4]and[mxfp4]passed on 2 GPUs and on 4 GPUs, with transformers 5.18.0 and compressed-tensors 0.19.0, in a run of the whole GPU file at [OMNIML-6079] [2/3] Add the Kimi-K3 expert-parallel adapter #2749 a60c01c, which contains it.2026-10-31, at 4af4529: rebased onto [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 c6b427a, which refuses a compressed-tensors older than 0.16. This PR's tests that load through the real library,
test_unplaced_source_keys.py's decompressed load and the[int4]and[mxfp4]GPU cases, skip below 0.16 rather than fail on the refusal. Pre-commit against main passes, mypy included;tests/unit/torch/modelsandtests/unit/torch/utilspass on CPU, torch 2.14, on transformers 5.18 and 5.5.4.2026-10-31, at dc7457e: restacked onto [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 81bcef7 (Claude's review there: the loader hook leaves any load it is not decompressing alone); the own diff is unchanged. Pre-commit against main passes, mypy included;
tests/unit/torch/modelsandtests/unit/torch/utilspass on CPU, torch 2.14, on transformers 5.18 and 5.5.4.2026-11-01, at 92830fc: restacked onto main cf38ec3 through [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 e72a810 and [OMNIML-6060] [2/3] Load an MoE expert-parallel: shard the experts at load time #3136 4dd38a3. No conflicts; the own diff is unchanged. Pre-commit against main passes, mypy included;
test_model_load_utils.py,test_onfly_decompress.pyandtest_unplaced_source_keys.py, run in one process, pass on CPU, torch 2.14, on transformers 5.18 and 5.5.4.2026-11-01, at 1560551: restacked onto main 51645db through [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 df2de9d; the tree is unchanged. Pre-commit against main passes, mypy included;
test_model_load_utils.py,test_onfly_decompress.pyandtest_unplaced_source_keys.py, run in one process, pass on CPU, torch 2.14, on transformers 5.18 and 5.5.4.2026-11-02, at 9930028: restacked onto main 2d4e8d0 through [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 fcd6c08. No conflicts; the own diff is unchanged. Pre-commit against main passes, mypy included;
tests/unit/torch/modelsandtests/unit/torch/utils, run in one process, pass on CPU, torch 2.14, on transformers 5.18 and 5.5.4.2026-11-02, at 57daa15: restacked onto main 4f08a12 through [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 f410618. No conflicts; the own diff is unchanged. Pre-commit against main passes, mypy included;
tests/unit/torch/modelsandtests/unit/torch/utils, run in one process, pass on CPU, torch 2.14, on transformers 5.18 and 5.5.4.2026-11-02, at 3642bd0: restacked onto main 653ef61 through [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 59edbb4. No conflicts; the own diff is unchanged. Pre-commit against main passes, mypy included;
tests/unit/torch/modelsandtests/unit/torch/utils, run in one process, pass on CPU, torch 2.14, on transformers 5.18 and 5.5.4.2026-11-02, at 9012915: rebased onto
shengliangx/hfep-base-11a-decompress, which joins [OMNIML-6060] [2/3] Load an MoE expert-parallel: shard the experts at load time #3136 d87f5bd and [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 c9dcaa9 now that [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 targets main. No conflicts; the own patch is unchanged. Pre-commit against main passes, mypy included;tests/unit/torch/modelsandtests/unit/torch/utils, run in one process, pass on CPU, torch 2.14, on transformers 5.18 and 5.5.4.2026-11-03, at a39cdb5: rebased onto the remade
shengliangx/hfep-base-11a-decompress, now main a6cc167, which holds [OMNIML-6060] [2/3] Load an MoE expert-parallel: shard the experts at load time #3136, joined with [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137 ac48ad2. No conflicts; the own diff is unchanged, and only_onfly_decompress.py's hunk offsets move, by [OMNIML-6063] [2/2] Decompress compressed-tensors MoE experts as they load, expert-parallel loads included #3137's new comments. Pre-commit against main passes, mypy included;tests/unit/torch/modelsandtests/unit/torch/utils, run in one process, pass on CPU, torch 2.14, on transformers 5.18 and 5.5.4.Before your PR is "Ready for review"
CONTRIBUTING.md: N/AAdditional Information
Part of expert-parallel PTQ for Hugging Face MoE models, [3/3] of #2747's split. It merges after #3137.