본문으로 건너뛰기
cccskills
무료GitHub에 공개

clean-startup-log

Collect and review SGLang startup logs to identify unnecessary output and trace its source. Get saved logs and specific cleanup proposals while preserving useful diagnostics, with runtime changes left for user approval.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Audit SGLang startup logs, save evidence, and propose cleanup for user review. With no arguments, run Qwen3-8B at TP1 and TP2 plus gpt-oss-20b at TP1.

설치 방법 보기

이럴 때 유용합니다

  • Investigating repeated messages in startup logs
  • Checking which startup warnings need attention
  • Comparing startup logs across models and GPU counts
  • Reviewing evidence before approving logging changes

포함된 파일(2)

  • SKILL.md5.8 KB
  • references/noise-sources.md4.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Audit SGLang Startup Logs

The default outcome is saved logs and a findings report. Apply runtime changes only after the user selects them. A request to edit this skill does not itself launch servers.

Default runs

A bare $clean-startup-log invocation runs these cases sequentially without asking for commands. Explicit commands, models, or TP sizes replace this matrix.

Case / log filenameCommand
qwen3-8b-tp1.loguv run sglang serve --model-path Qwen/Qwen3-8B
qwen3-8b-tp2.loguv run sglang serve --model-path Qwen/Qwen3-8B --tp 2
gpt-oss-20b-tp1.loguv run sglang serve --model-path openai/gpt-oss-20b

These cover dense, tensor-parallel, and MoE/hybrid sliding-window attention startup. Reuse complete captures from the current audit when code and environment have not changed.

Capture logs

  1. Check the checkout, free GPUs, and ports once. Use the requested command when resources are free; otherwise select free GPUs with CUDA_VISIBLE_DEVICES and an unused --port, recording the adjustments. Leave existing servers alone.
  2. Create a unique directory with mktemp -d /tmp/sglang-startup-audit-XXXXXX. Save raw stdout and stderr together in a separate log for each case, for example with set -o pipefail and COMMAND 2>&1 | tee LOG_PATH. Record commands, GPU IDs, ports, commit, relevant overrides, and readiness status.
  3. Wait for The server is fired up and ready to roll!, then stop that server and its workers before the next case. First runs can spend many minutes downloading weights or compiling FlashInfer kernels; check download/compiler activity before treating a quiet log as a hang. Preserve partial logs for failed or stalled starts and report the last stage. Continue independent cases when possible.
  4. Preserve the user's logging configuration, including NCCL_DEBUG. If NCCL verbosity needs explaining, inspect relevant shell settings, NCCL_CONF_FILE, and /etc/nccl.conf. Do not override intentional diagnostics or recommend NCCL_DEBUG=WARN solely because the output is long. Avoid full environment dumps.

Investigate efficiently

  • Scan for deprecations, duplicate handler output, unrelated import failures, unformatted prints, and unexpected warnings. Read representative excerpts and counts instead of repeatedly dumping server_args, progress redraws, or NCCL diagnostics. Normalize carriage returns for analysis only; preserve raw logs.
  • Trace each candidate to its actual emitter with focused rg searches. Inspect its log level: SGLang's formatter may omit severity. Group shared signatures across cases and distinguish handler duplication from separate GPU/process calls.
  • Repetition, WARNING severity, or a different third-party format alone does not establish a cleanup need. Consider whether the message explains configuration, progress, resource use, or an operational limitation.
  • Consult noise-source hints only for a matching signature or an unresolved emitter. Verify current code rather than trusting historical line numbers, fix status, or assumptions about unrelated models.

Accepted output

Preserve these reviewed messages unless the user requests a different policy:

  • NCCL diagnostics enabled by the user's environment or host configuration.
  • NUMA permission warnings, including one check per GPU in TP runs.
  • GPT-OSS MXFP4 backend-selection warnings and default page-size selection warnings.
  • Init Unified Radix Cache. Components: ... Tree Core: ..., tree-cache summaries, SWA allocation details, and per-rank memory/timing records.
  • Useful progress bars, warmup HTTP access logs, uv synchronization messages, isolated NCCL/Gloo startup lines, and one timestamped HF authentication warning.

