lr-schedule-advisor

lr-schedule-advisor is a skill for Claude Code, Codex from strikersam/autonomous-ai-agency. It costs 33 tokens per session (1,053 once invoked), scanned A, original, MIT.

Advice for choosing how the learning rate changes during transformer or large language model training. The learning rate controls how much each training update changes the model.

In plain words
What is it for?
Use it to compare warmup, cosine decay, linear decay, and constant schedules, or to choose settings for training from scratch or fine-tuning an existing model.
Why use it?
It helps when training is unstable or when one learning-rate value does not work across different model and data setups.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to compare warmup, cosine decay, linear decay, and constant schedules, or to choose settings for training from scratch or fine-tuning an existing model.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/strikersam/autonomous-ai-agency/lr-schedule-advisor
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 strikersam/autonomous-ai-agency --skill lr-schedule-advisor
Clone the repo
git clone --depth 1 https://github.com/strikersam/autonomous-ai-agency

Made for: Claude Code, Codex.

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 lr-schedule-advisor

README.md
[![agentmods](https://agentmods.dev/badge/skills/strikersam/autonomous-ai-agency/lr-schedule-advisor/github.svg)](https://agentmods.dev/skills/strikersam/autonomous-ai-agency/lr-schedule-advisor)
Your own site
<a href="https://agentmods.dev/skills/strikersam/autonomous-ai-agency/lr-schedule-advisor"><img src="https://agentmods.dev/badge/skills/strikersam/autonomous-ai-agency/lr-schedule-advisor/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 lr-schedule-advisor

Your own site · 80×15
<a href="https://agentmods.dev/skills/strikersam/autonomous-ai-agency/lr-schedule-advisor"><img src="https://agentmods.dev/badge/skills/strikersam/autonomous-ai-agency/lr-schedule-advisor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,053 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found 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.00033 $0.01053
Opus 5.5 $0.00013 $0.00421
Sonnet 5.5 $0.00007 $0.00211
Haiku 4.5 $0.00003 $0.00105

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

Security

Grade A, and why

lr-schedule-advisor 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 1mo 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.

harness/skills/lr-schedule-advisor/SKILL.md · 100 lines

How it starts

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

Skill: lr-schedule-advisor

Purpose

Advise on learning rate schedules for transformer/LLM training. One of the most under-documented aspects of building LLMs from scratch — the schedule matters as much as the peak LR value.

Trigger

Use when:

  • Starting a new training run and unsure about LR settings
  • Training is unstable and you suspect LR is the cause
  • You want to compare schedule strategies (cosine, linear, constant+decay)
  • Fine-tuning a pretrained model and need different LR guidance

Background (Why This Matters)

From practitioners who have built LLMs from scratch:

"The learning rate schedule is not a hyperparameter you tune once. It interacts with model size, batch size, sequence length, and even your tokenizer vocabulary size. Most tutorials give you a single number and move on."

Key insights:

  1. Warmup steps prevent early attention collapse — Q/K/V projections are random at init; high LR scrambles them before they can learn
  2. Peak LR scales with batch size — linear scaling rule: if you 2x batch size, 2x LR (approximately)
  3. Cosine decay outperforms linear for most transformer workloads
  4. The final LR floor matters — 10% of peak LR is a common floor; going to zero wastes compute
  5. Cooldown phase — last 10% of training at low LR stabilizes the model for inference

Usage

/lr-schedule-advisor [model_size] [batch_size] [total_steps] [--task pretrain|finetune|rlhf]

Output Format

=== LR Schedule Recommendation ===
Model Size:     [params]
Batch Size:     [tokens or samples]
Total Steps:    [N]
Task:           [pretrain|finetune|rlhf]

Recommended Schedule:
  Peak LR:        [value]
  Warmup Steps:   [N] ([%] of total)
  Schedule Type:  cosine
  Floor LR:       [value] ([%] of peak)
  Cooldown Steps: [N]

Formula:
  lr(step) = ...

Warnings:
  - [any detected issues]

Schedule Formulas

Cosine with Warmup (Recommended for Pretraining)

def get_lr(step, warmup_steps, total_steps, max_lr, min_lr):
    if step < warmup_steps:
        # Linear warmup
        return max_lr * (step / warmup_steps)
    
    # Cosine decay
    progress = (step - warmup_steps) / (total_steps - warmup_steps)
    cosine_decay = 0.5 * (1 + math.cos(math.pi * progress))
    return min_lr + (max_lr - min_lr) * cosine_decay

Read the full file on GitHub · 100 lines

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. 1mo ago Changed · +4 lines · +33 tokens per session db97a9777bf3
  2. 3mo ago First seen · 96 lines · 0 tokens per session scan A b7f7a1a2f02a

Subscribe to this mod's changes

lr-schedule-advisor is a skill published in the GitHub repository strikersam/autonomous-ai-agency (13 stars, last pushed yesterday), licensed MIT. It adds 33 tokens to every session and 1,053 once invoked, about $0.0001 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.

Related

lr-schedule-advisor compared with skills from other repositories

lr-schedule-advisor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lr-schedule-advisorstrikersam/autonomous-ai-agencySkill13yesterdayMITA33Claude Code, Codex
guardrails-ai-setupa5c-ai/babysitterSkill1.9k29d agoMITA30Claude Code
mem0-integrationa5c-ai/babysitterSkill1.9k29d agoMITA27Claude Code
rag-hybrid-searcha5c-ai/babysitterSkill1.9k29d agoMITA28Claude Code
langchain-retrievera5c-ai/babysitterSkill1.9k29d agoMITA19Claude Code
milvus-integrationa5c-ai/babysitterSkill1.9k29d agoMITA17Claude Code
prompt-injection-detectora5c-ai/babysitterSkill1.9k29d agoMITA16Claude Code