/foundationskills:fskills-deploymentfrom foundationskills
Serves a trained checkpoint (full weights, quantized, or base+LoRA) on a leased GPU using vLLM. Plans a GPU-confined serving spec, launches by hash, then verifies endpoint names, GPU placement, and smoke completions.
Ships in foundationskills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Serve a trained checkpoint with the measured vLLM container, confined to the leased GPU by
construction. plan probes the deployment (interfaces/fs/emit_serve.py: model dir, adapter
config + matching base, GPU UUID, port) and emits an fs_launch_spec that starts the vllm031
server on exactly one leased GPU UUID; nothing launches without the plan hash you read and
type back to fskills launch --confirm. verify then checks the running endpoint: /v1/models
is queried against HTTP, every server process is tied to its GPU UUID (nvidia-smi), and each
served name gets a smoke completion. A target outside the measured serving envelope, or a LoRA
deployment in a cell whose served fidelity is not measured, is UNMEASURED, never PASS.
--enable-lora, optional vision-tower connector) without a merge.| Field | Required | Meaning |
|---|---|---|
action | no | plan (default) or verify |
model | yes (plan) | path to the model directory (base, or merged full weights) |
adapter | no | path to a LoRA adapter served unmerged (--enable-lora; needs adapter_config.json) |
gpu | yes (plan) | the leased GPU UUID the server is confined to (never a device index) |
port | no | server port (default 18841; must be free) |
served_name | no | served model id (default model) |
modality | no | text (default) or vision (adds --enable-tower-connector-lora for a vision stage) |
max_model_len | no | context the server loads (default 16384) |
spec | yes (verify) | path to the fs_launch_spec written by plan |
plan → fs_launch_spec.serve.json (atomically, with provenance): the serve block (model,
adapter, family, mode, modality, gpu, port, served_names, endpoint) plus next steps and the
measured envelope cell. verify → serving_spec (endpoint, served_names, family/mode/modality,
engine, envelope, checks, smoke texts, gpu, verdict).
Exit codes: 0 PASS (plan in a measured cell; verify only when names listed, smoke text and placement all check out), 5 RED (DP-HO-003/DP-HO-004), 95 UNMEASURED (DP-HO-001/002), 96 REFUSED (DP-IN-*; nothing written).
Serving is a plan + verify; the server runs in the foreground of your launch, through the universal launch gate (it must stay inside your Slurm step: on 2026-10-20 an enroot vLLM started outside one ran ~9 min on another user's GPU, so the spec confines it to one leased UUID):
fskills serve plan --model merged/gemma-4-12B-it --gpu <leased GPU UUID> --port 18841 [--adapter runs/sft/final] [--served-name <id>] [--modality text|vision] [--max-model-len 16384]
probes and writes fs_launch_spec.serve.json. It never launches.fskills hash --spec <spec>, then nohup fskills launch --spec <spec> --confirm <the hash you read> --no-submit &
(or the same inside srun --overlap --jobid=<hold> --gres=gpu:1). Without the hash the launch is refused (96).fskills serve verify --spec <spec> on the server's host: names listed, GPU placement measured, one smoke
completion per served name. It writes the serving_spec record.One checkpoint (full or merged weights, or one base + one LoRA adapter unmerged), served on one leased GB200 GPU by the
measured vllm031 container. Families ever served here (gemma4_unified, qwen3_5; see the envelope) — every other family is
UNMEASURED. Merging belongs to fskills-merging, training to fskills-training, scoring to fskills-evaluation.
fskills serve plan
--adapter--gpu (required)--max-model-len (default 16384)--modality (choices {text,vision}; default 'text')--model (required)--port (default 18841)--served-name (default 'model')--workdirfskills serve verify
--spec (required)--workdir| Rule | Phase | Severity | Description |
|---|---|---|---|
| DP-HO-001 | handoff | WARN | the deployment target (engine x family x mode x modality) is outside the measured serving envelope - UNMEASURED, never PASS |
| DP-HO-002 | handoff | WARN | LoRA deployment in a cell whose served-adapter fidelity is not measured - UNMEASURED even when healthy |
| DP-HO-003 | handoff | BLOCK | verify: a served name is missing from /v1/models or a smoke completion returned no text - RED |
| DP-HO-004 | handoff | BLOCK | verify: a server GPU process is on a GPU other than the leased UUID - RED |
| DP-IN-001 | input | BLOCK | plan: the model is not a model directory, or the adapter has no adapter_config.json |
| DP-IN-002 | input | BLOCK | plan: the adapter was trained on a different base than the served model |
| DP-IN-003 | input | BLOCK | plan: no leased GPU UUID given, or the port is already in use (the server must be confined to one leased GPU) |
| DP-IN-004 | input | BLOCK | verify: the spec is unreadable or the endpoint does not answer /v1/models |
fs_launch_spec, serving_spec
PASS 0 · RED 5 · UNMEASURED 95 · REFUSED 96
| Rule | Phase | Severity | When |
|---|---|---|---|
| DP-IN-001 | input | BLOCK | plan: the model is not a model directory, or the adapter has no adapter_config.json |
| DP-IN-002 | input | BLOCK | plan: the adapter was trained on a different base than the served model |
| DP-IN-003 | input | BLOCK | plan: no leased GPU UUID given, or the port is already in use (the server must be confined to one leased GPU) |
| DP-IN-004 | input | BLOCK | verify: the spec is unreadable or the endpoint does not answer /v1/models |
| DP-HO-001 | handoff | WARN | the deployment target (engine x family x mode x modality) is outside the measured serving envelope — UNMEASURED, never PASS |
| DP-HO-002 | handoff | WARN | LoRA deployment in a cell whose served-adapter fidelity is not measured: UNMEASURED even when healthy |
| DP-HO-003 | handoff | BLOCK | verify: a served name is missing from /v1/models or a smoke completion returned no text — RED |
| DP-HO-004 | handoff | BLOCK | verify: a server GPU process is on a GPU other than the leased UUID — RED |
vllm-0.31.0-arm64 cells actually served on this estate (interfaces/fs/serving_envelope.py); outside it, UNMEASURED:
| Family | Mode | Modality | Fidelity | Evidence |
|---|---|---|---|---|
| qwen3_5 | full | text | unmeasured | B2.2 + B6.1: Qwen3.5-4B and Qwen3.8-27B served as pi agent endpoints on GB200 |
| gemma4_unified | full | text | unmeasured | A4.9 a49/FINDINGS.md: gemma-4-12B-it served on GB200, prompt logprobs returned |
| gemma4_unified | lora | text | measured | A4.9 a49/FINDINGS.md: gemma-4-12B-it + A4.4 LoRA unmerged; task-level held-out NLL: served LoRA keeps 99.5% of the adapter's gain (merged copies 95.4%) |
Served-LoRA fidelity is measured at the task level: held-out NLL over 1,080 unseen answer tokens with identical token ids. Through vLLM, base + LoRA unmerged keeps 99.5% of the local adapter's gain (pre-registered band 0.95–1.05; engine sanity 0.004 nats). Merged checkpoints (A4.7, float32- or bf16-stored) keep 95.4%, because the server loads them in bf16, so unmerged LoRA is the higher-fidelity deployment. Per-token logprobs cannot measure fidelity: bf16 noise dominates them (floor 0.40).
verify against a spec whose endpoint will not answer: REFUSED (96) with DP-IN-004 — launch the serving spec first.fskills serve (plan / verify); emits fs_launch_spec and serving_spec.foundationskills.interfaces.fs.emit_serve (emit_serve, model_family, inside serve_probes, both
proxied and injectable for tests).foundationskills.interfaces.fs.serving_envelope (lookup over MEASURED_SERVING; widen only with a new
measured row and its evidence).fskills launch --confirm <the hash you read from fskills hash> --no-submit — the same universal gate as every
other spec.fskills serve plan --model merged/gemma-4-12B-it --gpu <leased GPU UUID> --port 18841, hash, launch, then
fskills serve verify --spec <spec>: both served names listed, smoke "OK", every server process on the leased UUID →
serving_spec written with verdict PASS.--model models/gemma-4-12B-it --adapter runs/sft/final. Both ids answer and placement is right, and
this cell's served fidelity is measured (99.5% of the adapter's gain), so verify gives PASS.--model models/nemotron-nano: plan UNMEASURED with DP-HO-001 (the family was never served
here); measure it first, then add a row to the envelope.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub trannhiem/foundationscale --plugin foundationskills21 skills in this plugin
/fs-dataUser-invoked slash command: run ONLY when the user types /fs-data; never choose it on your own. Slash-command data preparation workflow (/fs-data) that composes the model skill data_engine to turn raw data refs into a dataset, data_pipeline_spec and readiness_report. Inputs: the data_engine request fields (sources, target_format, tokenizer, chat_template_family, out_dir, requirements, pipeline, reasoning_unsupported, benchmarks, ...) passed through unchanged, plus optional goal_spec (a path recorded in outputs, not interpreted). The workflow record says which step ran, what it produced and the verdict (PASS/RED/UNMEASURED). Do NOT use for explaining fskills results (use /fs-status), fixing data problems yourself, or training a model (use /fs-training): this composes data_engine and produces data artifacts only./fs-evalUser-invoked slash command: run ONLY when the user types /fs-eval; never choose it on your own. /fs-eval is the A3.2 user-invoked workflow skill: it takes the evaluation request (checkpoint, run_manifest, base, benchmarks, policy, eval_cache, out, baseline_cache, ...) and forwards it UNCHANGED to the ONE composed model skill `evaluation`, run through foundationskills.skills._workflow, then writes one workflow_record {workflow, steps, outputs, verdict} whose outputs name the eval_report BY PATH. Outcome mapping (PASS 0 / RED 5 / UNMEASURED 95 / REFUSED 96): inner REFUSED -> FE-IN-002 REFUSED; inner RED -> FE-HO-001 RED; inner UNMEASURED -> FE-HO-002 UNMEASURED (never PASS). Do NOT use for fixing a regression, running a bare lm-eval harness or judging launch-readiness: /fs-eval records the evaluation verdict, it never repairs a benchmark or tunes a policy.Other plugins' skills for the same job