These can appear in a clean startup log. Do not repeatedly propose the declined NUMA deduplication, backend/page-size level changes, or NCCL verbosity override. Keep real operational warnings visible: for example, a Harmony vocabulary failure can disable /v1/responses even when server readiness and /generate succeed.

Report before changing code

Return a compact run table with readiness status and clickable raw-log links. For each actual cleanup candidate, give an exact representative message, affected cases/counts, source file/function, and specific proposed behavior. Distinguish confirmed findings from suspicions and operational failures from logging noise.

If there are no actionable cleanup findings, say the logs are clean and no further cleanup is needed. Otherwise, ask which numbered changes to adopt and wait for the user's selections before editing runtime code or preparing patches. Honor existing approvals and declined items without asking again.

Apply selected changes

  • Batch compatible approved edits, then verify affected cases once. Repeat a startup only for a new change, failure, or unresolved concern; do not relaunch after every one-line edit. Save verification logs separately from baselines.
  • Preserve useful warnings and application handlers. HF can warn during early CLI model detection before configure_logger(), and spawned processes have independent logger state. Keep configure_hf_hub_logger() in both suppress_noisy_warnings() and configure_logger(); make repeated setup safe.
  • Keep the legacy compiled-kernel cache migration notice at DEBUG. Avoid broad library-level suppression or fd redirection for a narrow logging problem.
  • Run relevant formatting and focused existing checks. Add tests only when they verify meaningful behavior, not a log-level spelling. Report changes and verification; create branches, commits, and PRs when requested.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Develop lightweight CUDA operations for SGLang using JIT, which compiles code on first use. A tensor-scaling example explains implementation conventions, input validation, memory access helpers, and when to choose this approach.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Add a lightweight CUDA operation to SGLang
  • Choose between JIT and ahead-of-time compilation
  • Validate tensor inputs in a kernel launcher
sgl-project/sglang3.7만2026년 10월 19일 업데이트

Add a CUDA/C++ GPU operation to sgl-kernel using AOT, meaning compilation before use. Follow the implementation through PyTorch registration, Python API exposure, SGLang integration, correctness tests, and benchmarks that account for cache reuse.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Adding a CUDA/C++ operation to sgl-kernel
  • Registering an operation with PyTorch and exposing a Python API
  • Testing numerical results and invalid inputs
sgl-project/sglang3.7만2026년 10월 19일 업데이트

Monitor selected GitHub Actions checks on an SGLang pull request until they pass on its latest commit. Diagnose failures, push small validated fixes, and retry only failed jobs within defined limits.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Monitor selected PR checks until they pass
  • Separate code failures from infrastructure problems
  • Apply small fixes and track the resulting checks
sgl-project/sglang3.7만2026년 10월 19일 업데이트

Review existing tests and CI, the automated checks run during development, for redundant coverage, misplaced tests, and opportunities to reduce runtime or cost. Receive file-specific recommendations based on documented improvement patterns, with uncertain findings separated.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Investigating a slow test suite
  • Finding redundant or misplaced tests
  • Reviewing CI runtime and cost
sgl-project/sglang3.7만2026년 10월 19일 업데이트

Understand and modify SGLang's CI pipelines, including test stage order, start conditions, early stopping after failures, and workload splitting. Use the guide to add jobs and investigate failed, skipped, or cancelled checks.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Add a test job to an SGLang CI stage
  • Investigate failed or skipped CI checks
  • Update test partitions and waiting job counts
sgl-project/sglang3.7만2026년 10월 19일 업데이트

Calculate how to divide serving memory between recurrent state and KV cache, two memory pools used by hybrid models. Use startup logs and workload settings to recommend a ratio, estimate concurrency, and identify the limiting pool.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Choosing a memory ratio for a hybrid model
  • Investigating limits on concurrent requests
  • Recalculating memory allocation for context length
sgl-project/sglang3.7만2026년 10월 19일 업데이트

sgl-project의 스킬 모두 보기

이 스킬의 문제 신고