Repository navigation
Mistral Large 4: FP8 quantized fixtures (#222) - #252
Draft
tarekziade wants to merge 10 commits into
Draft
tarekziade wants to merge 10 commits into
tarekziade wants to merge 10 commits into
Conversation
This branch has not been deployed
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.
Draft, not ready to land. Opened to keep the work for #222 in the repo, rebased onto current main.
What it does
tmic fixturerestores a dynamic blockwise FP8 source'squantization_configon save and writes real FP8 weights and scales under the source's names (fixture_quantization.py,build_fixtures.save). Fitting still runs on the dense in-memory model.qk_head_dimis recomputed, nested dtypes follow the cast model, and the saved config is round-trip and shape checked (fixture_validation.py). Redundant derived fields and inherited nested dtypes are dropped fromconfig.json.tester.valuesalso reads a literal dict returned by a staticget_small_config_defaults(), still withastonly (nothing is imported or run).experiments/regeneration-inputs/projects/mistral-large4-issue222) and alocal_workspacemode forcloud-baselines.ymlthat builds and measures a checked-in workspace on CPU and CUDA from Actions artifacts only, with no Hub writes.Status
docs/fixtures.mdbullet (main's text kept, plus the branch's new bullet).python -m pytest tests/ -q(Python 3.11, torch 2.15.0, transformers 5.22.1): 586 passed, 1 skipped (sentence_transformersis not installed).Open questions
@staticmethod get_small_config_defaults()that returns a literal. #50462 as it stands puts the literal in a class-levelsmall_config_overridesand makesget_small_config_defaults(cls, **kwargs)a classmethod that merges basedefaultsfromtests/model_tester_config.py. So the migrated Mistral Large 4 tester would not be read. The parser should probably readsmall_config_overridesplus the base dicts, and keep usingast.fleet.lockpins torch 2.14.0, while main's fleet runs 2.15.0.experiment/mistral4-gpu-20261107has two more commits that are not included here: an expert-aligned fixture snapshot and GPU check changes. They also touchfixture_quantization.py,fixture_validation.pyandtester.py.local_workspaceworkflow mode andverify_workspace_baselines.pyland with this change or separately?🤖 Generated with Claude Code