compileiq-debug
БесплатноЗапускает вложенные скриптыНе проверенUse when something is wrong: Search() hangs, all evaluations return INVALID_SCORE, scores aren't improving, every config returns the same number, ptxas errors…
от NVIDIA★ 4 269 звёзд на GitHubОб этом скилле
compileiq-debug
A symptom-indexed cheat sheet. Find the row that matches what the user is seeing, follow the first action, then dig into the matching detail section.
Symptom table
| Symptom | Most-likely cause | First action |
|---|---|---|
| Search hangs on first eval | Release fetch slow/blocked; OR forkserver issue |
CIQ_SEARCH_SPACES_DIR=<local mirror>; if still hangs, CIQ_PROCESS_MODE=spawn. |
Engine 'amber' is not registered |
Frontend-only install (source checkout without the native runtime) | pip install compileiq for a complete wheel; from a source checkout, git lfs pull && make install |
FutureWarning: SearchConfiguration settings that have no effect since CompileIQ 1.1 are ignored |
SearchConfiguration(cull_size=..., mutate_rate=..., objective_weights=..., enable_large_fail_pool=False) |
The setting has no effect. Remove it, or pass the named amber option through EngineConfig(name="amber", options={...}) |
SearchSpaceExhaustedWarning (search ends early) or Unable to generate N unique candidates from ask() |
amber never repeats a candidate; the space is small or the search converged |
Lower pool_size or generations, or widen the search space |
Every eval returns INVALID_SCORE |
Return-type mismatch (tuple vs scalar) / correctness gate / task_timeout too tight |
Search.sample(1) + call objective by hand; check num_objectives vs return shape; raise task_timeout |
| Every eval returns the same score | ACF not reaching the compiler — framework cache is hiding it | Apply Debug-pack O0 ACF by hand; if the score doesn't regress, fix cache-bust (TRITON_ALWAYS_COMPILE=1, HELION_SKIP_CACHE=1, fresh TRITON_CACHE_DIR, drop FlashInfer cubin packages) |
TypeError: fromhex() … not dict |
Objective has no baseline branch: with normalize=True the first call passes BASELINE_CONFIG (an empty dict) |
Add the baseline-knockout branch (run without an ACF when config is an empty dict) and write ACFs with save_compiler_config(acf_path, config); see compileiq-author-objective |
"not in expected format" |
Objective returned wrong shape | num_objectives must equal len(return_tuple); scalar return only when num_objectives=1 |
| Convergence stalled (best score flat) | Pool too small for space; mutation too low; or kernel near-optimal | Raise pool_size; raise amber's mutation_probability option; sample diversity with Search.sample(20) |
| Increasing invalid rate over generations | Mutation arm spreading; compiler version drift mid-run | CIQ_KEEP_CACHE=1, re-run, inspect failing configs offline |
| CV% > 10% on validation | Unlocked clocks / thermal throttling / GPU contention | Lock GPU + memory clocks; pin CUDA_VISIBLE_DEVICES; watch nvidia-smi dmon for thermals |
| Need to know why a winning ACF helps | Profile with NCU | See NCU section below |
Details
Hang on first eval
Not BLAS. Do not send users to symlink
libblas.so.
Current shipped binaries link only libm/libc/libstdc++/libgcc_s and
do not require BLAS/LAPACK.
Real causes today, in order of frequency:
- Release-backed search-space fetch is slow or blocked. First call to
PtxasSearchSpace().retrieve()downloads fromgithub.com. On a corporate firewall this can stall. Pre-stage the mirror from a host that can reach GitHub (tags are dated,search-spaces-YYYY.MM.DD; there is no literallatesttag), then point CompileIQ at it:
SeeSS_TAG="$(gh release list -R NVIDIA/CompileIQ --limit 100 --json tagName,isDraft,isPrerelease \ --jq '.[] | select(.isDraft == false and .isPrerelease == false) | select(.tagName | startswith("search-spaces-")) | .tagName' \ | head -n 1)" gh release download "$SS_TAG" -R NVIDIA/CompileIQ -D /shared/mirror export CIQ_SEARCH_SPACES_DIR=/shared/mirrorcompileiq-search-spacefor the full air-gapped setup. forkserveris unsupported on the host. SetCIQ_PROCESS_MODE=spawn.IsoMultiProcessWorkeralready usesforkby default.
Every eval returns INVALID_SCORE
Sanity-check the shape before assuming the worst:
sample = tuner.sample(1)[0]
score = objective(sample)
print(type(score), score)
Common shape mismatches:
num_objectives=1butobjectivereturns a tuple(latency,). Drop the trailing comma.num_objectives=2butobjectivereturns a scalar.- Correctness gate is rejecting everything because the reference call itself is wrong.
task_timeoutis shorter than a clean compile takes; raise it.
Every eval returns the SAME score
Almost always a framework cache serving a stale binary. Run the O0/O3 canary
from the Debug pack to confirm — see compileiq-booster-pack for the exact
test. If O0 doesn't regress vs baseline, the ACF is not reaching PTXAS. Fix:
| Framework | Cache-bust |
|---|---|
| Triton | TRITON_ALWAYS_COMPILE=1 + unique TRITON_CACHE_DIR per eval |
| Helion | `HELION_SKIP_CACHE |
Установить compileiq-debug в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadВложенные файлы
FAQ
Что делает скилл compileiq-debug?
Use when something is wrong: Search() hangs, all evaluations return INVALID_SCORE, scores aren't improving, every config returns the same number, ptxas errors fill the log, CV% is too high, or a winning ACF candidate needs NCU profiling to explain. Symptom-indexed table on top. Triggers on "compileiq hang", "socket timeout", "INVALID_SCORE", "not converging", "every score is the same", "TypeError fromhex", "ncu profile", "register spill", "ptxas error", "not in expected format", "high cv".
Как установить скилл compileiq-debug?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл compileiq-debug запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic