Downloads · 30 days
13
0% of all-time downloads
Harvard-DCML/boomerang-llama-3.2-1.9B
boomerang-llama-3.2-1.9B is a machine learning model from Harvard-DCML. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as llama3.2.
Boomerang distillation is a phenomenon in LLMs where we can distill a teacher model into a student and reincorporate teacher layers to create intermediate-sized models with no additional training. This is the Llama st…
Downloads · 30 days
13
0% of all-time downloads
All-time downloads
27.1K
Public
Parameters
2.3B
9.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors9.2 GB · 100%
From the Hugging Face model README
Boomerang distillation is a phenomenon in LLMs where we can distill a teacher model into a student and reincorporate teacher layers to create intermediate-sized models with no additional training. This is the Llama student model from our paper.
This model was initialized from Llama-3.2-3B by copying the first two layers and every 2nd subsequent layer. It was distilled on 2.1B tokens of The Pile deduplicated with cross entropy, KL, and cosine loss to match the activations of Llama-3.2-3B. We used the following hyperparameters:
To interpolate between this model and Llama-3.2-3B, please use the build_intermediate_model function from our github repository:
import torch
from patching.patch import build_intermediate_model
intermediate_model = build_intermediate_model(
teacher_name_or_path = "meta-llama/Llama-3.2-3B",
student_name_or_path = "Harvard-DCML/boomerang-llama-3.2-1.9B",
num_layers_to_patch = 2,
patch_first_k_layers = True,
dtype = torch.bfloat16,
)
Notes:
num_layers_to_patch changes the size of the intermediate model by patching different numbers of student layers.patch_first_k_layers should be set to True for this model for optimal interpolation performance.@article{kangaslahti2025boomerang,
title={Boomerang Distillation Enables Zero-Shot Model Size Interpolation},
author={Kangaslahti, Sara and Nayak, Nihal V and Geuter, Jonathan and Fumero, Marco and Locatello, Francesco and Alvarez-Melis, David},
journal={arXiv preprint arXiv:2510.05064},
year={2025},
url={https://arxiv.org/abs/2510.05064}
}