Skip to content
Back to skills

Big Model Inference

ASecurity

"Use Accelerate big-model inference utilities for meta

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
toolsapibackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill big-model-inference --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Big Model Inference?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Big Model Inference
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-big-model-inference/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-big-model-inference)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: big-model-inference
description: "Use Accelerate big-model inference utilities for meta
  initialization, device-map planning, checkpoint dispatch, CPU/disk offload,
  hooks, pipeline inference, and memory sizing without triggering downloads or
  heavyweight runs."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Big Model Inference

Use this sub-skill when an agent needs to load, inspect, partition, or troubleshoot models that may not fit in a single device's memory. It covers Accelerate's `init_empty_weights`, `infer_auto_device_map`, `load_checkpoint_and_dispatch`, `dispatch_model`, CPU/disk offload helpers, hook behavior, `prepare_pippy`, and model-size estimation concepts.

## Route First

- For generic `accelerate launch`, `accelerate config`, or `accelerate estimate-memory` CLI syntax, route to `../configuration-and-cli/`.
- For DeepSpeed ZeRO-3 training/inference tradeoffs, route to `../distributed-training-backends/`.
- For normal `Accelerator.prepare` training loops, route to the training-oriented sub-skill instead of using big-model dispatch primitives.

## Core References

- Read `references/workflows.md` for safe workflows: meta-device construction, device-map planning, checkpoint dispatch, CPU/disk offload, distributed inference, and pipeline parallelism.
- Read `references/api-reference.md` for public APIs, key parameters, and import locations.
- Read `references/troubleshooting.md` when device maps, offload folders, checkpoint indexes, meta tensors, split points, or optional model libraries fail.
- Use `scripts/big_model_api_smoke.py --help` or run the script directly to verify tiny CPU/meta-device API availability without downloads.

## Safety Defaults

- Prefer tiny synthetic `torch.nn.Module` models for inspection and examples.
- Do not call `from_pretrained`, `snapshot_download`, or heavyweight model examples unless the user explicitly wants network/model downloads.
- Treat disk offload as requiring a real writable offload folder and clean it up after experiments.
- Never call `.to("cpu")`, `.cuda()`, or a forward pass on a model still initialized on `meta`; load or set real tensors first.

Files in this skill

  • SKILL.md2.1 KB
  • references/api-reference.md7.6 KB
  • references/troubleshooting.md4.5 KB
  • references/workflows.md5.9 KB
  • scripts/big_model_api_smoke.py2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…