Downloads · 30 days
39
15% of all-time downloads
PY007/EasyContext-256K-danube2-1.8b
EasyContext-256K-danube2-1.8b is a text generation model from PY007. Use it when you need the model to write or continue text. It is set up for transformers.
<p align="center" <img src="https://github.com/jzhang38/EasyContext/raw/main/data/Logo.webp" width="500" </p
Downloads · 30 days
39
15% of all-time downloads
All-time downloads
252
Public
Parameters
1.8B
3.7 GB on disk
Likes
5
Public
Click a slice to open those files.
.safetensors3.7 GB · 100%
From the Hugging Face model README
Memory optimization and training recipes to extrapolate language models' context length to 1 million tokens, with minimal hardware.
This is a context-extrapolated base model. It has not been instruct-finetuned.
This model is finetuned from h2oai/h2o-danube2-1.8b-base with EasyContext on context length 256K. Note that I keep max_position_embeddings in config.json to 4096 because HF llama will create 2D causal mask during initialization. If it is set to 256K GPU will just OOM. You can surely use this model with context length longer than 4096.
<p align="center"> <img src="./heatmap.png" width="800"> </p>