Skip to content

[BUG] Regression from the 07:55 merge wave: hf bridge in_features test expects a refusal that #6327 replaced with a fallback #6332

Done

Description

@Qubitium

Summary

On current main (abde192e), two CPU-runnable nodes fail:

tests/test_hf_packing_api.py::test_hf_bridge_forwards_in_features_to_kernel_validation[v1]
tests/test_hf_packing_api.py::test_hf_bridge_forwards_in_features_to_kernel_validation[v2]

Both fail with Failed: DID NOT RAISE ValueError at tests/test_hf_packing_api.py:292.

Reproduction

cd /root/openai-audit/cigate-main/tests
CUDA_VISIBLE_DEVICES="" PYTHONPATH=/root/openai-audit/cigate-main:/root/openai-audit/cigate-main/tests \
  /root/venv/bin/python -m pytest test_hf_packing_api.py -q \
  -k test_hf_bridge_forwards_in_features_to_kernel_validation

Result on abde192e: 2 failed, 59 deselected.

Pre-wave comparison

At the pre-wave commit 89dbcf91 the same two nodes pass:

cd /root/openai-audit/cigate-prewave/tests
CUDA_VISIBLE_DEVICES="" PYTHONPATH=/root/openai-audit/cigate-prewave:/root/openai-audit/cigate-prewave/tests \
  /root/venv/bin/python -m pytest test_hf_packing_api.py -q \
  -k test_hf_bridge_forwards_in_features_to_kernel_validation

Result: 2 passed, 59 deselected. So this is green→red across the 07:55 merge wave.

Root cause

The wave merged two conflicting behaviours:

hf_select_quant_linear() / hf_select_quant_linear_v2() now return the auto-padding TorchLinear for a shape-blind AUTO selection, which is the intended #6327 behaviour.

Expected fix

Update the test (and its docstring) to assert the fallback instead of the removed refusal:

assert select() is TorchLinear
assert select(in_features=896) is MarlinLinear
assert select(in_features=576) is not MarlinLinear

I have a draft PR with this red→green test update.

Activity

  1. added a commit that references this issue on Nov 29, 2026
    be14824
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