Skip to content

docs(jit): require sccache >= 0.18; single setting RuntimeConfig.compiler_cache - #6505

Merged
Qubitium merged 1 commit into
mainfrom
sccache-min-version-docs
Dec 1, 2026
Merged

Qubitium merged 1 commit into
mainfrom
sccache-min-version-docs

Conversation

@Qubitium

@Qubitium Qubitium commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #6502:

  • One setting, shorter name. jit_compiler_launcher → RuntimeConfig.compiler_cache. RuntimeConfig is the public home for shared host controls. The KernelConfig field stays only as the internal carrier that every RuntimeConfig field uses (RuntimeConfig.to_kernel_config()); docs and log messages now point only at RuntimeConfig. fix(jit): refuse sccache < 0.18 (drops cicc/ptxas on CUDA 13.3), remember failed builds #6502 merged hours ago and no release carries the old name, so there is no compatibility shim.
  • sccache ≥ 0.18.0 requirement documented where people and agents look before building kernels:
    • docs/jit-kernel-builds.md (requirement callout at the top);
    • docs/kernel-config.md;
    • README install notes;
    • AGENTS.md repository-wide rules;
    • the gptqmodel-agent-workflow skill: check sccache --version before building or testing kernels, and upgrade instead of working around a failed build. Distro packages (Ubuntu) ship 0.13.
  • Doc example fix. The jit-kernel-builds.md Python example referenced an undefined model_id, so it failed test_doc_python_example_runs. It now builds a QuantizeConfig with the runtime setting and runs on a CPU-only, offline host.
flowchart LR
    U["RuntimeConfig(compiler_cache=...)"] --> K["KernelConfig.compiler_cache<br/>(internal carrier)"] --> B[JIT build policy in utils/cpp.py]
    S["sccache on PATH"] --> V{"sccache --version >= 0.18.0?"}
    V -- no / unreadable --> N[build without launcher, log why]
    V -- yes --> B
Loading

Test plan

  • tests/test_torch_ops_jit_extension.py, test_kernel_config.py, test_backend_config.py, test_runtime_config_4448.py: 235 passed.
  • tests/test_docs_contract_refs.py for the touched docs (jit-kernel-builds, kernel-config, README, AGENTS): 156 passed.
    • The jit-kernel-builds.md block now executes.
    • Seven other failures in this file already fail on main and are fixed separately.
  • [email protected] lint gate clean.

🤖 Generated with Claude Code

…er_cache

- Rename `jit_compiler_launcher` to `compiler_cache` (#6502 just merged;
  no release carries the old name). `RuntimeConfig.compiler_cache` is the
  one public setting; the `KernelConfig` field is only the internal carrier
  every RuntimeConfig field uses. Log messages point at RuntimeConfig.
- Document that an sccache on PATH must be >= 0.18.0 (older drops the
  cicc/ptxas steps of CUDA 13.3+ builds) in docs/jit-kernel-builds.md,
  docs/kernel-config.md, README install notes, AGENTS.md and the
  gptqmodel-agent-workflow skill (check `sccache --version` before
  building or testing kernels; distro packages ship 0.13).
- Make the jit-kernel-builds.md example runnable on a CPU-only, offline
  host (it referenced an undefined `model_id` and failed the docs test).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Qubitium
Qubitium marked this pull request as ready for review December 1, 2026 01:28
@Qubitium
Qubitium merged commit 69e1de8 into main Dec 1, 2026
6 checks passed
@Qubitium
Qubitium deleted the sccache-min-version-docs branch December 1, 2026 01:29
Qubitium added a commit that referenced this pull request Dec 1, 2026
…6506)

`tests/test_docs_contract_refs.py` had 8 failures on main:

- docs/cancelled-run-contract.md (+ the citation table) still cited
  `_copy_checkpoint_tensors_into_submodule` / `_publish_checkpoint_param_`
  in gptqmodel/utils/structure.py; #6473 moved both to
  gptqmodel/weight_loader/source.py.
- docs/weight-loader.md blocks 0/1 (#6473) executed on a CPU-only host:
  a two-accelerator `accel:0`/`accel:1` placement map and a continuation
  that needs `model` and a real checkpoint. Skip-listed with reasons.
- docs/measurement.md block 3 is a continuation snippet (prose-defined
  `texts`, `tokenizer`, models); skip-listed.
- Skip-list digests refreshed for docs/calibration-config.md::0 (#6500
  added `exclude_attention_sinks=None`) and
  docs/looper-checkpoint-redesign.md::0 (#6492 added subset intervals);
  both reasons still hold.

The eighth, docs/jit-kernel-builds.md::0, is fixed in #6505.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant