Downloads · 30 days
5K
12% of all-time downloads
fla-hub/gla-1.3B-100B
gla-1.3B-100B is a text generation model from fla-hub. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This repository contains the gla-1.3B-100B model, a 1.3B parameter variant trained on 100B tokens, which was presented in the paper Gated Linear Attention Transformers with Hardware-Efficient Training.
Downloads · 30 days
5K
12% of all-time downloads
All-time downloads
43.4K
Public
Parameters
1.4B
8.2 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors2.7 GB · 100%
From the Hugging Face model README
This repository contains the gla-1.3B-100B model, a 1.3B parameter variant trained on 100B tokens, which was presented in the paper Gated Linear Attention Transformers with Hardware-Efficient Training.
This model can be easily loaded and used for text generation tasks with the Hugging Face transformers library:
from transformers import AutoTokenizer, AutoModelForCausalLM
# Load the tokenizer and model
model_id = "fla-hub/gla-1.3B-100B"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
# Example for text generation
prompt = "Hello, my name is"
inputs = tokenizer(prompt, return_tensors="pt")
# Generate text
outputs = model.generate(**inputs, max_new_tokens=50, do_sample=True, top_k=50, top_p=0.95, temperature=0.7)
generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(generated_text)
If you find this work useful, please consider citing the original paper:
Gated Linear Attention Transformers with Hardware-Efficient Training
@article{li2025systematic,
title={Gated Linear Attention Transformers with Hardware-Efficient Training},
author={Songlin Yang, Bailin Wang, Yikang Shen, Rameswar Panda, Yoon Kim},
journal={arXiv preprint arXiv:2312.06635},
year={2023},
}
The official codebase for the models and research, including training scripts and other checkpoints, can be found on GitHub: