Skip to content

Record: CLASE-Quant adaptive layer quantization (val_bpb=1.1914) - #309

Open
NewyorkDev wants to merge 1 commit into
openai:mainfrom
NewyorkDev:submission/clase-quant-adaptive-layer-quant
Open

NewyorkDev wants to merge 1 commit into
openai:mainfrom
NewyorkDev:submission/clase-quant-adaptive-layer-quant

Conversation

@NewyorkDev

Copy link
Copy Markdown

Summary

CLASE-Quant: Adaptive Layer-Sensitive Quantization + Extended Context Training

  • Mean val_bpb: 1.1914 (3 seeds on 8xH100 SXM, 10 min wallclock)
  • Artifact: ~11.5 MB (well under 16 MB limit)
  • Improvement over baseline: -0.033 val_bpb

Novel Techniques

1. CLASE-inspired Adaptive Per-Layer Quantization

Not all transformer layers are equal. Inspired by the CLASE Technique (HDXspeed, March 2026), we apply non-uniform quantization:

  • Boundary layers (blocks 0, 1, N-2, N-1): int8 — highest sensitivity
  • Middle layers (blocks 2-7): int6 — skip connections provide redundancy
  • Tied embeddings: fp16 passthrough — dual input/output role
  • Saves ~15% model size vs uniform int8 while preserving accuracy

2. Ramping Weight Decay

Weight decay increases from 0.02 to 0.08 during warmdown (cosine schedule), progressively compressing weight distributions for cleaner post-training quantization.

3. Extended Context + Sliding Window

Train at 2048 seq len with tuned hyperparameters (LR 0.03, momentum 0.97, batch 393K), eval with stride-64 sliding window.

Results (8xH100 SXM, RunPod Secure Cloud)

Seed val_loss val_bpb Steps ms/step Artifact
1337 2.01365 1.19260 10854 55.27 11.46 MB
42 2.00862 1.18962 12761 47.01 11.76 MB
7 2.01284 1.19212 13205 45.43 11.50 MB
Mean 2.01170 1.19144

Submission Checklist

  • README.md with detailed explanation
  • submission.json with seed results and metadata
  • train_gpt.py (self-contained, runs from records folder)
  • 3 training logs (seeds 1337, 42, 7) on 8xH100 SXM
  • All runs complete within 600s wallclock
  • Artifact under 16 MB (11.5 MB)
  • No external downloads during evaluation

Acknowledgments

Built with Claude (Anthropic) as AI pair programmer. Builds on techniques from notapplica, Matthew Li, samacqua, Spokane Way, Nan Liu, and Renier Velazco.

…al_bpb=1.1914)

Novel techniques:
- CLASE-inspired adaptive per-layer quantization (int8 boundary, int6 middle)
- Ramping weight decay during warmdown (0.02->0.08)
- 2048 training seq len + sliding window eval (stride=64)

3 seeds on 8xH100 SXM: 1.1926, 1.1896, 1.1921 (mean 1.1914)
Artifact: ~11.5 MB (well under 16 MB limit)

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
ChideraIbe123 pushed a commit to ChideraIbe123/parameter-golf that referenced this pull request Mar 21, 2026
Compresses weight distributions during warmdown for cleaner
post-training quantization. From PR openai#309 (CLASE-Quant, 1.1914 BPB).
QAT still enabled alongside.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
ChideraIbe123 pushed a commit to ChideraIbe123/parameter-golf that referenced this pull request Mar 21, 2026
12.5MB compressed with 9 layers → room for 10th layer.
Top PRs (openai#287, openai#309) use 10-11 layers for better BPB.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
ChideraIbe123 pushed a commit to ChideraIbe123/parameter-golf that referenced this pull request Mar 28, 2026
- matrix_lr: 0.04→0.025, scalar_lr: 0.04→0.025 (from PR openai#287, openai#309)
- tied_embed_lr: 0.05→0.035
- muon_momentum: 0.95→0.97, warmup_start: 0.85→0.90
- muon_momentum_warmup_steps: 500→800
- warmdown_iters: 1200→2000 (longer cooldown)

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@MatoTeziTanka

Copy link
Copy Markdown

Community Review — Record: CLASE-Quant adaptive layer quantization (val_bpb=1.1914)

BPB: 1.1914 | Compliance: LOOKS CLEAN — pure-neural submission, no TTT/SLOT/n-gram-cache

What I found in the code (head SHA fea512d4236b, file records/track_10min_16mb/2026-03-21_CLASEQuant_AdaptiveLayerQuant_ExtendedContext/train_gpt.py):

Static code review found no TTT adaptation function, no SLOT optimization loop, no n-gram-cache class, and no pre-quant val-token fine-tune. The eval path uses the standard sliding-window stride-64 pattern. The submission is a pure-neural architecture iteration on the standard SP1024/SP4096/SP8192 baseline.

CPU smoke test (CT2038 proteus-engine, 2026-04-11): import OK in 0.03s, dim=512, layers=10, vocab=1024, code=57144 B, SMOKE_TEST_PASS

Verdict: LOOKS CLEAN.

Recommendation to @cocohearts @valerio-oai @0hq @yuzhougu-oai @notapplica: MERGE pending the usual record-track checks (3-seed validation, under-16MB artifact cap, ≤600s train + ≤600s eval on 8×H100 SXM). No compliance flags from the classification pass — this looks like a clean pure-neural iteration on the standard baseline.

Auto-classification caveat: this review was drafted by the AST-based classifier. If there's a non-standard eval mechanism (logit postprocessing, hedge mixing, etc.) that I missed because it's factored into a helper file or a non-standard function name, please flag it and I'll re-run the audit manually.


Reviewed by @MatoTeziTanka — The Agora. CPU smoke test (CT2038 proteus-engine, 2026-04-11): import OK in 0.03s, dim=512, layers=10, vocab=1024, code=57144 B, SMOKE_TEST_PASS. Classification via deterministic AST-based classify_prs.py (pattern bank derived from ~65 manually-reviewed PRs earlier in the 2026-04-11 sweep). This review was auto-drafted from a template and spot-checked before posting — if the template misread your code, please call it out so I can iterate the classifier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants