Downloads · 30 days
0
peterk2023/ELF-B-alpaca-mlx
ELF-B-alpaca-mlx is a text generation model from peterk2023. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as mit.
A single-turn, instruction-following fine-tune of embedded-language-flows/ELF-B-owt (105 M, continuous diffusion language model) on the Alpaca 52k dataset, trained entirely on an Apple Silicon GPU via the MLX backend…
Downloads · 30 days
0
Access
Public
Updated May 15, 2026
Repo size
418 MB
Likes
0
Public
Click a slice to open those files.
.safetensors418 MB · 100%
From the Hugging Face model README
A single-turn, instruction-following fine-tune of embedded-language-flows/ELF-B-owt (105 M, continuous diffusion language model) on the Alpaca 52k dataset, trained entirely on an Apple Silicon GPU via the MLX backend in cjkao/ELF-mlx.
This is a feasibility demonstration, not a production assistant. The point is to show that a continuous-embedding diffusion LM can be steered toward instruction-following with a modest fine-tune on commodity hardware.
| File | Description |
|---|---|
checkpoint_26000_final.safetensors | Final EMA weights, MLX-flattened safetensors layout, ~418 MB. |
train_alpaca_ELF-B-mlx.yml | The exact training config used to produce these weights. |
Clone the MLX backend repo, drop the checkpoint into a local directory, and run the chat REPL:
git clone https://github.com/cjkao/ELF-mlx
cd ELF-mlx
pip install -r requirements.txt
# Download the checkpoint
mkdir -p src/outputs/elf_b-alpaca-mlx
hf download peterk2023/ELF-B-alpaca-mlx checkpoint_26000_final.safetensors \
--local-dir src/outputs/elf_b-alpaca-mlx
# Chat
make chat CHECKPOINT=outputs/elf_b-alpaca-mlx
Or single-shot:
make chat CHECKPOINT=outputs/elf_b-alpaca-mlx \
PROMPT="Write a haiku about coffee."
The prompt format expected by the model is the Alpaca-style one used during training:
Instruction: {your instruction}
Response:
mlx_chat.py builds that prompt for you.
embedded-language-flows/ELF-B-owt (continuous flow-matching DLM, 105 M params, T5-small text encoder)tatsu-lab/alpaca (~52k instruction/response pairs, single-turn, English)max_length=256 total (max_input_length=192 prompt, 64 response slot)Recommended inference settings (defaults in make chat):
num_steps=32, cfg_scale=2.0, sampling_method=sde, sde_gamma=1.5ELF-mlx repo requires reusing mlx_backend/safetensors_load.py.MIT, matching the base model and the ELF-mlx repo.
If you use the base architecture, please cite the original ELF paper:
@article{elf2025,
title={ELF: Embedded Language Flows},
journal={arXiv preprint arXiv:2605.10938},
year={2025}
}