Logo van Xpu Runtime Preflight

Xpu Runtime Preflight

Organisatie
intel
xpu-runtime-preflight

Run a read-only go/no-go preflight before any Intel GPU/XPU skillpack work. Checks the GPU driver binding, /dev/dri permissions, render/video groups, Docker, /dev/shm, disk, proxy, and optional container-level XPU visibility; captures health and kernel-log evidence. Use when the user asks whether a machine is ready for XPU model work or needs a reusable lab readiness report. Not for launching workloads, pulling images, editing system config, or verifying model output.

Overzicht

Uitgeverintel
Repositoryskills
Skillnaamxpu-runtime-preflight
Sterren
31
Forks
14
Meegeleverde bestanden
1
LicentieApache-2.0
Links
  • Instructies in Markdown

    Een SKILL.md-bestand dat het model laadt wanneer nodig, zodat het alleen tokens kost als een verzoek er daadwerkelijk bij past.

  • Werkt met elk LLM

    AI-skills zijn gewone Markdown, geen aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • 1 meegeleverde bestanden

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. Bestanden zijn alleen-lezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door intel op GitHub. Lees de broninhoud voordat je de skill installeert.

Installatie

Installeer de AI-skill Xpu Runtime Preflight in TypingMind om deze met elke LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map — het leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/intel/skills/tree/main/skills/xpu-runtime-preflight
  4. Schakel de skill in elke chat in waarin je deze beschikbaar wilt hebben.
Plug-ins → Skills → Nieuwe skill → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/intel/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/xpu-runtime-preflight .claude/skills/xpu-runtime-preflight
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Xpu Runtime Preflight in een willekeurige chat in TypingMind in en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek erbij past, laadt het model zelf de volledige instructies — je hoeft de skill nooit handmatig aan te roepen en deze kost pas tokens wanneer je de skill daadwerkelijk gebruikt.

Het model laadt Xpu Runtime Preflight automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Xpu Runtime Preflight niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

xpu-runtime-preflight

Use this as the shared readiness gate before Intel GPU/XPU skills in this pack. It answers "is this host/container ready for the requested skill path?", reports a READY / READY WITH WARNINGS / BLOCKED verdict, and routes failures to focused skills. It does not start model servers, run benchmarks, capture profiles, restart Docker, pull large images, edit system configuration, or validate generated content.

When To Use

Run this before a model run, benchmark, profile, or container workflow when readiness depends on more than GPU discovery. Use xpu-discover for device inventory and driver health; use this skill for the broader go/no-go path: /dev/dri, groups, Docker, shared memory, disk, proxy and network checks, plus optional container XPU visibility.

If preflight finds a blocker, follow the generated SUMMARY.md handoff. Do not duplicate routing guidance in this skill body.

Quick start

sh
scripts/check_runtime_preflight.sh \
    --target-gpu 0 \
    --out-dir .out/skills/xpu-runtime-preflight

Add an already-local image when the next skill path runs in a container:

sh
scripts/check_runtime_preflight.sh \
    --target-gpu 0 \
    --image <already-local-image>

When downloads or image builds are part of the next step, add a network check:

sh
scripts/check_runtime_preflight.sh \
    --env-file .env \
    --target-gpu 0 \
    --network-check

The script writes:

text
.out/skills/xpu-runtime-preflight/SUMMARY.md
.out/skills/xpu-runtime-preflight/status.tsv
.out/skills/xpu-runtime-preflight/preflight.log

It also writes per-check evidence files such as xpu-smi-discovery.json, xpu-smi-health.txt, xpu-smi-stats-target.txt, kernel-log.txt, kernel-log-review.txt, target-driver.txt, dev-dri.txt, docker-info.txt, and, when --image is supplied, image-preflight.txt.

Device resolution parses xpu-smi discovery -j with python3. When xpu-smi is present but python3 is missing or cannot run the parser, the script records FAIL preflight-dependency.

What Counts As Ready

Hard pass before GPU/XPU skill work:

  1. xpu-smi discovery -j resolves the target GPU, with the pci_bdf_address and drm_device fields this script needs.
  2. The target GPU has an inspectable kernel driver binding. xe and i915 are accepted; vfio* blocks because the host driver did not bind the target GPU for XPU runtime use.
  3. Bounded xpu-smi stats -d <id> --samples 1 completes or leaves an inspectable warning artifact.
  4. /dev/dri/renderD* exists and permissions are understandable.
  5. Docker daemon is reachable by the current user.
  6. /dev/shm and disk space are not obviously too small.
  7. If --image is supplied, the selected container sees XPU through a Level Zero or Python XPU visibility probe. The default Python probe requires torch.xpu.is_available() and a nonzero XPU device count.

