How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="PatrickHaller/hgrn2_pile_100m_distill_babylm", trust_remote_code=True)
# Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("PatrickHaller/hgrn2_pile_100m_distill_babylm", trust_remote_code=True, device_map="auto")
Quick Links

Our model for the 2024 BabyLM challenge 100M words track.

To download and use this model the fla package has to be installed:

pip install -U git+https://github.com/sustcsonglin/flash-linear-attention
Downloads last month
22
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train PatrickHaller/hgrn2_pile_100m_distill_babylm

Space using PatrickHaller/hgrn2_pile_100m_distill_babylm 1

Collection including PatrickHaller/hgrn2_pile_100m_distill_babylm