schedulefree
Schedule Free Learning in PyTorch
Decision gist · record as of 2026-08-14
Yes, if you want to eliminate learning rate schedule tuning and are willing to retune learning rate magnitude and the beta interpolation parameter. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it safe to try. Not worth installing if your workflow is heavily dependent on standard schedules or if you cannot modify optimizer.train()/eval() calls around your training loop.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires calling optimizer.train() and optimizer.eval() at the same points as model.train() and model.eval(); BatchNorm models need additional handling to update running statistics at the correct sequence point.
- Low friction installation with only torch and typing-extensions as runtime dependencies.
- Active maintenance with recent commits and steady release cadence since initial release in April 2024.
License · maintenance · safety
permissive license (permissive) — Permissive Apache license allows commercial and private use with minimal restrictions, making it suitable for most projects.
last release 2025-03-24 (508 days) · last repo commit 2026-07-28 · 2,323 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 177,727 downloads/mo, #10,207 on PyPI
Alternatives
Verify before relying
pip install schedulefree
import torch
from schedulefree import AdamWScheduleFree
optimizer = AdamWScheduleFree(model.parameters())
for epoch in range(num_epochs):
optimizer.train()
# training loop
optimizer.eval()
# validation loop- Whether the experimental ScheduleFreeWrapper is production-ready or remains research-stage only.
- Performance gains relative to standard schedules on specific model architectures or domains.
- Compatibility with distributed training frameworks and gradient accumulation patterns.
- Specific learning rate multiplier guidance for different model types beyond the 10x-50x range for SGD and 1x-10x for AdamW.
What it is and what it does
Schedule-free learning replaces traditional learning rate schedules with a method that combines interpolation and averaging of optimizer iterates, eliminating the need to specify training duration in advance. The package provides PyTorch implementations of SGDScheduleFree, AdamWScheduleFree, and RAdamScheduleFree, each with a standard form and a reference form that trades memory for numerical stability. The core insight is that the optimizer maintains three sequences: one for gradient evaluation, one for parameter updates, and one for test/validation evaluation, with the averaging mechanism allowing the method to achieve fast early convergence without the instability of standard momentum-based approaches.
The method requires explicit calls to optimizer.train() and optimizer.eval() to switch between the gradient evaluation and validation sequences, and learning rates typically need to be larger than classical schedules. It works without a learning rate schedule but remains compatible with one, and supports warmup through a warmup_steps parameter. The approach is based on a research preprint and has active maintenance with community contributions.
Use it for
- Training deep neural networks without manually tuning learning rate decay schedules or specifying total training steps upfront.
- Experimenting with different training durations without retuning the optimizer configuration for each run length.
- Wrapping existing PyTorch optimizers via ScheduleFreeWrapper to add schedule-free behavior to custom optimization setups.
- Research projects requiring comparison with Polyak-Ruppert averaging or Nesterov acceleration methods.
- Image classification tasks like MNIST where provided examples demonstrate the integration pattern.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you want to eliminate learning rate schedule tuning and are willing to retune learning rate magnitude and the beta interpolation parameter.
The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it safe to try. Not worth installing if your workflow is heavily dependent on standard schedules or if you cannot modify optimizer.train()/eval() calls around your training loop.
Install
schedulefree on PyPI
Before you install
Low friction installation with only torch and typing-extensions as runtime dependencies. Active maintenance with recent commits and steady release cadence since initial release in April 2024.
Requires calling optimizer.train() and optimizer.eval() at the same points as model.train() and model.eval(); BatchNorm models need additional handling to update running statistics at the correct sequence point.
License in practice
Permissive Apache license allows commercial and private use with minimal restrictions, making it suitable for most projects.
Quickstart
pip install schedulefree
import torch
from schedulefree import AdamWScheduleFree
optimizer = AdamWScheduleFree(model.parameters())
for epoch in range(num_epochs):
optimizer.train()
# training loop
optimizer.eval()
# validation loop
Verify before relying
- Whether the experimental ScheduleFreeWrapper is production-ready or remains research-stage only.
- Performance gains relative to standard schedules on specific model architectures or domains.
- Compatibility with distributed training frameworks and gradient accumulation patterns.
- Specific learning rate multiplier guidance for different model types beyond the 10x-50x range for SGD and 1x-10x for AdamW.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.4 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagestorchtyping-extensions |
| Maintenance | Actively maintained 508 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 177,727 / month, #10,207 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: schedulefree-1.4.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytorch optimizer without schedule”
- schedulefreeProvides schedule-free optimizers for PyTorch that eliminate the need…
- adam-atan2-pytorchProvides an Adam optimizer variant using atan2 for numerical…
- lion-pytorchLion is a PyTorch optimizer that implements an evolved sign momentum…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also lion-pytorch · pytorch_optimizer · prodigyopt · flashoptim · pytorch-ranger · torch-optimizer · adam-atan2-pytorch · torch-ema · fsrs · accelerate