Skip to content

[TEST/DOCS] Leftovers from the env-var → KernelConfig move (#4364): failing GGUF_CPP test, docs still describe no-op env vars and an ineffective configure_kernel recipe #4449

Closed

Description

@Qubitium

Severity: low. Kind: stale test/docs after 27c6b7b. Confirmed at 489aed6.

  • A failing test. tests/test_gguf_cpp_matmul_accuracy_4316.py::test_default_path_is_unchanged fails at HEAD with assert True is False (line 185). It still uses monkeypatch.setenv("GPTQMODEL_GGUF_CPP_NATIVE_MATMUL", "0"), which is now a no-op; line 153 does the same.
  • A no-op env var still documented. docs/gguf-cpp-activation-quantization.md:149,179 still describes that env var as a working process-wide selector.
  • A ROCm recipe that is silently undone. docs/rocm-rdna4.md:128-130 recommends configure_kernel(KernelConfig(rocm_quant_blas="hipblaslt")). Every GPTQModel.load (configure_kernel(None)) and both loopers (use_process_default=False) reset it. Observed: before load hipblaslt/False, after load None/True. Either the docs or the reset behaviour should change.
  • An invalid shell line. docs/rocm-default-environment.md:238 contains KernelConfig(rocm_quant_blas="hipblaslt") python quantize.py.
  • The wrong backend name. docs/backend-selection.md says ParoQuantConfig selects PAROQUANT; it actually selects PAROQUANT_CUDA.
  • A wrong error type for device=1 (c3fd2f6). With one visible GPU it now raises a raw AcceleratorError: invalid device ordinal. That is correct behaviour (def6e61 silently used cuda:0), but a clear ValueError would be friendlier.

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

Activity

  1. added
    documentation
    on Nov 16, 2026
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

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions