Skip to main content

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.

v1.0.0New

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install skills-nv-reason-pathwsi
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/skills-nv-reason-pathwsi/SKILL.md

Setup guide →
0Save

Instructions

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

ScriptPurposeArguments
scripts/run_nv_reason_pathwsi.pyCall 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.

VariableBehavior
NV_REASON_PATHWSI_ROOTDefault upstream checkout when --upstream-dir is omitted.
NV_REASON_PATHWSI_MODELDefault model ID or local snapshot directory when --model is omitted; also selects local weights for harness runs.
HF_TOKENForwarded to the upstream child only with --allow-downloads for gated model downloads; never put its value in arguments or logs.
HF_HOMEParent-process cache setting; use --hf-home to explicitly select an existing cache for the child.
HF_HUB_OFFLINE, TRANSFORMERS_OFFLINERespected by the child; both are set to 1 unless --allow-downloads is supplied.

Downloads are disabled by default. For a model ID with an existing cache,
pass --hf-home PATH_TO_CACHE. To download the model, add
--allow-downloads; inherited offline settings still apply. Other caches
stay under --out-dir/cache, and the parent environment is unchanged.
The child receives an explicit set of OS, CUDA, thread, and offline settings.
Hugging Face credentials and proxy/TLS settings are forwarded only with
--allow-downloads. Unrelated environment variables and credentials are not
inherited by the upstream process.
Local writes are limited to <caller-provided --out-dir> and
<explicit --hf-home, if supplied>. Downloads may contact
https://huggingface.co, https://*.huggingface.co, and
https://*.xethub.hf.co; local-only runs require no network.

Inputs and results

Direct input is a .png, .jpg, or .jpeg. A JSON request contains image,
optional prompt, optional case_id, and a boolean mock (default false).
Relative image paths resolve from the JSON file. --prompt overrides its
prompt. The generated fixture URI is allowed only in mock mode.

The wrapper writes result.json and response.txt; live runs also write
upstream.stdout.txt and upstream.stderr.log. Stdout repeats result.json.
Image and response SHA-256 hashes bind the artifacts to the result. Model
loading, preprocessing, greedy decoding, and thinking mode remain upstream.
Defaults match the single-image CLI: thinking off and 2048 new tokens.
Use --think or change --max-new-tokens explicitly when needed.

Limitations

  • Research and engineering use only. Model output can hallucinate, omit
    findings, or present unreliable reasoning; it is not validated for medical
    correctness, diagnosis, treatment, clinical reporting, or regulatory use.
  • Accepts image patches/tiles; it does not read SVS/TIFF slides, tile a slide,
    or aggregate tile outputs into slide-level conclusions. vLLM batching is
    outside this wrapper's scope.
  • The synthetic RGB fixture contains geometry, not tissue. Mock tests do not
    establish that weights load or that model inference succeeds.
  • The CLI returns text without token counts or stop reasons. Truncation stays
    unknown; a successful exit does not establish a complete answer.
  • Upstream inference.py stops only at the model package's generation EOS
    ids. When those omit the chat end-of-turn token, text continues past the
    first answer, up to --max-new-tokens. --check-setup warns about this;
    the wrapper returns the text unchanged.
  • The wrapper records the upstream commit and entrypoint hash but does not
    authenticate caller-supplied weights. Use reviewed, immutable upstream and
    model revisions for evidence runs.
  • Wrapper code is Apache-2.0; upstream code and weights have separate
    OpenMDW-1.1 terms. Review the upstream license when obtaining those assets.

Troubleshooting

