Skip to content

[BUG] Phi4MMGPTQ.require_pkgs is empty; test_model.py expects backoff>=2.2.1 and optimum>=1.24.0 #6365

Done

Description

@Qubitium

Summary

tests/test_model.py::test_phi4_model_definition_requires_required_packages is red on main at be148244 and already red at 89dbcf91: Phi4MMGPTQ.require_pkgs is empty, although the definition needs backoff>=2.2.1 and optimum>=1.24.0.

Reproduction

cd /root/openai-audit/sweep-main/tests
CUDA_VISIBLE_DEVICES="" \
PYTHONPATH=/root/openai-audit/sweep-main:/root/openai-audit/sweep-main/tests \
  /root/venv/bin/python -m pytest \
  "test_model.py::test_phi4_model_definition_requires_required_packages" \
  -q -o addopts="" -p no:cacheprovider

Result: 1 failed

test_model.py:446: in test_phi4_model_definition_requires_required_packages
    assert "backoff>=2.2.1" in Phi4MMGPTQ.require_pkgs
E   AssertionError: assert 'backoff>=2.2.1' in []
E    +  where [] = Phi4MMGPTQ.require_pkgs

Root cause

gptqmodel/models/definitions/phi4.py declares require_pkgs = [] on Phi4MMGPTQ. The Phi-4 multimodal path uses the remote-code/retry helpers that need backoff and optimum, so the empty declaration removes the loader's early version check and turns a missing dependency into a later, obscure failure.

Classification: pre-existing product bug (dependency declaration), also red at 89dbcf91.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions