Repository navigation
Conversation
Each of these tests asserts behaviour the product no longer has, or builds a double that predates an attribute the code now reads: * test_local_model_paths: GPTQModel.load probes log_kv_cache_estimate() on the result, so a bare object() no longer works as the fake model. * test_diffusion_gemma_support: post_quantize reads quantize_config.activation_mode; skip the defusion test when the installed defuser predates DEFUSER_MIN_VERSION (it no-ops). * test_gsq_method_adapters: FP8 keeps the bias wide (FP32) on purpose. * test_jamba_support: #4245 declared mamba.x_proj in the quantization plan; skip the smoke test when mamba-ssm is missing (JambaQModel.require_pkgs). * test_serialization: #4327 stopped writing the machine-local offload_to_disk_path into the checkpoint meta. * test_model: the AWQ fixture packed nibbles in natural order instead of the interleave that dequantize_model reverses.
Collaborator
Author
Collaborator
Author
|
Closing as superseded: all six files in this PR were fixed on Verified on current |
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
Six files from #4769 section A ("the test is wrong") assert behaviour the product no longer has, or build a double that predates an attribute the code now reads. Each one is red on
mainand green here.Partially addresses #4769. What is left, and why, is in Scope.
What Changed
tests/test_local_model_paths.pyGPTQModel.loadprobeslog_kv_cache_estimate()on the loaded model (#4510), so theobject()sentinel raisedAttributeError_sentinel_model()helper (SimpleNamespacewith the method), used at all 14 sitestests/test_diffusion_gemma_support.pypost_quantizereadsself.quantize_config.activation_modequantize_configon the bare wrapper; skip the defusion test whendefuser_version_too_old()reports an unsupported defuser (the conversion no-ops)tests/test_gsq_method_adapters.pypacked.bias.dtype is torch.float16tests/test_jamba_support.pysimple_layer_moduleswithoutmamba.x_proj, and assertedx_projis left densemamba.x_projin the plan; skip the smoke test whenmamba-ssmis absent (JambaQModel.require_pkgs)tests/test_serialization.pyoffload_to_disk_pathis written into the checkpoint metatests/test_model.pydequantize_modelreverses (AWQ_REVERSE_ORDER), which is what a real AWQ GEMM checkpoint storesNo product code changed.
Tests
ruff checkon all six files: All checks passed.Red / green
Before (same commands, unmodified
main@ 9cd6f78):After:
65 passed, 2 skipped(four files) +1 passed(model) + the serialization node green.The AWQ fixture fix was derived, not guessed: packing the fixture's columns by
argsort(AWQ_REVERSE_ORDER)within each 8-column group reproduces the expected weight exactly (torch.equaltrue), while natural order and the forward permutation both mismatch.Scope
Fixed here — the six files above (11 test nodes).
Not taken, with reasons:
test_exl3_workspace_release.py,test_offload_base_modules_restored.py(_inflight_layer): the bareobject.__new__(ModuleLooper)doubles are missing more than [TEST] Suite triage at b225a4383 (RTX 4090 + R9700): pre-existing red tests (also red at 12c1273c2) — stale doubles/oracles/expectations, plus env-only failures #4769 lists.loop()also reachesself._dangling_threads_lock(module_looper.py:645/655), so seeding only_inflight_layerstill raises. These need the doubles to run the loop's real bookkeeping, which is a design change to the tests rather than a one-line realign.test_fallback.pysym zero point: 108 parameters fail here, not the 24 in the report, so thesym=Truezero-point fix alone would not turn the file green. It needs a separate pass over each strategy.defuser0.0.25, missingmamba-ssm/einops/bitblas, offline Hub. Two are now explicit skips; the rest are untouched.test_dynamic.py::test_skip_module(greedy 0.5B output),test_norm_lifecycle.py(6 real quantize runs),test_bits_new.py(env-var driven, which AGENTS.md forbids).test_vptq_memory_4391.pypasses on this host (torch 2.15 allocates 2 temporaries), matching the report's own note.Logic Flow Documentation
Not applicable: test-only realignment.
Model Support / Module Plan
Not applicable.
Review Requirements
Notes
test_local_model_paths.pyhelper replaced all 14object()sentinels, not only the five that failed, so the nextload-path probe does not break the file again.defuser_version_too_old,JambaQModel.require_pkgs) rather than a bareimportorskip.