ErrorAction
Git LFS pointerFetch upstream examples/* with Git LFS, then retry with a fresh output directory.
Unsupported slide or unreadable imageProvide a readable PNG/JPEG patch or tile.
Missing package or import errorInstall the tested environment above in an isolated environment, run that Python, and inspect upstream.stderr.log.
Missing model / access deniedSupply a complete local snapshot or an existing cache; enable downloads only if intended.
CUDA failure or timeoutInspect upstream.stderr.log, GPU availability, and --timeout; preserve the failed run.
Empty responseTreat as failure even if upstream exited zero. Inspect the saved stderr.
Text continues after the first answerUpstream did not stop at the end-of-turn token; see --check-setup warnings. Keep the raw response, flag later text as possible continuation, and lower --max-new-tokens for short-answer prompts. Do not patch upstream or trim output.
fast path is not available in stderrOptional linear-attention kernels are absent; upstream falls back to PyTorch. No action is needed.
Output artifacts already existChoose a fresh --out-dir; prior evidence is preserved.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
web-performance-auditorAI-powered web performance auditor for frontend and web developers. Use it to audit a website or web app, diagnose poor Core Web Vitals (LCP, CLS, INP) and low Lighthouse scores, review JavaScript bundle size, code splitting, lazy loading, image and font loading, hydration, React rendering, Next.js/Nuxt patterns, network waterfalls, third-party scripts, and caching. Produces a prioritized, senior-engineer performance audit with a score and concrete fixes.12 installsi4h-catheter-navigationOverview of `workflows/catheter_navigation/` (fluorosim DRR, XPBD physics, vasculature digital twin). Use when the user asks what the catheter navigation workflow is, what's supported, or where to start.0 installsmcore-linting-and-formattingLinting and formatting for Megatron-LM. Covers running autoformat.sh, tools (ruff, black, isort, pylint, mypy), and code style rules.0 installsomniverse-content-servicesOmniverse Content Services, also discoverable as Omniverse Content Workspace or USD Content Workspace. Use for USD content collaboration as well as content access. Guide USD workflows on existing infrastructure, USD content versioning, 3D creation pipelines, and data access across distributed and scale-out compute. Use for manufacturing, automotive, factory and digital-twin workflows, architecture and construction, media and 3D content, robotics, fleet simulation, and physical AI content delivery. Discover requirements and route to ovstorage, ovpackage, ovlive, usd-content-workspace, and usd-caches experts.0 installsdoca-rmaxDOCA Rivermax (doca_rmax) receive streams for timing-precise media over IP (SMPTE ST 2110 video / audio, market data, scientific feeds) on a target BlueField DPU (DOCA Rivermax apps run only there), once the Rivermax libraries and license are installed; getting them is doca-setup / doca-public-knowledge-map territory. Trigger on "ST 2110 receive isn't getting frames", "sub-microsecond jitter on my media receiver", "NOT_SUPPORTED from doca_rmax_init", "no recv events after stream start", or "license check failing on a media receiver", even without naming Rivermax. Covers doca_rmax_in_stream sessions, the SDK + license precondition check, doca_rmax_get_*_supported capability queries, pairing with doca-eth queues and doca-flow steering, and DOCA_ERROR_* from Rivermax calls. Refuse and route elsewhere for programming the underlying queue (doca-eth), steering rules (doca-flow), PTP / clock sync (doca-firefly), or best-effort packet I/O.0 installstao-train-segformerSegFormer for semantic segmentation. Lightweight transformer-based architecture with hierarchical feature extraction, efficient for real-time segmentation tasks. Use when training, evaluating, exporting, quantizing, or running inference for a TAO SegFormer model. Trigger phrases include "train SegFormer", "semantic segmentation", "lightweight transformer segmenter", "real-time semantic segmentation".0 installs

More from skills

View source →
nvidia-appNVIDIA App MCP: drivers, games, laptops, overlay. Check drivers, manage and optimize games, configure laptop features.3 installsnvidia-ontology-setupSet up or troubleshoot the Auto Ontology runtime. Use for Helm (the official install), Docker Compose, developer setup, and MCP connection to an existing deployment.1 installstao-run-automlRun container-backed AutoML / hyperparameter optimization (HPO) for NVIDIA TAO networks using AutoMLRunner. Handles algorithm selection (bayesian, hyperband, asha, bohb, llm, hybrid, autoresearch), WandB experiment tracking, job execution on any TAO SDK platform, result interpretation, and per-rec custom evaluation hooks. Use when the user mentions TAO AutoML, hyperparameter optimization, HPO, automl, automl_settings, AutoMLRunner, tao_automl, bayesian search, hyperband, ASHA, LLM-guided search, autoresearch, or wants to tune train/evaluate/inference/distill/prune/quantize for a TAO network. Model actions use the resolved image; venv training requires an explicit request. Platform-agnostic — runs on any SDK (Brev, SLURM, Kubernetes, Docker). Do not use generic "keep improving" language alone to override a matching domain-specific DEFT workflow; attribute-labelled CLIP / SigLIP image-retrieval loops belong to tao-run-deft-pas unless HPO is explicit.1 installsrunai-diagnose-failed-workloadUse to diagnose failed, crashed, stopped, OOMKilled, CrashLoopBackOff, ImagePullBackOff, init, mount, node, or policy-terminated Run:ai workloads. Investigate one workload's failure; use other skills for workload health summaries, cluster health, scheduling-only Pending, or inference latency without a confirmed failure.1 installscdf-event-video-generationRun the CDF Orchestration Event Video Generation DAG on Kubernetes or OSMO - image-to-video anomaly generation, auto-labeling, and anomaly dataset generation. Select for requests about event video generation, anomaly video generation, image-to-video synthesis, Cosmos3 image2video, anomaly dataset creation, safety/surveillance SDG, or generating person-falling, person-climbing, person-running, fighting, smoking/vaping, fire/smoke, or shoplifting video clips from a seed image. Covers both event_video_generation_dag_k8s and the external-endpoints-only event_video_generation_dag_osmo. Runs environment setup first when controller readiness is unknown. Not for person-crop clothing/attribute augmentation (that is cdf-image-attribute-augmentation) and not for video style transfer.1 installsnvidia-skill-finderUse for NVIDIA-related requests where an NVIDIA skill might help, even if the user did not ask for a skill. Trigger on NVIDIA products, hardware, software, SDKs, GPUs, Jetson/JetPack/L4T/BSP/SDK Manager/driver/flashing/setup, CUDA, NIM, NeMo, Omniverse/OpenUSD/SimReady, Isaac, RAPIDS/cuDF, cuPyNumeric, cuOpt, Dynamo, Holoscan, TensorRT, DeepStream, VSS, TAO, NGC/NVCF. Do not use for generic non-NVIDIA route, optimize, deploy, AI, video, data, or infrastructure tasks.1 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.641 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.544 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.353 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.252 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.179 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions146 installs

Frequently asked questions about nv-reason-pathwsi

What does the nv-reason-pathwsi skill do?

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. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the nv-reason-pathwsi skill?

Run `npx @skills-hub-ai/cli install skills-nv-reason-pathwsi` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/skills-nv-reason-pathwsi/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does nv-reason-pathwsi work with?

nv-reason-pathwsi runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the nv-reason-pathwsi skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use nv-reason-pathwsi after installing it?

In Claude Code, type `/skills-nv-reason-pathwsi` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the nv-reason-pathwsi skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.