Add YAML-aware from_pretrained scaling + runtime transform wiring#1072
Open
anujgupt-github wants to merge 2 commits into
Open
Add YAML-aware from_pretrained scaling + runtime transform wiring#1072anujgupt-github wants to merge 2 commits into
anujgupt-github wants to merge 2 commits into
Conversation
Signed-off-by: Anuj Gupta <anujgupt@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
qeff_layer_scale_yamlhandling in the safetensor materialization/load path sofrom_pretrained(...)can apply YAML tensor scaling for both standard and streaming checkpoint loadsresolve_model_card_from_loaded_qeff_model,run_precision_recovery_agent_from_loaded_qeff_model)from_pretrainedValidation
/home/anujgupt/qeff_env2/bin/python -m ruff format --check QEfficient/transformers/models/qwen3_vl_moe/modeling_qwen3_vl_moe.py QEfficient/utils/__init__.py QEfficient/utils/layer_scale_checkpoint.py QEfficient/utils/precision_recovery_agent.py QEfficient/utils/safetensor_materializer.py tests/base/test_safetensor_materializer.py tests/unit_test/models/test_model_quickcheck.py tests/utils/test_precision_recovery_agent.py/home/anujgupt/qeff_env2/bin/python -m ruff check QEfficient/transformers/models/qwen3_vl_moe/modeling_qwen3_vl_moe.py QEfficient/utils/__init__.py QEfficient/utils/layer_scale_checkpoint.py QEfficient/utils/precision_recovery_agent.py QEfficient/utils/safetensor_materializer.py tests/base/test_safetensor_materializer.py tests/unit_test/models/test_model_quickcheck.py tests/utils/test_precision_recovery_agent.py/home/anujgupt/qeff_env2/bin/python -m pytest tests/base/test_safetensor_materializer.py -q/home/anujgupt/qeff_env2/bin/python -m pytest tests/utils/test_precision_recovery_agent.py -qHF_HUB_CACHE=/home/anujgupt/.cache/hf_hub /home/anujgupt/qeff_env2/bin/python -m pytest tests/unit_test/models/test_model_quickcheck.py -qNotes
176 passed, 3 skipped).debug/whole-model-memory-pr1047) per dependency on materialization infrastructure.