Bonsai-27B-GGUF
lmstudio-community · Kit
A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…
Classifies English text with a RoBERTa Base model shrunk to about 82M parameters by Fisher-weighted SVD at rank 32, trading some accuracy for lower latency and memory use.
roberta-base-fwsvd-rank32 is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download Hooshaai/roberta-base-fwsvd-rank32
This is RoBERTa Base compressed with Fisher-Weighted SVD at rank 32, using the NeuralOps toolkit. It classifies English text and has about 82M parameters instead of the original 125M.
The compression splits each attention projection matrix into two thin matrices of rank 32. A later knowledge distillation step wins back part of the lost accuracy.
Machine learning engineers and researchers who care about model compression and inference cost. It is a worked example of what low-rank compression gains and loses on one small classifier.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Machine learning | Compression researchers | Study low-rank compression of attention layers | Compare the 82M model with the 125M baseline |
| Software | Engineers short on GPU memory | Try a lighter text classifier | Check the 583 MB peak memory against 1,063 MB |
| Education | Students | Learn how matrix factorization shrinks a transformer | Follow the rank 32 factorization in the card |
People who need the full accuracy of dense RoBERTa Base can skip it, since the card reports a clear drop on its test.
| Use case | Who | What they get back |
|---|---|---|
| Classify English text | Developers | A class prediction from a smaller, faster RoBERTa |
| Measure compression trade-offs | Researchers | Accuracy, latency and memory figures to compare against the baseline |
| Apply the same compression to roberta-base | ML engineers | A compressed copy made with the neuralops compress_model function |
You need a working Python setup with PyTorch and transformers.
pip install -U huggingface_hub hf download Hooshaai/roberta-base-fwsvd-rank32
The quickstart loads the tokenizer from roberta-base and the compressed classifier from this repository. A second route compresses roberta-base yourself with neuralops. The card's code for that route is cut off here, so check the model page for it.
import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer
from neuralops import replace_attention, compress_model
# 1. Load tokenizer and pre-compressed model from Hugging Face Hub
tokenizer = AutoTokenizer.from_pretrained("roberta-base")
model = AutoModelForSequenceClassification.from_pretrained("Hooshaai/roberta-base-fwsvd-rank32")| Tool | What it does |
|---|---|
| AutoTokenizer.from_pretrained | Loads the roberta-base tokenizer |
| AutoModelForSequenceClassification.from_pretrained | Loads the pre-compressed classifier from this repository |
| compress_model | Compresses a base model locally with the same method |
You load the tokenizer and the compressed model with the two quickstart lines, then run an English sentence through it to get a class. On the card's SST-2 test it reached 80.50% accuracy after distillation, against 93.80% for the dense baseline.
Think of this as RoBERTa Base put on a diet. It runs faster and needs less memory, but it gets more answers wrong than the original. A good first try is loading it and comparing a few sentences against roberta-base.
Underneath, each query, key, value and output projection is replaced by two rank 32 factors. The Fisher weighting scales rows and columns by how sensitive the loss is to them before the SVD. The trade-off is a 13.30 point accuracy loss on SST-2 for a 1.52x speedup.
The figures below come from the card's own test on the SST-2 validation split, with sequence length 128 and batch size 32 on one RTX 4070.
Classifies English text with a RoBERTa Base model shrunk to about 82M parameters by Fisher-weighted SVD at rank 32, trading some accuracy for lower latency and memory use.
Made by Hooshaai on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: This is RoBERTa Base compressed with Fisher-Weighted SVD at rank 32, using the NeuralOps toolkit. It classifies English text and has about 82M parameters instead of the original 125M.
The compression splits each attention projection matrix into two thin matrices of rank 32. A later knowledge distillation step wins back part of the lost accuracy.
Who it suits: Machine learning engineers and researchers who care about model compression and inference cost. It is a worked example of what low-rank compression gains and loses on one small classifier.
Industry | Who uses it | How they use it | Example
Machine learning | Compression researchers | Study low-rank compression of attention layers | Compare the 82M model with the 125M baseline
Software | Engineers short on GPU memory | Try a lighter text classifier | Check the 583 MB peak memory against 1,063 MB
Education | Students | Learn how matrix factorization shrinks a transformer | Follow the rank 32 factorization in the card
People who need the full accuracy of dense RoBERTa Base can skip it, since the card reports a clear drop on its test.
Where to use it:
Use case | Who | What they get back
Classify English text | Developers | A class prediction from a smaller, faster RoBERTa
Measure compression trade-offs | Researchers | Accuracy, latency and memory figures to compare against the baseline
Apply the same compression to roberta-base | ML engineers | A compressed copy made with the neuralops compress_model function
How to set it up: You need a working Python setup with PyTorch and transformers.
pip install -U huggingface_hub
hf download Hooshaai/roberta-base-fwsvd-rank32
How to use it: The quickstart loads the tokenizer from roberta-base and the compressed classifier from this repository. A second route compresses roberta-base yourself with neuralops. The card's code for that route is cut off here, so check the model page for it.
import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer
from neuralops import replace_attention, compress_model
# 1. Load tokenizer and pre-compressed model from Hugging Face Hub
tokenizer = AutoTokenizer.from_pretrained("roberta-base")
model = AutoModelForSequenceClassification.from_pretrained("Hooshaai/roberta-base-fwsvd-rank32")
Tool | What it does
AutoTokenizer.from_pretrained | Loads the roberta-base tokenizer
AutoModelForSequenceClassification.from_pretrained | Loads the pre-compressed classifier from this repository
compress_model | Compresses a base model locally with the same method
Example: You load the tokenizer and the compressed model with the two quickstart lines, then run an English sentence through it to get a class. On the card's SST-2 test it reached 80.50% accuracy after distillation, against 93.80% for the dense baseline.
For newcomers and experts: Think of this as RoBERTa Base put on a diet. It runs faster and needs less memory, but it gets more answers wrong than the original. A good first try is loading it and comparing a few sentences against roberta-base.
Underneath, each query, key, value and output projection is replaced by two rank 32 factors. The Fisher weighting scales rows and columns by how sensitive the loss is to them before the SVD. The trade-off is a 13.30 point accuracy loss on SST-2 for a 1.52x speedup.
Start from RoBERTa Base
Factorize attention matrices at rank 32
Distill knowledge to win back accuracy
Classify text with the smaller model
Good to know: The figures below come from the card's own test on the SST-2 validation split, with sequence length 128 and batch size 32 on one RTX 4070.
Title: SST-2 accuracy
Dense RoBERTa baseline: 93.80%
Zero-shot FWSVD rank 32: 79.10%
After distillation: 80.50%
Title: Peak GPU memory
Dense RoBERTa baseline: 1063 MB
Compressed model: 583 MB
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download Hooshaai/roberta-base-fwsvd-rank32
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| roberta-base-fwsvd-rank32 This page | 0 | 2 | — | mit | |
| svd-linear-attention-roberta-base-adasplashShares roberta · neuralops · sst2 | 36 | 2 | — | mit | |
| roberta-base-adasplashShares roberta · neuralops · sst2 | 0 | 2 | — | mit | |
| distilbert-sst2-rpcShares neuralops · sst2 · subquadratic-attention | 0 | 2 | — | mit | |
| GigaChat3.5-432B-A28BShares linear-attention | 654 | 84 | 434B | mit | |
| bge-reranker-v2-m3Shares text-classification · transformers | 14,685,230 | 1,301 | 568M | apache-2.0 |
lmstudio-community · Kit
A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…
LibertAIDAI · Kit
Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…
facebook · Kit
Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…
alpindale · Kit
Tags every character of C source code for syntax highlighting with a tiny neural network of about 984 weights, run through a small C program. For developers an…
prithivMLmods · Kit
Try a set of LoRAs for the FLUX.2 Klein image model in a Gradio app that runs in your browser or on your own computer. Made for people who make or test AI imag…
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…