A clean run means prerequisites satisfied, execution not tested: only step 7 exercises the runtime.

Warnings do not block every workflow. A missing proxy is fine on direct networks; missing BuildKit is fine unless the next step builds an image.

Two rows are evidence to read, not health verdicts. As INFO they do not affect the result:

  • xpu-health saves xpu-smi health -l to xpu-smi-health.txt and records only its exit code, which does not track component condition across builds. Investigate Warning / Critical; Unknown or missing is inconclusive. See xpu-discover for per-component probes.
  • kernel-log-review lists GPU-related kernel log messages (xe, i915, GuC/HuC, DRM, IOMMU, Level Zero) worth reading in kernel-log-review.txt, one line per distinct message with its repeat count, most frequent first. Only identical messages collapse, so one that carries a changing field, such as a sequence number, keeps a line per value; the timestamps stay in kernel-log.txt. It flags some benign lines and misses some real faults, so no matches is not a clean bill. It records WARN instead (so READY WITH WARNINGS) when journalctl is missing, the log is unreadable, or it has no xe/i915 driver lines.

Result Routing

Use the generated SUMMARY.md as the source of truth for failure-to-next skill routing. The script builds that section from the checks it actually ran, so do not maintain a separate static routing table in this skill.

For final answers, read status.tsv or the SUMMARY.md status table, then report hard blockers first and follow the SUMMARY.md "Next Skill Routing" section for the recommended handoff.

SUMMARY.md includes a Verdict field:

  • READY when no checks fail or warn.
  • READY WITH WARNINGS when no checks fail but at least one warning is present.
  • BLOCKED when any check fails.

When blocked, SUMMARY.md also includes First blocker: with the first failing check from status.tsv.

Image Preflight Notes

The script refuses to implicitly pull an image. If --image is not already local, verify host/Docker/container proxy settings or run the skill that owns the image choice.

The generic image preflight sources oneAPI (if present) and then runs the XPU visibility probe against whatever python3 is on the image's PATH. It does not activate conda, miniforge, or any other Python environment — that is the image's responsibility:

sh
source /opt/intel/oneapi/setvars.sh --force

If the image needs a conda/venv activation, a non-default oneAPI path, or any other setup before python3 -c "import torch" works, pass --image-command '<shell command>' to supply the full probe.

Image preflight uses Docker bridge networking by default. This avoids masking container-network issues with host networking. If the target runtime will intentionally use another Docker network mode, pass --image-network <mode> so the preflight matches that run.

Reporting

In final answers, report:

  • target host and GPU ID
  • verdict
  • PASS/WARN/FAIL counts
  • first blocker and hard blockers
  • the next skill to use for each blocker
  • the output artifact paths

Do not claim container readiness from host checks alone when the next step uses a container image; run the optional --image preflight for that image.

Meegeleverde bestanden

Het model leest deze bestanden wanneer nodig terwijl de skill geladen is. Ze worden beschikbaar gesteld als leesbare bestanden en worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Xpu Runtime Preflight?

Run a read-only go/no-go preflight before any Intel GPU/XPU skillpack work. Checks the GPU driver binding, /dev/dri permissions, render/video groups, Docker, /dev/shm, disk, proxy, and optional container-level XPU visibility; captures health and kernel-log evidence. Use when the user asks whether a machine is ready for XPU model work or needs a reusable lab readiness report. Not for launching workloads, pulling images, editing system config, or verifying model output.

Waarom Xpu Runtime Preflight gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Xpu Runtime Preflight bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model, en je kunt midden in een chat van model wisselen zonder dat de skill niet meer werkt. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Xpu Runtime Preflight in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/intel/skills/tree/main/skills/xpu-runtime-preflight. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Xpu Runtime Preflight gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Xpu Runtime Preflight gebruiken?

Zoveel als je wilt. Zolang een model skills ondersteunt, kun je Xpu Runtime Preflight ermee gebruiken: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama en meer. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Xpu Runtime Preflight gratis?

Ja. Deze skill is door intel op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. Deze volgt het open Agent Skills-formaat: een bestand met de naam SKILL.md met een naam en beschrijving, plus eventuele scripts, sjablonen of referentiebestanden die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