nv-reason-pathwsi
БесплатноЗапускает вложенные скриптыНе проверенRun NV-Reason-PathWSI inference on user-provided PNG/JPEG pathology patches or tiles for engineering and research workflows. Not for diagnosis, treatment…
от NVIDIA★ 4 269 звёзд на GitHubОб этом скилле
NV-Reason-PathWSI
Purpose
Runs the documented NV-Reason-PathWSI single-image CLI (inference.py) on one
user-provided PNG/JPEG pathology patch or whole-slide image tile and a text
prompt, then records the input hash, response text, runtime mode, dependency
versions, and upstream logs as JSON. A mock mode checks wiring without loading
weights.
Inputs are pathology_image_or_request; the JSON output is result_json.
Not for diagnosis, treatment, triage, patient-facing output, or clinical
reporting.
Instructions
Read skill_manifest.yaml, then run scripts/run_nv_reason_pathwsi.py.
Agents with a script helper can use
run_script("scripts/run_nv_reason_pathwsi.py", args=[...]).
Run from the repository root and choose a fresh --out-dir for each run.
Do not call upstream inference.py directly or write Transformers code for
normal runs; the wrapper owns input checks, offline caches, and provenance.
Stdout is JSON; keep it available to the caller. Inspect runtime.mode before
reporting success: mock proves wiring only; upstream_cli records upstream
execution. A live failure never falls back to mock.
# Read-only setup check; no model load or network access. Go live only when
# ready_for_live is true, and relay any warnings with the results.
python skills/nv-reason-pathwsi/scripts/run_nv_reason_pathwsi.py --check-setup \
--upstream-dir PATH_TO_UPSTREAM --model PATH_TO_LOCAL_MODEL
# Offline synthetic fixture, with no model inference.
python skills/nv-reason-pathwsi/scripts/run_nv_reason_pathwsi.py \
skills/nv-reason-pathwsi/fixtures/synthetic_pathology_input.json \
--mock --out-dir runs/pathwsi_mock
# Live inference with a local upstream checkout and model snapshot.
python skills/nv-reason-pathwsi/scripts/run_nv_reason_pathwsi.py PATH_TO_TILE.png \
--live --upstream-dir PATH_TO_UPSTREAM --model PATH_TO_LOCAL_MODEL \
--prompt "Describe the histopathological features visible in this image." \
--out-dir runs/pathwsi_live
The harness template is ${python} ${script} ${fixture} --out-dir ${out}/artifacts.
The committed fixture explicitly requests mock mode. Use a real image or a
live request JSON when collecting model evidence; --live rejects mock requests.
Tool scope: Bash runs the committed wrapper and documented setup commands;
Read covers skill files, caller-selected inputs, the upstream checkout, and
model assets; Write covers the caller-selected --out-dir and its per-run
caches. Env is SkillSpector's environment-capability label for the variables
listed under Prerequisites, accessed through shell/Python. The wrapper makes no
network calls; Hugging Face downloads happen only in the upstream child after
--allow-downloads. These declarations do not authorize unrelated file access,
printing authentication values, or changing an existing development environment.
Available Scripts
| Script | Purpose | Arguments |
|---|---|---|
scripts/run_nv_reason_pathwsi.py |
Call the upstream single-image CLI and emit JSON, or check setup. | [IMAGE_OR_REQUEST] --out-dir DIR [--upstream-dir DIR] [--model ID_OR_DIR] [--prompt TEXT] [--live or --mock] [--think] [--max-new-tokens N] [--device-map auto or cuda or cpu] [--timeout SECONDS] [--hf-home DIR] [--allow-downloads] [--check-setup] |
Prerequisites
Python 3.11+ with Pillow for input checks. Live runs need an upstream checkout
containing inference.py, the model weights, and a suitable CUDA GPU
(upstream recommends at least 24 GB). The wrapper installs nothing, pins no
versions, and edits no upstream files. Use a separate environment.
The wrapper uses only upstream's Transformers path, so vLLM is not needed. The processor still needs Torchvision on the single-image path. Install the tested environment and run its Python without activating it:
python3 -m venv runs/pathwsi_env
runs/pathwsi_env/bin/python -m pip install torch==2.10.0 torchvision==0.25.0 \
transformers==5.8.1 accelerate==1.13.0 Pillow
Tested with Python 3.11 and 3.12 and Pillow 11.3 and 13.0 on one RTX 6000 Ada
(48 GB). Other versions may work; --check-setup reports installed versions,
and every result records them.
Clone the upstream repository
and obtain the model, accepting
its license terms where required. A local snapshot needs configuration,
tokenizer, processor, chat template, and weights. No trust_remote_code is
required by upstream.
Upstream provides examples/sample_1.png, sample_2.png, sample_3.png, and
examples/queries.jsonl. The PNGs are Git LFS assets. With Git LFS already
installed, fetch them using git -C PATH_TO_UPSTREAM lfs pull --include='examples/*'.
Pass a sample's actual PNG path to the live command above. Do not treat the
small pointer file as an image or copy upstream examples into this skill.
| Variable | Behavior |
|---|---|
NV_REASON_PATHWSI_ROOT |
Default upstream check |
Установить nv-reason-pathwsi в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEnvВложенные файлы
FAQ
Что делает скилл nv-reason-pathwsi?
Run NV-Reason-PathWSI inference on user-provided PNG/JPEG pathology patches or tiles for engineering and research workflows. Not for diagnosis, treatment, clinical reporting, or whole-slide files.
Как установить скилл nv-reason-pathwsi?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nv-reason-pathwsi запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub