Borrowing it
Nothing to install: this file belongs to ScientiaCapital/unsloth-mcp-server. 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/ScientiaCapital/unsloth-mcp-server/main/.claude/skills/training-optimization/SKILL.mdgit clone --depth 1 https://github.com/ScientiaCapital/unsloth-mcp-serverWrote 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/scientiacapital/unsloth-mcp-server/training-optimization)<a href="https://agentmods.dev/skills/scientiacapital/unsloth-mcp-server/training-optimization"><img src="https://agentmods.dev/badge/skills/scientiacapital/unsloth-mcp-server/training-optimization/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/scientiacapital/unsloth-mcp-server/training-optimization"><img src="https://agentmods.dev/badge/skills/scientiacapital/unsloth-mcp-server/training-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00045 | $0.06918 |
| Opus 5.5 | $0.00018 | $0.02767 |
| Sonnet 5.5 | $0.00009 | $0.01384 |
| Haiku 4.5 | $0.00005 | $0.00692 |
Grade A, and why
training-optimization 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.
How it starts
The opening of the file, as written. The whole thing — 1,086 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Training Optimization
Master advanced techniques for efficient, high-quality LLM fine-tuning.
Overview
Fine-tuning is an art. Optimize:
- Learning rates - Schedulers, warmup, optimal values
- LoRA configuration - Rank, alpha, target modules
- Batch optimization - Size, accumulation, sequence length
- Precision - FP16, BF16, mixed precision
- Gradient strategies - Checkpointing, clipping, accumulation
- Hyperparameter tuning - Grid search, Bayesian optimization
- Monitoring - WandB, TensorBoard, loss curves
- Quality - Prevent overfitting, improve convergence
Quick Start
Optimal Default Configuration
from unsloth import FastLanguageModel
from trl import SFTTrainer
from transformers import TrainingArguments
# Load model
model, tokenizer = FastLanguageModel.from_pretrained(
"unsloth/Llama-3.2-7B-bnb-4bit",
max_seq_length=2048,
load_in_4bit=True,
use_gradient_checkpointing="unsloth" # Memory efficient
)
# Configure LoRA (optimal defaults)
model = FastLanguageModel.get_peft_model(
model,
r=16, # LoRA rank (8-64)
lora_alpha=16, # Alpha = rank typically works well
lora_dropout=0, # 0 for Unsloth (already efficient)
target_modules=[ # All attention + MLP for best quality
"q_proj", "k_proj", "v_proj", "o_proj",
"gate_proj", "up_proj", "down_proj"
],
bias="none",
use_gradient_checkpointing="unsloth"
)
# Training arguments (optimal defaults)
training_args = TrainingArguments(
output_dir="./outputs",
per_device_train_batch_size=2,
gradient_accumulation_steps=4, # Effective batch = 2*4 = 8
num_train_epochs=3,
learning_rate=2e-4, # 2e-4 is a sweet spot
lr_scheduler_type="cosine", # Cosine decay
warmup_ratio=0.03, # 3% warmup
fp16=not torch.cuda.is_bf16_supported(),
bf16=torch.cuda.is_bf16_supported(), # BF16 if available
logging_steps=10,
optim="adamw_8bit", # 8-bit AdamW (memory efficient)
save_strategy="epoch",
save_total_limit=3
)
# Train
trainer = SFTTrainer(
model=model,
tokenizer=tokenizer,
train_dataset=dataset,
max_seq_length=2048,
args=training_args
)
trainer.train()
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.
- 2mo ago First seen · 1,086 lines · 45 tokens per session scan A ff60f79890e8
training-optimization is a skill published in the GitHub repository ScientiaCapital/unsloth-mcp-server (2 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 45 tokens to every session and 6,918 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-08-31.
Other skills, from other repositories
colab-finetuning
Fine-tune LLMs on Google Colab GPUs directly from openscience. Connects to Colab runtimes via WebSocket bridge for remote training with Unsloth. Supports SFT, GRPO, DPO, vision, and TTS workflows on free T4 to Pro A100 GPUs.
runpod
Use when running GPU compute on RunPod and deciding between Pods (hourly, always-on) and Serverless (per-second, autoscaling) for training, fine-tuning or inference — serverless endpoints, handler workers, worker Docker templates, network volumes, timeout and worker-count tuning, cold starts, and runaway bills. NOT…
fine-tuning-unsloth
Expert guidance for fast fine-tuning with Unsloth - 2-5x faster training, 50-80% less memory, LoRA/QLoRA optimization.
unsloth
Expert guidance for fast fine-tuning with Unsloth - 2-5x faster training, 50-80% less memory, LoRA/QLoRA optimization.
unsloth
Expert guidance for fast fine-tuning with Unsloth - 2-5x faster training, 50-80% less memory, LoRA/QLoRA optimization.
unsloth
Expert guidance for fast fine-tuning with Unsloth - 2-5x faster training, 50-80% less memory, LoRA/QLoRA optimization.