The Latest AIs, every day
AIs with the most favorites on Toolify
AIs with the highest website traffic (monthly visits)
AI Tools by Apps
Discover the Discord of AI
AI Tools by browser extensions
GPTs from GPT Store
Discover The Best Model For AI
Top AI lists by month and monthly visits.
Top AI lists by category and monthly visits.
Top AI lists by region and monthly visits.
Top AI lists by source and monthly visits.
Top AI lists by revenue and real traffic.

We Were Too Broke for AdamW So We Trapped Gradients in a Hyperbolic Straitjacket and Hired a Traffic Cop to Slap Them
Official Upstream & Standalone Codebase | Current Version: v1.1.0 | Check `Files and Versions`
Official Research Paper
LuminaV Optimizer Theory & Mechanics Read LuminaV.pdf (Local Mirror) | Primary Paper Archive |
Click the preview above to read or download the official paper PDF.
This repository (
cloverx-id/LuminaV-Optimizer-Paper
) is the
official standalone and living development repository
for the LuminaV optimizer family.
While LuminaV was originally conceived and validated as the core engine for the XoneLM-1.0 language model series, all subsequent optimizer upgrades, low-precision Triton kernels, PyTorch standards compliance, and bug fixes are actively maintained and released directly in this repository.
The v1.1.0 release hardens LuminaV for modern PyTorch environments (PyTorch 2.13 and 2.14) and low-precision GPU execution:
_store_param
helper that safely casts low-precision pointer types (
tl.bfloat16
/
tl.float16
), preventing LLVM compile errors when stochastic rounding is disabled.
torch.contiguous_format
to prevent stride corruption during transposed or channels-last training.
torch._foreach_add_
whenever stochastic rounding is inactive or parameters are in FP32.
config.json
.
For the full version history and detailed patch notes, see CHANGELOG.md .
LuminaV
is a master-free, memory-efficient adaptive optimizer engineered specifically for deep learning workloads running directly in low precision (
FP16
/
BF16
) without maintaining redundant 4-byte FP32 master weights.
By combining Centered Innovation Variance , Hyperbolic Tangent (tanh) Coordinate Bounding , a Directional Traffic-Cop Mask , and On-Chip Bitwise Stochastic Rounding , LuminaV eliminates the standard 16-byte-per-parameter memory tax imposed by AdamW while avoiding weight freezing and gradient shocks.
FP16
or
BF16
, eliminating the 4-byte FP32 master weight allocation.
(-1.0, 1.0)
transfer function, guaranteeing coordinate updates cannot explode beyond the step learning rate.
u_t · g_t ≤ 0
).
(g_t - m_t)²
rather than uncentered raw second moments, suppressing variance inflation during confident descent.
torch._foreach
multi-tensor fallbacks.
Download
luminav.py
directly into your project root, or clone this repository:
git clone https://huggingface.co/cloverx-id/LuminaV-Optimizer-Paper
cd LuminaV-Optimizer-Paper
import torch
from luminav import LuminaV
# Instantiate your model in native low precision (e.g. BF16 or FP16)
model = YourModel().to(device="cuda", dtype=torch.bfloat16)
# Initialize LuminaV
optimizer = LuminaV(
model.parameters(),
lr=8e-4, # or 8e-5 and 8e-6 (other best choice(for fine-tuning), hehe.)
betas=(0.9, 0.999),
eps=1e-8,
weight_decay=0.08,
tau=0.8,
alpha_ss=0.5,
cautious=True,
cautious_clamp_min=0.2,
buffer=2, # 2 = Dual-Buffer (Standard), 1 = Single-Buffer (Low VRAM)
stochastic_rounding=True,
execution="auto"
)
# Standard training step
optimizer.zero_grad(set_to_none=True)
loss = model(inputs, targets)
loss.backward()
optimizer.step()
config.json
import json
import torch
from luminav import LuminaV
with open("config.json", "r") as f:
config = json.load(f)
# Initialize with verified default configuration
optimizer = LuminaV(model.parameters(), **config["default_params"])
| Parameter | Type | Default | Description |
|---|---|---|---|
params
|
iterable
|
Required | Iterable of parameters to optimize or dicts defining parameter groups. |
lr
|
float
|
8e-4
|
Learning rate (η). |
betas
|
Tuple[float, float]
|
(0.9, 0.999)
|
Coefficients (β₁, β₂) for running momentum and centered innovation variance. |
eps
|
float
|
1e-8
|
Numerical stability term (ε). |
weight_decay
|
float
|
8e-2
|
Decoupled weight decay coefficient (λ). |
tau
|
float
|
0.8
|
Analytical bias correction temperature parameter (τ). |
alpha_ss
|
float
|
0.5
|
Softsign dampening factor (α_ss) used in single-buffer mode (
buffer=1
).
|
cautious
|
bool
|
True
|
If
True
, enables Traffic-Cop directional verification masking.
|
cautious_clamp_min
|
float
|
0.2
|
Safety floor density clamp (γ_min) preventing division by zero in masked normalization. |
buffer
|
int
|
2
|
Buffer mode:
2
(Dual-buffer tracking m_t and v_t) or
1
(Single-buffer scalar RMS tracking).
|
stochastic_rounding
|
bool
|
True
|
Enables bitwise stochastic rounding on native FP16/BF16 weights. |
execution
|
str
|
"auto"
|
Execution engine:
"auto"
,
"triton"
,
"foreach"
, or
"single"
.
|
buffer=2
)
Maintains first moment m_t and centered innovation variance v_t:
m t = β 1 m t − 1 + ( 1 − β 1 ) g t
v t = β 2 v t − 1 + ( 1 − β 2 ) ( g t − m t ) 2
Updates are bounded through the hyperbolic tangent envelope:
u t = tanh ( σ t m ~ t )
buffer=1
)
Collapses variance tracking into a scalar Root-Mean-Square (RMS) across the entire tensor, saving 50% optimizer state memory by maintaining only a single state buffer (m_t):
RMS ( m ~ t ) = N 1 i = 1 ∑ N m ~ t , i 2 + ϵ
u t = tanh ( 1 + α ss ∣ z ∣ z ) , z = τ ⋅ RMS ( m ~ t ) + ϵ ( 1 − β 1 t ) τ m ~ t
If you utilize LuminaV in your research or applications, please cite both the foundational paper and this software implementation:
# 1. To cite the official research paper & theoretical mechanics
@misc{luminamoon2026luminav_paper,
author = {{Silver Moon (cloverxion)}},
organization = {Lumina Moon},
title = {{LuminaV: We Were Too Broke for AdamW So We Trapped Gradients in a Hyperbolic Straitjacket and Hired a Traffic Cop to Slap Them}},
year = {2026},
publisher = {Hugging Face},
doi = {10.57967/hf/10270},
url = {https://huggingface.co/cloverx-id/XoneLM-1.0-Paper}
}
# 2. To cite this software implementation & standalone codebase
@software{luminamoon2026luminav_code,
author = {{Silver Moon (cloverxion)}},
organization = {Lumina Moon},
title = {{LuminaV Optimizer: Official PyTorch Implementation}},
year = {2026},
publisher = {Hugging Face},
version = {1.1.0},
doi = {10.57967/hf/10365},
url = {https://huggingface.co/cloverx-id/LuminaV-Optimizer-Paper}
}
Apache License 2.0. See LICENSE for full terms.
LuminaV-Optimizer-Paper huggingface.co is an AI model on huggingface.co that provides LuminaV-Optimizer-Paper's model effect (), which can be used instantly with this cloverx-id LuminaV-Optimizer-Paper model. huggingface.co supports a free trial of the LuminaV-Optimizer-Paper model, and also provides paid use of the LuminaV-Optimizer-Paper. Support call LuminaV-Optimizer-Paper model through api, including Node.js, Python, http.
LuminaV-Optimizer-Paper huggingface.co is an online trial and call api platform, which integrates LuminaV-Optimizer-Paper's modeling effects, including api services, and provides a free online trial of LuminaV-Optimizer-Paper, you can try LuminaV-Optimizer-Paper online for free by clicking the link below.
LuminaV-Optimizer-Paper is an open source model from GitHub that offers a free installation service, and any user can find LuminaV-Optimizer-Paper on GitHub to install. At the same time, huggingface.co provides the effect of LuminaV-Optimizer-Paper install, users can directly use LuminaV-Optimizer-Paper installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
