manage-model-cache

manage-model-cache is a skill for Claude Code, Codex from NVIDIA/deepops. It costs 39 tokens per session (951 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,500 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 951 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.00951
Opus 5.5 $0.00016 $0.00380
Sonnet 5.5 $0.00008 $0.00190
Haiku 4.5 $0.00004 $0.00095

Measured 21d ago against content hash 4bbaf086b0ca, 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 21d 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 · 65 lines

How it starts

The opening of the file, as written. The whole thing — 65 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. Use a DeepOps checkout on the reader node (or inside the workload container) with scripts/validation/validate_model_cache.py readable and its parent directories traversable by the consumer UID. From that checkout's root, 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 · 65 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. 21d ago Changed · +3 lines 4bbaf086b0ca
  2. 1mo 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,500 stars, last pushed today), licensed BSD-3-Clause. It adds 39 tokens to every session and 951 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

manage-model-cache compared with skills from other repositories

manage-model-cache next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
manage-model-cacheNVIDIA/deepopsSkill1.5ktodayBSD-3-ClauseA39Claude Code, Codex
tensorrt-llmNousResearch/hermes-agentSkill268ktodayMITA18Claude Code, Codex
agent-platform-tuninggoogle/skillsSkill25ktodayApache-2.0A64Claude Code, Codex
google-cloud-solution-guided-gke-ai-migrationgoogle/skillsSkill25ktodayApache-2.0A157Claude Code, Codex
apigee-agent-gateway-governancegoogle/skillsSkill25ktodayApache-2.0A222Claude Code, Codex
gke-inferencegoogle/skillsSkill25ktodayApache-2.0A119Claude Code, Codex
agent-platform-endpoint-managementgoogle/skillsSkill25ktodayApache-2.0A64Claude Code, Codex