manage-model-cache

manage-model-cache is a skill for Claude Code, Codex from NVIDIA/deepops. It costs 39 tokens per session (903 once invoked), scanned A, original, BSD-3-Clause.

A procedure for preparing a shared Hugging Face model cache for Slurm or Kubernetes, systems that run jobs across computers. It pins model revisions, checks offline files, and diagnoses missing snapshots or permission problems.

In plain words
What is it for?
Setting up shared model files for scheduled or containerised machine-learning workloads.
Why use it?
It avoids duplicated downloads and reduces failures caused by unclear access, mutable model versions, or incorrect cache permissions.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Setting up shared model files for scheduled or containerised machine-learning workloads.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nvidia/deepops/manage-model-cache
About the project

DeepOps is a collection of automation tools for deploying and managing compute clusters that use NVIDIA GPUs with Kubernetes or Slurm. It supports environments ranging from full data-center clusters to individual machines needing GPU drivers, Docker, and NVIDIA container support.

NVIDIA/deepops · 1,479 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add NVIDIA/deepops --skill manage-model-cache
Clone the repo
git clone --depth 1 https://github.com/NVIDIA/deepops

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for manage-model-cache

README.md
[![agentmods](https://agentmods.dev/badge/skills/nvidia/deepops/manage-model-cache/github.svg)](https://agentmods.dev/skills/nvidia/deepops/manage-model-cache)
Your own site
<a href="https://agentmods.dev/skills/nvidia/deepops/manage-model-cache"><img src="https://agentmods.dev/badge/skills/nvidia/deepops/manage-model-cache/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for manage-model-cache

Your own site · 80×15
<a href="https://agentmods.dev/skills/nvidia/deepops/manage-model-cache"><img src="https://agentmods.dev/badge/skills/nvidia/deepops/manage-model-cache.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 903 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00903
Opus 5.5 $0.00016 $0.00361
Sonnet 5.5 $0.00008 $0.00181
Haiku 4.5 $0.00004 $0.00090

Measured 11d ago against content hash ec9307a29863, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

manage-model-cache scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/manage-model-cache/SKILL.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Manage a shared model cache

Run commands from the DeepOps repository root. This skill prepares model files, not inference services. Read the cache guide for the supported CLI version, exact configuration and working download example.

Preconditions

  1. Confirm the approved existing NFS mount, one designated writer account, reader group, model license/access, available capacity and immutable revision. Do not create mounts, change exports, create users, or grant access implicitly.
  2. Review config/inventory and config/group_vars/model-cache-warmer.yml. Exactly one host belongs to model-cache-warmer. All readers need matching numeric group IDs and an existing mount at the intended workload path.
  3. Keep HF_HOME, HF_TOKEN_PATH and HF_XET_CACHE private; share only HF_HUB_CACHE. Never share authentication storage or paste credentials into commands.
  4. Use a private Python 3.10+ environment for examples/model-cache/requirements.txt. Do not install into Ansible's or the serving framework's environment. No login or paid service is needed for the public example.

Procedure and gates

  1. Preview ansible-playbook -i config/inventory playbooks/model-cache.yml --check --diff. Apply without --check --diff only to the approved writer and cache path. The playbook must finish with failed=0; repeat once to check changed=0. A successful playbook does not mean a model is cached.
  2. As the writer, use umask 0027, source the generated environment.sh, and run the pinned hf download with a full commit hash and the approved file list as shown in the guide. Include every tokenizer/config file and weight shard required by the workload. Do not use main, --local-dir, or deprecated hf_transfer; do not have compute jobs warm the cache themselves.
  3. Stop writes to the selected snapshot. As the actual reader UID, in the actual workload mount context, run python3 scripts/validation/validate_model_cache.py with --json, --cache-dir, --repo-id, --revision, and one --require-file per needed file. The guide has a complete command for the public example.
  4. Accept only exit 0 and ok: true. Record revision, checked_files and snapshot_path. Pass that local path to the application and mount the entire cache read-only. The validator checks presence/readability, not checksums, complete model coverage, NFS locking, successful inference or GPU suitability.
  5. For offline model loading, set HF_HUB_OFFLINE=1 only in the loading process. Do not apply it to a Hugging Face client calling a local inference server: it blocks that HTTP too. Offline mode is not a network access control.

Read the full file on GitHub · 62 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 62 lines · 39 tokens per session scan A ec9307a29863

Subscribe to this mod's changes

manage-model-cache is a skill published in the GitHub repository NVIDIA/deepops (1,479 stars, last pushed today), licensed BSD-3-Clause. It adds 39 tokens to every session and 903 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-07.

Related

Other skills, from other repositories

tensorrt-llm

High-throughput LLM inference on NVIDIA GPUs.

NousResearch/hermes-agent · 18 tokens

agent-platform-tuning

Agent Platform Model Tuning. Use when you need to fine-tune open models or Gemini models using Agent Platform infrastructure. Don't use for model training outside Agent Platform, model deployment to endpoints (use agent-platform-deploy), or managing serving endpoints (use agent-platform-endpoint-management).

google/skills · 64 tokens

google-cloud-solution-guided-gke-ai-migration

Guides the migration of existing AI workloads (Cloud Run, Gemini API, Gemini Enterprise Agent Platform) to self-hosted GKE inference using gcloud and kubectl. Use when the user has an existing AI inference workload (on Cloud Run, the Gemini API, Gemini Enterprise Agent Platform, or a custom VM) and wants to move it to…

google/skills · 157 tokens

modal

Modal is a serverless cloud platform for running Python on demand, including on-demand GPUs. Use when deploying or serving AI/ML models, running GPU-accelerated workloads (training, fine-tuning, inference), serving web endpoints, scheduling batch jobs, or scaling Python code to cloud containers with the Modal SDK.

K-Dense-AI/scientific-agent-skills · 65 tokens

agent-platform-endpoint-management

Manages Agent Platform serving endpoints. Use when you need to create, list, describe, update, or delete serving endpoints for model deployment on Agent Platform. Also use when troubleshooting endpoint permission, quota, or resource busy errors. Don't use for deploying models to endpoints or for running model…

google/skills · 64 tokens

gke-inference

Deploys and optimizes AI/ML inference workloads on GKE, using GPUs, TPUs, and model servers. Use when deploying GKE inference servers, configuring GKE GPU resources for inference, or deploying LLMs on GKE. Don't use for migrating existing AI workloads to GKE (use google-cloud-solution-guided-gke-ai-migration), GKE RAG…

google/skills · 119 tokens