Skip to content

Studio int8 GEMM: read and write the tile race cache as UTF-8 - #17044

Merged
danielhanchen merged 1 commit into
mainfrom
studio-int8-race-cache-utf8
Nov 7, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
studio-int8-race-cache-utf8

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

#17026 added a per-card cache for the unlisted-arch int8 GEMM tile race (diffusion_int8_tile_race.json). Its three read_text() / write_text() calls do not name an encoding, so tests/test_runtime_text_encoding.py::test_shipping_code_names_an_encoding fails on main:

3 text read/write call sites in shipping code let the operator's locale decide the encoding ...
studio/backend/core/inference/diffusion_int8_gemm.py:807: write_text()
studio/backend/core/inference/diffusion_int8_gemm.py:799: read_text()
studio/backend/core/inference/diffusion_int8_gemm.py:783: read_text()

This passes encoding = "utf-8" on all three. The file is plain ASCII JSON, so existing cache files read back unchanged and behaviour is identical on Linux and macOS; on Windows the read and write no longer depend on the locale code page.

Testing

  • tests/test_runtime_text_encoding.py: 9 passed (was 1 failed on main).
  • studio/backend/tests/test_diffusion_int8_gemm.py and test_diffusion_int8_gemm_unlisted.py: 109 passed, 109 skipped (CPU host).

@danielhanchen danielhanchen self-assigned this Nov 7, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T19:11:02.048625Z 5a08948 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 5a08948569

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 37df025 into main Nov 7, 2026
@danielhanchen
danielhanchen deleted the studio-int8-race-cache-utf8 branch November 7, 2026 21:00
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