Przejdź do treści
Biblioteka skilli
DevOps i chmura · Analiza

log-analysis

/log-analysis

Analizuje log zadania SLURM, aby ustalić przyczynę awarii treningu i zdecydować o ponownym uruchomieniu, korzystając z NVRx restart-agent.

Licencja
Apache-2.0
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Analizuje log zadania SLURM, aby ustalić przyczynę awarii treningu i zdecydować o ponownym uruchomieniu, korzystając z NVRx restart-agent.

Oryginalny opis (EN)

Analyze a SLURM job log file for failure root-cause attribution and restart decisions using the packaged NVRx restart-agent. Use when you have a SLURM training job log and need to determine why the job failed and whether it should be restarted. Performs deterministic evidence extraction plus optional LLM enrichment.

Jak działa

  1. What it does
  2. CLI
  3. Programmatic API
  4. Output
  5. Prerequisites
Sekcje z nagłówków SKILL.md, w oryginale · 82 linii, 383 słów
Podgląd SKILL.md
---
name: log-analysis
description: >
  Analyze a SLURM job log file for failure root-cause attribution and restart decisions using
  the packaged NVRx restart-agent. Use when you have a SLURM training job log and need to
  determine why the job failed and whether it should be restarted. Performs deterministic
  evidence extraction plus optional LLM enrichment.
compatibility: Requires NVRx attribution support and LLM_API_KEY for L1 enrichment. Can run deterministic-only with --disable-l1.
metadata:
  entry-point: RestartAgent
  command: python -m nvidia_resiliency_ext.attribution.restart_agent.cli
---

# Skill: log_analysis

Analyze a SLURM job log file for failure root-cause attribution and restart decisions using `RestartAgent`.

**Command:** `python -m nvidia_resiliency_ext.attribution.restart_agent.cli`

---

## What it does

1. Reads the log file (UTF-8, falls back to latin-1).
2. Builds deterministic L0 evidence from training progress, failure lines, checkpoint state, and known restart-policy signals.
3. Optionally runs L1 model enrichment to explain the primary failure and related evidence.
4. Applies the restart-agent retry/recovery policy and returns a structured `STOP` or `RESTART` decision.

---

## CLI

```bash
python -m nvidia_resiliency_ext.attribution.restart_agent.cli \
    /path/to/job.log \
    [--job-id JOB_ID] \
    [--cycle-id CYCLE_ID] \
    [--config examples/attribution/restart_agent.json] \
    [--llm-model MODEL] \
    [--llm-base-url URL] \
    [--llm-api-key-file PATH] \
    [--disable-l1] \
    [--summary]
```

| Flag | Default | Description |
|------|---------|-------------|
| `log_path` | required | Path to the job log file |
| `--job-id` | unset | Optional job id for request metadata and retry history |
| `--cycle-id` | unset | Optional cycle id for retry history |
| `--config` | unset | Versioned restart-agent config for configured model routes and retry policy |
| `--llm-model` | environment/default config | L1 enrichment model when `--config` is not used |
| `--llm-base-url` | environment/default config | OpenAI-compatible base URL when `--config` is not used |
| `--llm-api-key-file` | environment/default config | File containing the L1 API key |
| `--disable-l1` | off | Run deterministic-only analysis |
| `--summary` | off | Emit a compact human-readable summary to stderr in addition to JSON stdout |

---

## Programmatic API

```python
from nvidia_resiliency_ext.attribution.restart_agent.l1 import LlmConfig, LlmEvidenceExtractor
from nvidia_resiliency_ext.attribution.restart_agent.models import RestartAgentRequest
from nvidia_resiliency_ext.attribution.restart_agent.pipeline import RestartAgent

agent = RestartAgent(evidence_extractor=LlmEvidenceExtractor(LlmConfig.from_env()))
run = agent.run(RestartAgentRequest(log_path="/path/to/job.log", job_id="12345"))
result = run.result.to_payload()
```

---

## Output

The CLI prints one JSON object to stdout. Important fields include:

| Field | Meaning |
|---|---|
| `decision` | `RESTART` or `STOP` |
| `decision_basis` | Policy reason for the decision |
| `retry_policy` | Retry budget and selected rule details |
| `primary_failure` | Primary failure evidence, when identified |
| `secondary_failures` | Related or cascading failure evidence |
| `evidence_coverage` | Which evidence sources were checked/found |
| `justification` | Human-readable explanation for the final decision |

---

## Prerequisites

- `LLM_API_KEY` set (env var, `LLM_API_KEY_FILE`, or `~/.llm_api_key`) for L1 enrichment
- Use `--disable-l1` when you want deterministic-only analysis without model access

Wersje

RepozytoriumWynikLicencja
Ta strona · nvidia/nvidia-resiliency-ext100Apache-2.0
OKHP3/skillz100MIT
andreibesleaga/gabbe100CC-BY-4.0
autohandai/community-skills100Apache-2.0
nailshakurov/logzip100MIT
312362115/claude100MIT
winhok/testkit90MIT
Amey-Thakur/AI-SKILLS90MIT

Migawka bazy z 28.10.2026 · wersja paczki 730195aeb2b1 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100exec-slurm-compile
    Kompiluje TensorRT-LLM na klastrze SLURM: wysyła zadanie wsadowe z obrazem kontenera, monitoruje je i weryfikuje build.
  • 100mcore-run-on-slurm
    Pokazuje uruchamianie rozproszonego treningu Megatron-LM na klastrze SLURM: szkielet sbatch, zmienne torch.distributed.run, CUDA_DEVICE_MAX_CONNECTIONS, kontenery, monitoring i diagnoza awarii rang.
  • 100exec-slurm-compile
    Kompiluje TensorRT-LLM na klastrze SLURM: zleca zadanie wsadowe z obrazem kontenera, monitoruje je i weryfikuje zbudowaną wersję.
  • 100nvidia-tensorrt-llm-exec-slurm-compile
    Kompiluje TensorRT-LLM na klastrze SLURM: wysyła zadanie wsadowe z obrazem kontenera, monitoruje je i weryfikuje build, zamiast pracować na lokalnym węźle.
  • 100monitor
    Monitoruje zlecone zadania (PTQ, ewaluację, wdrożenie) na klastrach SLURM i raportuje ich status i postęp.
  • 100failure-analysis
    Analizuje przyczyny nieudanego budowania pakietu Pythona w pipeline RHAI: czyta fragment logu i kontekst pakietu, diagnozuje przyczynę i zapisuje ustrukturyzowany raport.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.