Repository navigation
Conversation
- Move model-specific msProbe settings into model-level response_anomaly config - Use ILLDetector with configurable config.yaml/mtype_config.json/token2category paths - Add ais_bench-gen-response-anomaly-config tool wrapping the official msProbe generator - Auto-generate model configs from model_path when custom paths are absent - Make status board, resume inheritance and unsupported-mode gating robust
- Replace same-length non-prefix snapshots instead of dropping them - Reuse ResponseAnomalyCoordinator.STATUS_FILE_NAME in all call sites - Keep gen_model_config tools dir on failure and add tests - Remove redundant model_name fallback and simplify status file read
- Force logprobs/top_logprobs when response anomaly is enabled and validate - Extend monitor progress total for auxiliary tasks - Handle mixed full-token/current-topk stream chunks and ignore misaligned ones
…match id+uuid on resume - Run the official msProbe generator inside an isolated temp directory so a partial failure never clobbers the target mtype_config.json; merge generated files into the target only on success - Overwrite None-valued msprobe_config_path (set by ConfigManager) with the auto-generated path so user-tuned config.yaml thresholds take effect - Match inherited results on id+uuid instead of id alone so a re-inferred response is not assigned a stale anomaly result - Add tests for all three fixes
- Change the full-snapshot branch from >= to > so that a single-token chunk equal to the current state (two consecutive identical tokens in an incremental stream) falls through to the incremental-append branch instead of being silently dropped as a no-op snapshot - Cache the per-model anomaly config and ILLDetector so that a model with multiple datasets only generates its msProbe config and loads token2category once instead of once per dataset - Add test_stream_consecutive_identical_tokens_are_not_dropped
- Log a debug message when a misaligned streaming response chunk is dropped so payload misalignment is not silently ignored - Warn per model/dataset group when predictions are missing, and warn once when no service model/dataset groups are configured at all, instead of silently finishing with zero analyzed cases - Hoist the result directory mkdir out of the per-prediction loop - Add end-to-end tests for the _detect loop, the empty-prediction warning, and misaligned chunk logging
The normalized model name is written by AISBench and looked up by msProbe using the same split+join algorithm, so consecutive separators produce double dashes on both sides (foo__bar -> foo--bar). Lock this behavior with tests so a future cleanup cannot silently break the msProbe sync.
This reverts commit 0855249.
Avoid writing payloads that are already retained in the seeded archive when resuming in all-retention mode, and stop recording transient payload shard references in detection results.
Document the new msProbe response anomaly detection feature in install, mode, models, and cli_args docs (zh + en). Cover: - Optional dependencies (mindstudio-probe + zstandard) via requirements/response_anomaly.txt or response_anomaly extra - Mode support: all/infer/infer_judge only; perf/viz/Agent unsupported - Service model-level response_anomaly config fields - Full CLI args and retention semantics mirrored from zh to en
The manual merge of the spec-decode wrapper and the response anomaly startup in Infer.do_work dropped the method-level indentation of the spec decode snapshot call during rebase conflict resolution.
- tests: use pytest.importorskip('zstandard') so the UT modules skip
instead of failing collection when the response_anomaly extra is not
installed (CI installs api.txt + extra.txt only)
- base_handler: a response anomaly payload staging failure no longer
aborts inference/eval; warn once, disable staging, and keep payloads
inline in predictions
- add regression test for graceful staging degradation
Mirror the response_anomaly template block from vllm_api_general_chat into the streaming chat config. VLLMCustomAPIChat already injects return_token_ids request params and base_api handles streaming payload accumulation, so no code change is required.
- Bind detection to the inference stage: log when the coordinator starts right after the runner finishes, and pin the ordering with tests - Enforce msProbe model resources: model_path falls back to the model 'path' (tokenizer dir); missing resources now fail fast with fix guidance instead of silently falling back to msProbe built-ins, and auto-generated config paths are logged - Reject unsupported model classes (only VLLMCustomAPIChat backends can return token ids + top-k logprobs) at config init - Expose per-task anomaly report and print result/payload/log paths whenever anomalies are detected
…robe paths - TasksMonitor only reads the response anomaly status file when opted in; eval/judge boards no longer mix the detection task into their table, and the dedicated anomaly board keeps rendering it - Validate that explicitly configured msprobe resources (config/mtype/ token2category) and model_path exist at config time; missing files now abort startup with the offending paths instead of failing every case at runtime - Drop placeholder msprobe paths from the vllm chat config templates so the auto-generation fallback (model path -> tokenizer dir) is the documented default - ResponseAnomalyWait now also warns when cases ended up failed/ unavailable, pointing at the task log for the root cause
Restore msprobe_config_path/msprobe_mtype_path/msprobe_token2category_dir keys in the response_anomaly template blocks so the config surface stays discoverable; empty-string values keep them inert (treated as unset by the existence validation) while placeholder '/path/to/...' values are gone.
When model_path (local tokenizer) is provided, explicitly configured msprobe_config_path / msprobe_mtype_path / msprobe_token2category_dir now act as generation outputs: the generated resources are placed there, reusing existing files untouched. An empty msprobe_config_path keeps the msProbe built-in default. Without model_path the configured paths must already exist (unchanged).
The dedicated board only started while detection was still running, but detection usually finishes before the workflow reaches ResponseAnomalyWait (it runs in parallel with eval and is much faster). Combined with evaluation boards no longer rendering detection status, the final detection table disappeared from the console entirely. Start the board whenever a detection status file exists so the final table is always printed; keep skipping it when no status was ever written to avoid the board waiting forever on tasks that never started.
Detection now starts and completes inside the Infer worker: the dedicated status board renders right after the inference board and before any evaluation board starts, so the detection table finally appears between infer and eval as requested. ResponseAnomalyWait and its WORK_FLOW entries are removed (no longer needed), and the design doc is updated accordingly. Trade-off: detection no longer overlaps with eval; total runtime grows by the detection duration.
test_write_to_json_stages_payload_separately exercises the zstd staging writer, which imports zstandard lazily. In environments without the response_anomaly extra the graceful staging degradation keeps payloads inline, failing the assertNotIn. Skip the test there, matching the guard already used by the other response anomaly test modules.
|
✅ PR 合入质量五项检查全部通过,允许合入。 |
7 of 15 tasks
Collaborator
Author
|
关闭此 PR:原分支包含较多历史提交(fork 未同步时的旧基线)。已改用基于最新 master 的干净单提交分支重新提交,见 #486。变更内容完全一致:删除设计文档 docs/source_zh_cn/design/AISBench推理响应异常检测模块设计.md。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Type / PR类型
Related Issue | 关联 Issue
Relates to #468
🔍 Motivation / 变更动机
响应异常检测模块的设计文档《AISBench推理响应异常检测模块设计.md》随 PR #468 合入,但它属于内部设计资料,与面向用户的工具文档体系不匹配:
design/目录不在docs/source_zh_cn/index.rst的任何 toctree 中,文档导航里不可见,读者只能通过直接 URL 访问get_started/install.md、base_tutorials/all_params/*.md)存在职责重叠,容易造成读者困惑因此本 PR 将其从文档目录中清理,保持用户文档体系的整洁。
📝 Modification / 修改内容
删除文件
docs/source_zh_cn/design/AISBench推理响应异常检测模块设计.md(372 行)。📐 Associated Test Results / 关联测试结果
纯文档删除,不涉及代码与测试。文档构建验证可通过
/readthedocs buildCI 命令触发。无。仅删除一份未纳入 toctree 的设计文档,不影响任何 API、配置或下游使用。
无。
🌟 Use cases (Optional) / 使用案例(可选)
不适用(纯文档清理)。
✅ Checklist / 检查列表
Before PR:
After PR:
👥 Collaboration Info / 协作信息
🌟 Useful CI Command / 实用的CI命令
/gemini review/gemini summary/gemini help/readthedocs build/pr_check