Downloads · 30 days
13
12% of all-time downloads
abhinavv3/SmolLM-135M-layer-pruned-90M-raw
SmolLM-135M-layer-pruned-90M-raw is a text generation model from abhinavv3. Use it when you need the model to write or continue text. It is set up for transformers.
This repository hosts a layer-pruned version of HuggingFaceTB/SmolLM-135M, reduced from ~ 135M parameters down to ~ 99M parameters (~26% smaller).
Downloads · 30 days
13
12% of all-time downloads
All-time downloads
112
Public
Parameters
99.1M
198 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors198 MB · 98%
From the Hugging Face model README
This repository hosts a layer-pruned version of HuggingFaceTB/SmolLM-135M, reduced from ~ 135M parameters down to ~ 99M parameters (~26% smaller).
⚠️ Note: This model is intended as a starting point for knowledge distillation or fine-tuning, not as a final standalone model.
The model was pruned from 30 layers → 20 layers, achieving ~26% parameter reduction while keeping embeddings, the output head, and the final layer intact.
Users should:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "your-username/SmolLM-135M-layer-pruned-90M-raw"
tokenizer = AutoTokenizer.from_pretrained("HuggingFaceTB/SmolLM-135M")
model = AutoModelForCausalLM.from_pretrained(model_id)
inputs = tokenizer("Hello, how are you?", return_tensors="pt")
outputs = model.generate(**inputs, max_length=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))