Skip to content

[TEST] tests/models integration suite at def6e61 (RTX 5090): stale QQQ test, hard-coded flash_attention_2 crashes, stale slow-mode baselines, silently-skipping tests #4398

Closed

Description

@Qubitium

Severity: low. Status: confirmed on an RTX 5090 at def6e61, compared against 842d666 and 9dad249.

Summary

  • No accuracy regression and no gptqmodel crash in this suite.
  • Every test that reached evaluation gave identical numbers at def6e61 and 842d666.
  • Fast mode quantizes only 2 layers, so slow (full-model) mode was also run for opt, TinyLlama, Qwen2.5-0.5B and Llama-3.2-1B.

1. test_llama3_2_qqq always fails on CUDA

  • Cause: tests/models/test_llama3_2_qqq.py sets LOAD_BACKEND=BACKEND.QQQ but leaves TORCH_DTYPE="auto". Llama-3.2-1B is bf16.
  • Where it fails: post-quant validation, at model_test.py:1102 → loader.py:2771 → utils/model.py:635 make_quant → importer.py:1562.
  • Error: ValueError: QQQLinear only supports [torch.float16] dtype: actual dtype = torch.bfloat16.
  • Not a regression: it fails identically at 9dad249, 842d666 and def6e61.
  • Fix: set TORCH_DTYPE=torch.float16, or use BACKEND.QQQ_TORCH.

2. Hard-coded attn_implementation: "paged|flash_attention_2" crashes without flash-attn

These per-task evalution_model_args bypass the harness's own USE_FLASH_ATTN / is_flash_attn_2_available() gate (model_test.py:1618-1620, 1812-1814).

Affected:

  • test_llama3_2.py (EVAL_TASKS_FAST["gsm8k_platinum_cot"])
  • test_llama3_2_swordfish.py
  • test_llama3_2_dynamic_skip_layer_replay.py
  • test_multi_vs_single_gpu.py
  • paroquant_optimize_case.py
  • paroquant_first_layer_case_helper.py
  • test_qwen3_6_moe.py
  • test_qwen3_8b_fp8_gsm8k_last4.py
  • test_deci.py
  • test_cohere_compass.py
  • test_ling_2_6_flash_support.py
  • test_nemotron_omni_support.py

Result: ImportError: FlashAttention2 has been toggled on, but ... not installed, raised after quantization finishes.

Check: with "paged|sdpa" instead, test_llama3_2 passes (gsm8k_platinum_cot 0.4723 against a 0.469 baseline).

3. Stale baselines

Qwen2.5-0.5B-Instruct, slow mode: FAILS.

  • Quantized gsm8k_platinum_cot acc,num = 0.3466 against a stored 0.2963. That is 116.97%, above the 110% ceiling.
  • The native fallback can't rescue it: the quantized model reaches 85.7% of current native (0.4045), below the 96% floor.
  • Identical at 842d666, so this is a stale baseline, not a regression.

Passing only through the native fallback (_maybe_accept_current_native_baseline):

Model / mode Quantized Stored baseline Current native
TinyLlama, slow acc_norm 0.3003 0.3268 0.3089
TinyLlama, fast acc_norm 0.3055 0.3251 —
Qwen2.5, fast acc_norm 0.3234 0.3404 0.3345

At the floor: Llama-3.2-1B slow-mode ARC sits right at the 96% floor (96.04% / 96.26%) at both commits.

4. Tests that never run

5. Harness inefficiency

Evalution's batch_size="auto" picks 384–768 on a 32 GB GPU and hits OOM. The harness then retries at batch 8 in nearly every test, which makes the suite much slower (granitemoe_swa took 12.8 min).

Passed

opt (fast and slow), llama3_2 (fast and slow, with sdpa), act_group_aware, gemma3-1b, granite-3.0-2b, bloom, gpt2, ernie4_5, lfm2, yi, qwen3-4B, granite_4_0_h_350m, granitemoe_swa, llama3_2_exllamav3, llama3_2_fp8, bloom_bias_torch_fused, granite_swa, ovis2, ministral3, starcoder2, ouro, k2_horizon-0.9B.

Environment-only failures (not reported)

  • torchvision: qwen2_vl, qwen3_vl, lfm2_vl, internvl.
  • timm: gemma3n.
  • mamba_ssm: zamba2.
  • ninja: hymba.
  • bitsandbytes.

Found during an AI-assisted review (Claude Code, round 12) of def6e61; repros were run at that commit (A/B against 842d666 where noted) on RTX 4090/5090 (CUDA 13) and/or Radeon AI PRO R9700 (ROCm) unless marked static/suspected.

Activity

  1. added
    bug
    on Nov 16, 2026
  2. Qubitium commented on Nov 16, 2026

    @Qubitium
    CollaboratorAuthor

    Claimed by an AI agent: items 3-5 (stale baselines, silently-skipping tests, batch_size=auto OOM thrash). Items 1-2 are already merged via #4433.

  3. Qubitium commented on Nov 16, 2026

    @Qubitium
    CollaboratorAuthor

    All five findings are addressed and merged:

    1. QQQ fp16 pin: test(models): gate flash-attn eval args and pin QQQ test to fp16 (#4398) #4433.
    2. flash-attn eval args: test(models): gate flash-attn eval args and pin QQQ test to fp16 (#4398) #4433.
    3. Stale Qwen2.5-0.5B slow baselines: test(models): fix silently-skipping tests, auto eval batch OOM, refresh Qwen2.5 slow baselines (#4398) #4445 (re-measured on the public revision, thresholds unchanged).
    4. Silently-skipping tests: test(models): fix silently-skipping tests, auto eval batch OOM, refresh Qwen2.5 slow baselines (#4398) #4445 (InternLM2.5 gates on the definition's require_pkgs; Llama-3.2 GPTQ CUDA E2E uses opt-in pytest markers instead of env vars).
    5. batch_size="auto" OOM thrash: test(models): fix silently-skipping tests, auto eval batch OOM, refresh Qwen2.5 slow baselines (#4398) #4445 (memory-derived chooser capped at 16, OOM retry halves the attempted batch).

    Closing.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions