Downloads · 30 days
188
28% of all-time downloads
alea-institute/kl3m-007-500m-step37000
kl3m-007-500m-step37000 is a text generation model from alea-institute. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
A 500M parameter language model created via 4x cyclic layer duplication (Gstack method, NeurIPS 2024) from the KL3M 170M Phase 2+A checkpoint. This checkpoint represents 37,000 training steps on the 120-layer architec…
Downloads · 30 days
188
28% of all-time downloads
All-time downloads
675
Public
Parameters
500M
2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2 GB · 99%
From the Hugging Face model README
A 500M parameter language model created via 4x cyclic layer duplication (G_stack method, NeurIPS 2024) from the KL3M 170M Phase 2+A checkpoint. This checkpoint represents 37,000 training steps on the 120-layer architecture.
alea-institute/kl3m-006-170m-checkpoint-63000alea-institute/kl3m-data-sample-006-mediumBased on "Stacking Your Transformers" (NeurIPS 2024, arXiv:2405.15319):
Stacking Pattern:
Source (30 layers): [0, 1, 2, ..., 28, 29]
Target (120 layers): [0-29, 0-29, 0-29, 0-29]
└─ Cyclic repetition 4 times
Preserved Components:
Duplicated Components:
Per G_stack paper findings:
Depth-scaled learning rates:
Layer-specific LR multipliers:
Attention layers (q/k/v/o_proj):
MLP layers (gate/up/down):
LM head:
from transformers import pipeline
# Load the text generation pipeline
generator = pipeline(
"text-generation",
model="alea-institute/kl3m-007-500m-step37000",
device_map="auto"
)
# Generate text
output = generator(
"The United States Constitution establishes",
max_new_tokens=100,
do_sample=True,
temperature=0.8,
top_p=0.95
)
print(output[0]['generated_text'])
Alternative: Using model and tokenizer directly
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"alea-institute/kl3m-007-500m-step37000",
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("alea-institute/kl3m-007-500m-step37000")
inputs = tokenizer("The United States Constitution establishes", return_tensors="pt", return_token_type_ids=False)
inputs = {k: v.to(model.device) for k, v in inputs.items()}
outputs = model.generate(**inputs, max_new_tokens=100, do_sample=True, temperature=0.8, top_p=0.95)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This checkpoint has undergone 37,000 steps of training on the 120-layer architecture. The model is still in active training and quality continues to improve.
Recommended sampling parameters (from project testing):
| Model | Layers | Params | Training Status | Tokens Processed |
|---|---|---|---|---|
| kl3m-006-170m-checkpoint-63000 | 30 | 181.7M | Trained (63K steps) | ~15.8B |
| kl3m-007-500m-step0 | 120 | 500.3M | Step 0 (init only) | 0 |
| kl3m-007-500m-step37000 | 120 | 500.3M | Step 37K (in training) | ~3.92B |
G_stack enables efficient depth scaling:
This approach leverages transfer learning in the depth dimension rather than traditional width scaling or fine-tuning.
This checkpoint will continue training toward:
Follow training progress in the kl3m-007-500m-checkpoint-* series.
Alea Institute
For G_stack technical details:
@inproceedings{gstack2024,
title={Stacking Your Transformers: A Closer Look at Model Growth for Efficient LLM Pre-Training},
author={Du, Wenyu and Luo, Tongxu and Qiu, Zihan and Huang, Zeyu and Shen, Yikang and Cheng, Reynold and Guo, Yike and Fu, Jie},
booktitle={NeurIPS},
year={2024},
note={arXiv:2405.15319}
}
@misc{kl3m2025,
title={KL3M: Knowledge-Guided Language Model Training with G_stack Depth Expansion},
author={Alea Institute},
year={2025},
url={https://github.com/alea-institute/alea-models},
note={500M model via 4x cyclic duplication from 170M Phase 2+A}
}
Apache 2.0