/batch-inference:local-bulk-runfrom batch-inference
Run a bulk LLM job on local or self-hosted inference (Ollama, llama.cpp, vLLM, LM Studio or the user's own servers), from the same JSONL as the cloud runners. Checks the backend is up, estimates hours against the cloud price, pilots, then runs resumably. Use for "run it locally", "use Ollama", "use my GPU box", "keep this off the cloud", "run it on the local model", or when the user's backend guide routes a job here.
Ships in batch-inference. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
orexplorerlives in the ai-model-research plugin. Run it asuvx --from git+https://github.com/danielrosehill/AI-Model-Research-Plugin orexplorer ..., or asorexplorerafteruv tool installfrom that URL. JSON by default; add--tablefor a human view.
Backends come from backends.json. If there are none, run onboarding first, or pass --base-url for a one-off.
python3 backends.py check <name>
If it's down, say what the backend's notes say about waking it, and stop. Don't fall back to a cloud route without
asking: the job may be local for privacy.
Choose the largest instruct model that fits the job and the hardware, and name it.
python3 backends.py speed <name> --model <model> --items N --out-per-item O
orexplorer batch deepseek/deepseek-v4.1-flash --est-in T --est-out T
Local isn't automatically the cheap option. Cloud bulk prices are low enough that a job can cost cents, against
hours of a machine at full power. Local wins on privacy, on working offline, and on very large simple jobs. Show the
user both figures when the guide in defaults.md doesn't settle it.
head -20 in.jsonl > pilot.jsonl
python3 local_batch.py pilot.jsonl pilot.out.jsonl --backend <name> --model <model> --usage-log data/llm-usage.jsonl
Small models fail more quietly than cloud ones: read the outputs as well as the counts. If quality matters, put the local
model in the screen beside the cloud candidates (setup-batch-eval) instead of assuming it's enough.
Run the full set with the same command on in.jsonl.
--workers defaults to the backend's concurrency, else 1. Extra workers only help if the server runs requests in
parallel: vLLM does, and Ollama needs OLLAMA_NUM_PARALLEL. Otherwise they just queue, and can hit --timeout.--think off is the default. It sends reasoning_effort: none to Ollama and enable_thinking: false to vLLM.
Older Ollama versions and llama.cpp ignore this: the model still thinks, <think> blocks are stripped from the
reply, and the run is slower, so raise --max-tokens if replies come back empty.--json schema works on current Ollama and vLLM. If a server rejects it, use --json object.num_ctx). Check a long row in the pilot.Then report ok and failed counts, wall time and tokens per second, and run batch-research-record.
What SKILL.md sets; muted values are Claude Code's defaults
batch-inference@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin batch-inference16 skills in this plugin
/anthropic-batchRun a bulk job through the Anthropic Message Batches API — Claude Haiku 5.5 by default, half price, usually done in minutes — from a JSONL file of prompts, with structured JSON output, a cached system prompt, resume-by-batch-id and cost logging. The default lane for batch work. Use when the user says "Anthropic batch", "Haiku batch", "batch this with Haiku", "run it on the Batches API", or batch-defaults routes here./batch-defaultsPick the model, provider and lane for any bulk or batch LLM job (labelling, classification, extraction, synthetic data, summarising hundreds or thousands of items). Defaults: Claude Haiku 5.5 on the Anthropic Batches API for judgement work, Hy4 Flash on parallel sync for short generation, DeepSeek V4.1 Flash for other cheap volume (batch or sync, whichever costs less today), OpenRouter Batch API for other named models; the user's own defaults file overrides these. Use first whenever the user says "batch this", "run it as a batch job", "bulk job", "use Haiku", "cheapest batch possible", "do it with DeepSeek", or a task needs one LLM call per item over many items./batch-research-checkRead the research notebook before choosing a provider, model or lane for a bulk/batch LLM job, or before quoting a batch price — per-task screening tables (which model was picked for a task type and why), dated verdicts (use / avoid / watch), the latest price per provider and model, provider gotchas, and records of past runs with their measured cost. Use when planning any batch job, when the user asks "what's the cheapest/best way to batch this", "which batch provider", "what did that cost last time", or before estimating spend for a bulk run.Other plugins' skills for the same job