Repository navigation
Studio: log a live generation rate while a reply is still streaming - #15390
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
…reaches (#15515) `tests/test_optimized_precision_conflicts.py` fails 19 of 19 on main (`Repo tests (CPU, rest)`, e.g. job 122034866725 on #15505): ``` NameError: name '_agree_fast_inference_across_ranks' is not defined ``` The fixture compiles `FastLanguageModel.from_pretrained` out of `loader.py` together with a fixed list of three module helpers. #15390 added a call from `from_pretrained` to a new module helper, `_agree_fast_inference_across_ranks`, which was not on that list, so every case now stops on the NameError before reaching the precision checks this file is about. The product code is fine (the helper returns early when `fast_inference` was not requested); the harness list was stale. Instead of adding one more name, the fixture now lifts every `loader.py` top-level function (and literal constant such as `_VLLM_ENGINE_KWARGS`) that `from_pretrained` reaches by name, transitively, skipping anything the fixture already stubs in its namespace. A future helper is picked up automatically, and the stubs keep precedence. Verification (local, CPU): - main: 19 failed; this branch: 19 passed. - Sabotage: making `_agree_fast_inference_across_ranks` raise fails all 19, so the real helper runs on every case. - Stub precedence: redefining a stubbed name (`_raise_if_modeling_ignores_config`) in `loader.py` to raise still passes 19, so the lift never overrides a stub.
|
Review record for #15390, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#582. Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found. Round 1: reviewed mirror
|
The engine_stats log line read gen_tok_s 0.0 for every tick of a reply longer than one tick, even with running 1 and the engine decoding steadily. llama-server only adds tokens to its rate gauge when a slot is released, and the gauge empties on every read, so long replies (common with reasoning models) only showed a rate on the tick they finished.
While requests run, the rate now comes from the tokens each busy slot decoded since the last tick, read from llama-server's slots endpoint with the same loopback scrape and key. The gauge still wins when a reply finished in that tick. If the slots endpoint is off or fails while decoding, gen_tok_s is left out instead of logging a misleading 0.0.
On a T4 with Qwen3-1.7B GGUF, a 4000-word reply now logs 96 to 115 tok/s on each tick instead of 0.0.