self-hosted-llm-batch-inference

self-hosted-llm-batch-inference is a skill for Claude Code from awslabs/startups. It costs 170 tokens per session (1,159 once invoked), scanned A, a copy of self-hosted-llm-batch-inference, Apache-2.0.

A deployment guide for recurring, offline language-model inference on AWS, meaning running a language model on stored data rather than answering users immediately. It uses AWS Batch and ECS Spot capacity to process corpus shards with a self-hosted model and recover from interruptions.

In plain words
What is it for?
Use it for recurring batch processing with a self-hosted 1B–8B generative model, including storing model weights, splitting input data, submitting runs, and processing shards with vLLM.
Why use it?
It provides a repeatable way to run delayed GPU jobs while limiting infrastructure and idle-capacity costs. It separates reusable cloud infrastructure from each individual corpus run.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the aws-startups-solution-architecture plugin — 5 skills shipped together

Good fit Use it for recurring batch processing with a self-hosted 1B–8B generative model, including storing model weights, splitting input data, submitting runs, and processing shards with vLLM.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/awslabs/startups/self-hosted-llm-batch-inference
About the project

AWS Startups is an official AWS repository containing plugins, skills, tools, and other resources for people building startup products on Amazon Web Services. Its add-ons support startup-focused architecture, migration, and development work on AWS.

awslabs/startups · 32 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 awslabs/startups --skill self-hosted-llm-batch-inference
Clone the repo
git clone --depth 1 https://github.com/awslabs/startups

Made for: Claude Code.

Or install aws-startups-solution-architecture, the plugin that ships this one along with the rest of its 5 skills.

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 self-hosted-llm-batch-inference

README.md
[![agentmods](https://agentmods.dev/badge/skills/awslabs/startups/self-hosted-llm-batch-inference/github.svg)](https://agentmods.dev/skills/awslabs/startups/self-hosted-llm-batch-inference)
Your own site
<a href="https://agentmods.dev/skills/awslabs/startups/self-hosted-llm-batch-inference"><img src="https://agentmods.dev/badge/skills/awslabs/startups/self-hosted-llm-batch-inference/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 self-hosted-llm-batch-inference

Your own site · 80×15
<a href="https://agentmods.dev/skills/awslabs/startups/self-hosted-llm-batch-inference"><img src="https://agentmods.dev/badge/skills/awslabs/startups/self-hosted-llm-batch-inference.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 170 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,159 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 92% copy Near-identical to another mod 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.00170 $0.01159
Opus 5.5 $0.00068 $0.00464
Sonnet 5.5 $0.00034 $0.00232
Haiku 4.5 $0.00017 $0.00116

Measured 2mo ago against content hash 5bc070c185d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

self-hosted-llm-batch-inference 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 2mo 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.

Origin

This is a copy

92% identical to self-hosted-llm-batch-inference — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

solution-architecture/plugins/aws-startups-solution-architecture/skills/self-hosted-llm-batch-inference/SKILL.md · 88 lines

How it starts

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

Self-Hosted LLM Batch Inference

Build a repeatable offline inference path for a startup that needs GPU economics without operating an ML platform. Use one AWS Batch job for one corpus run, backed by Amazon ECS Managed Instances Spot. Stage model weights in Amazon S3, divide the corpus into deterministic shards, and process those shards sequentially with vLLM on one GPU.

Keep the infrastructure stack separate from each run. Provision reusable Batch, ECR, IAM, logging, and optional networking resources with infrastructure as code. Submit each run separately with immutable image, model, prompt, input manifest, and output identifiers.

Set scaleInAfter to 0 for this architecture. No follow-up task is expected on the instance after the Batch job ends, so retaining idle GPU capacity adds cost without improving the run.

Scope

Apply this skill only when all of these conditions hold:

  • The workload is recurring, latency-tolerant, generative offline inference.
  • The model is approximately 1B to 8B parameters and fits on one GPU after measurement.
  • The team accepts Spot interruption and requires automatic recovery.
  • One model is loaded once and reused across many input shards in a corpus run.
  • Persistent artifacts and completion records can live in Amazon S3.

Do not apply this skill to online endpoints, training or fine-tuning, embedding models, other inference engines, multi-GPU or distributed inference, or one-off experiments where an operator can rerun the command manually.

Workflow

  1. Read references/prepare-model-and-input.md and define the immutable model artifact, prompt contract, deterministic shard manifest, output schema, quarantine schema, and measured sizing inputs.
  2. Read references/run-with-aws-batch.md and author the reusable infrastructure plus the separate SubmitJob invocation. Preserve one Batch job per corpus run.
  3. Read references/verify-and-optimize.md before the canary and again after the full run. Reconcile records, confirm retry behavior, measure cost inputs, and verify that GPU capacity has terminated.

Read the full file on GitHub · 88 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 88 lines · 170 tokens per session scan A 5bc070c185d8

Subscribe to this mod's changes

self-hosted-llm-batch-inference is a skill published in the GitHub repository awslabs/startups (32 stars, last pushed 19d ago), licensed Apache-2.0. It adds 170 tokens to every session and 1,159 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to self-hosted-llm-batch-inference, differing in 2 lines, and is treated as a copy.

Related

self-hosted-llm-batch-inference compared with skills from other repositories

self-hosted-llm-batch-inference next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
self-hosted-llm-batch-inferenceawslabs/startupsSkill3219d agoApache-2.0A170Claude Code
tensorrt-llmNousResearch/hermes-agentSkill268ktodayMITA18Claude Code, Codex
agent-platform-tuninggoogle/skillsSkill25kyesterdayApache-2.0A64Claude Code, Codex
google-cloud-solution-guided-gke-ai-migrationgoogle/skillsSkill25kyesterdayApache-2.0A157Claude Code, Codex
apigee-agent-gateway-governancegoogle/skillsSkill25kyesterdayApache-2.0A222Claude Code, Codex
gke-inferencegoogle/skillsSkill25kyesterdayApache-2.0A119Claude Code, Codex
agent-platform-endpoint-managementgoogle/skillsSkill25kyesterdayApache-2.0A64Claude Code, Codex