Skip to content

fix(modules): b12x 공유 wrapper 의 logger 정의 — 원본에 없는 이름을 썼다 - #81

Merged
choiceoh merged 1 commit into
mainfrom
fix/b12x-logger
Aug 30, 2026
Merged

choiceoh merged 1 commit into
mainfrom
fix/b12x-logger

Conversation

@choiceoh

@choiceoh choiceoh commented Aug 30, 2026

Copy link
Copy Markdown
Owner

Summary

#80logger.info_once 로 공유 발동을 남기는데, 이 파일의 원본에는 logger 가 아예 없습니다. py_compile 은 통과하고 부팅이 죽었습니다:

RuntimeError: Worker failed with error 'name 'logger' is not defined'

로그는 지우지 않습니다

측정 스크립트가 그 줄로 공유가 실제로 걸렸는지 판정합니다. 직전 측정에서 PR 이 머지 안 된 채 돌았을 때 그 확인이 "판정 불가"를 띄워, KV 16.52 → 9.79 를 결론으로 삼는 것을 막았습니다.

Verification

  • 컨테이너에서 실제 임포트로 확인 (py_compile 이 못 잡는 자리):
    임포트 성공
    _shared_wrapper: True   logger: True   _B12X_WRAPPERS: WeakValueDictionary
    
  • tests/test_logic.py — all OK

🤖 Generated with Claude Code


Note

Low Risk
Adds only logger import and module-level initialization; no changes to MoE execution or memory-sharing logic.

Overview
Fixes a worker boot crash (name 'logger' is not defined) in the B12x FlashInfer MoE overlay by wiring up the standard vLLM logger.

Both build/glm53/flashinfer_b12x_moe.py and overlay/modules/b12x_shared_workspace/flashinfer_b12x_moe.py now import init_logger and set logger = init_logger(__name__), so the existing logger.info_once(...) in _shared_wrapper (shared wrapper creation) runs without error. No behavior change beyond making that observability log work; shared-wrapper logic is unchanged.

Reviewed by Cursor Bugbot for commit 7856e5d. Bugbot is set up for automated code reviews on this repo. Configure here.

#80 이 logger.info_once 로 공유 발동을 남기는데, 이 파일의 원본에는 logger 가
아예 없다. py_compile 은 통과하고 부팅이 죽었다:

  RuntimeError: Worker failed with error 'name 'logger' is not defined'

로그 자체는 지우지 않는다 — 측정 스크립트가 그 줄로 공유가 실제로 걸렸는지
판정하고, 그게 없으면 직전 측정처럼 "아무것도 안 바뀐 상태"를 결론으로 삼게
된다.

컴파일이 아니라 컨테이너에서 실제 임포트로 확인했다: _shared_wrapper·logger·
_B12X_WRAPPERS 전부 존재. py_compile 이 못 잡는 자리였다.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 30, 2026 21:51
@choiceoh
choiceoh merged commit 456d220 into main Aug 30, 2026
@choiceoh
choiceoh deleted the fix/b12x-logger branch August 30, 2026 21:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@cursor

cursor Bot commented Aug 30, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_a31cf0cf-40dd-4eed-99fe-823eca25418f)

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-30T21:53:29.437934Z 7856e5d PR opened
ℹ️ 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.

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.

2 participants