Downloads · 30 days
21
8% of all-time downloads
Abhinav-Anand/MiniMerge-0.1B
MiniMerge-0.1B is a text generation model from Abhinav-Anand. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
A SLERP (Spherical Linear Interpolation) merge of SmolLM-135M (base) and SmolLM-135M-Instruct. This "chimera" model blends raw language modeling capabilities with instruction-following abilities, creating a balanced m…
Downloads · 30 days
21
8% of all-time downloads
All-time downloads
256
Public
Parameters
135M
538 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors538 MB · 99%
From the Hugging Face model README
A SLERP (Spherical Linear Interpolation) merge of SmolLM-135M (base) and SmolLM-135M-Instruct. This "chimera" model blends raw language modeling capabilities with instruction-following abilities, creating a balanced model that inherits strengths from both parents.
Linear interpolation (lerp) can reduce the magnitude of weight vectors, potentially degrading model quality. SLERP interpolates along the surface of a hypersphere, preserving vector magnitudes while smoothly transitioning between the two models. This typically produces higher quality merges.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Ringkvist/SmolLM-135M-SLERP-Merge")
tokenizer = AutoTokenizer.from_pretrained("Ringkvist/SmolLM-135M-SLERP-Merge")
inputs = tokenizer("Explain what photosynthesis is:", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
slices:
- sources:
- model: HuggingFaceTB/SmolLM-135M
layer_range: [0, 30]
- model: HuggingFaceTB/SmolLM-135M-Instruct
layer_range: [0, 30]
merge_method: slerp
base_model: HuggingFaceTB/SmolLM-135M
parameters:
t:
- value: 0.6
dtype: float16
| Model | Role | Description |
|---|---|---|
| HuggingFaceTB/SmolLM-135M | Base | Raw language modeling |
| HuggingFaceTB/SmolLM-135M-Instruct | Instruct | Instruction following |