Borrowing it
Nothing to install: this file belongs to crimson-knight/llamero. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/crimson-knight/llamero/main/.claude/skills/adapter-training/SKILL.mdgit clone --depth 1 https://github.com/crimson-knight/llameroWrote 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.
[](https://agentmods.dev/skills/crimson-knight/llamero/adapter-training)<a href="https://agentmods.dev/skills/crimson-knight/llamero/adapter-training"><img src="https://agentmods.dev/badge/skills/crimson-knight/llamero/adapter-training/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.
<a href="https://agentmods.dev/skills/crimson-knight/llamero/adapter-training"><img src="https://agentmods.dev/badge/skills/crimson-knight/llamero/adapter-training.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00092 | $0.02527 |
| Opus 5 | $0.00046 | $0.01264 |
| Sonnet 5 | $0.00018 | $0.00505 |
| Haiku 4.5 | $0.00009 | $0.00253 |
Grade A, and why
adapter-training 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 12d 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.
How it starts
The opening of the file, as written. The whole thing — 203 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Training adapters with llamero (LoRA / QLoRA)
llamero trains LoRA adapters in-process on the resident model: build a
golden dataset of prompt/completion pairs, call train_adapter, watch the
loss stream down, then activate the adapter. The knowledge behaves like a
removable filter — on when activated, gone when deactivated, and the base
model never reloads at any point.
When the base model is quantized (any *-4bit model — the normal case), the
adapters automatically train QLoRA-style over the quantized layers. There is
no separate QLoRA mode to configure.
Prerequisites are the same as the local-inference skill: Apple Silicon, the
Swift bridge built once via build.sh, and a loaded model session.
Storage root
Default adapter storage is under ~/.llamero. Apps that need app-owned AI
data set this at boot before creating runtimes or training:
Llamero.storage_root = Path.home.join(".scribe")
LLAMERO_HOME=/path/to/root is the env alternative; programmatic wins. The
default train_adapter output becomes Llamero::Storage.adapters_dir/<name>/.
Recipe: teach a model facts it cannot know (complete program)
require "llamero"
# Train on a DENSE model (see "Choosing a base model" below).
runtime = Llamero::Native::MLXRuntime.new(model_id: "mlx-community/gemma-3-1b-it-4bit")
session = runtime.start_session
session.load_model
# 1. Golden dataset: prompt/completion pairs. Use several phrasings of each
# fact so short training runs generalize beyond exact wording.
# No format: needed — train_adapter automatically uses the model's own
# chat template (or the right built-in) for datasets with the default.
dataset = Llamero::Native::TrainingDataset.new(
system_prompt: "You are a Crawley LX-900 bulldozer maintenance expert."
)
dataset.add("What fuel injectors does the Crawley LX-900 use?",
"The Crawley LX-900 uses BR-7741 fuel injectors rated at 2,150 PSI.")
dataset.add("Tell me the LX-900 fuel injector part number.",
"The part number is BR-7741, rated at 2,150 PSI.")
dataset.add("What oil does the Crawley LX-900 use?",
"The LX-900 uses 15W-40 heavy duty diesel engine oil.")
# 2. Hyperparameters. lr 1e-4 memorizes small fact sets quickly.
config = Llamero::Native::AdapterTrainingConfig.new
config.iterations = 300
config.learning_rate = 1e-4
# 3. Train. Streams live loss. Speed scales with model size: ~1 minute for
# 300 iterations on a 0.6B model, tens of minutes on a 2B-class model.
descriptor = session.train_adapter("lx900-manual", dataset, config) do |progress|
puts "iter #{progress.iteration}/#{progress.total_iterations}: loss=#{progress.loss.round(3)}"
end
puts "saved to #{descriptor.path}"
# 4. The adapter is auto-registered. Toggle the knowledge on and off:
session.activate_adapters(
Llamero::Native::AdapterStack.additive([
Llamero::Native::AdapterSlot.new("lx900-manual"),
])
)
puts session.chat([Llamero::Message.user("What injectors does the LX-900 use?")]).content
session.deactivate_adapters
runtime.close
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.
- 12d ago First seen · 203 lines · 92 tokens per session scan A 78b8ab38c5cb
adapter-training is a skill published in the GitHub repository crimson-knight/llamero (22 stars, last pushed 19d ago), licensed MIT. It adds 92 tokens to every session and 2,527 once invoked, about $0.0005 per session on Opus 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-08-30.
Other skills, from other repositories
pytorch-patterns
PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.
optimize-for-gpu
GPU-accelerates scientific Python on NVIDIA hardware and verifies that the result is correct and faster. Use for CUDA/GPU optimization; CPU-bound NumPy, SciPy, pandas, scikit-learn, NetworkX, scikit-image, vector-search, image-processing, graph, simulation, or file-I/O workloads; CuPy, cuDF, cuML, cuGraph, cuVS…
developing-genkit-python
Develop AI-powered applications using Genkit in Python. Use when the user asks about Genkit, AI agents, flows, or tools in Python, or when encountering Genkit errors, import issues, or API problems.
azure-ai-openai-dotnet
Azure OpenAI SDK for .NET. Client library for Azure OpenAI and OpenAI services. Use for chat completions, embeddings, image generation, audio transcription, and assistants. Triggers: "Azure OpenAI", "AzureOpenAIClient", "ChatClient", "chat completions .NET", "GPT-4", "embeddings", "DALL-E", "Whisper", "OpenAI .NET".
rubyllm
Build and maintain Ruby or Rails applications with the RubyLLM AI framework. Use for chats, agents, tools, structured output, media generation, transcription, OCR, moderation, embeddings, reranking, Rails integration, and RubyLLM upgrades; not for contributing to the framework itself.
ax-cpp-gen
Use when writing C++ code with axllm for AxGen programs, forward calls, indexed multi-sampling, result pickers, streaming, tools, assertions, traces, usage, and output parsing.