Skip to content

Delete stale CRITICAL_TEMPERATURE_BUG.md#44

Merged
MaxGhenis merged 2 commits intomainfrom
fix/remove-stale-temperature-doc
Apr 17, 2026
Merged

Delete stale CRITICAL_TEMPERATURE_BUG.md#44
MaxGhenis merged 2 commits intomainfrom
fix/remove-stale-temperature-doc

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

@MaxGhenis MaxGhenis commented Apr 17, 2026

Summary

Two small housekeeping fixes bundled together:

  1. Delete CRITICAL_TEMPERATURE_BUG.md. The file documented a temperature-scaling bug in HardConcrete._deterministic_gates and pointed readers at l0_louizos_improved_gate.py, a file that does not exist in the repo. The actual bug is fixed by Fix temperature scaling in HardConcrete deterministic gates #41 (the sigmoid(qz_logits / temperature) change in l0/distributions.py:132), so the three core modules (distributions.py, calibration.py, sparse.py) are now consistent.
  2. Switch CI lint job from black to ruff. Switch code formatter from Black to Ruff #40 switched the repo's formatter from black -l 79 to ruff format and updated the Makefile, but the reusable lint workflow still invoked lgeiger/black-action with . -l 79 --check. Since every ruff-formatted file fails black -l 79, every PR's lint check has been failing since Switch code formatter from Black to Ruff #40 — including the three companion PRs in this series.

Addresses bug-hunt findings

Also unblocks CI for the rest of the series (#41, #42, #43).

Depends on

Test plan

  • uvx ruff format --check . on origin/main reports 21 files already formatted — the workflow change will not flag existing files.
  • grep -R CRITICAL_TEMPERATURE_BUG and grep -R l0_louizos_improved_gate return no matches after the deletion.

MaxGhenis and others added 2 commits April 17, 2026 08:35
This file documented a temperature-scaling bug in
`HardConcrete._deterministic_gates` and pointed readers at a "gold
standard" reference file `l0_louizos_improved_gate.py` that does not
actually exist in the repository. The bug itself is fixed by
#41 (the `sigmoid(qz_logits /
temperature)` change in `l0/distributions.py`), and the three standalone
modules (`distributions.py`, `calibration.py`, `sparse.py`) are now
consistent. Remove the stale doc now that its content is either obsolete
or misleading.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
#40 switched the repo's formatter from `black -l 79` to `ruff format`
(default 88-char line length) and updated the Makefile, but the reusable
lint workflow still invoked `lgeiger/black-action` with `. -l 79 --check`.
Since ruff-formatted files don't pass `black -l 79`, every PR's `lint`
check has been failing since #40.

Replace the black action with a `uvx ruff format --check .` run, matching
what `make format-check` would do locally.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor Author

@MaxGhenis MaxGhenis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — merge-first.

Scope verified:

  • .github/workflows/reusable_lint.yaml swaps lgeiger/black-action for uvx ruff format --check . with python 3.13 + astral-sh/setup-uv@v3 setup. Matches the Makefile change from #40 and already passes CI on this PR.
  • No other CI config is touched (5 other workflow files untouched).
  • CRITICAL_TEMPERATURE_BUG.md deletion is safe: the doc pointed at a nonexistent l0_louizos_improved_gate.py, and PR #41 applies the actual fix it described.
  • 2 changelog fragments added (fixed + removed). Tight scope, clean commits.

Lint + test + changelog checks all green; mergeable. Merge this first to unblock the other three PRs' lint checks.

@MaxGhenis MaxGhenis merged commit d3561b2 into main Apr 17, 2026
3 checks passed
@MaxGhenis MaxGhenis deleted the fix/remove-stale-temperature-doc branch April 17, 2026 16:05
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