Mindket

roberta-base-fwsvd-rank32

Newversion 1 · updated

Overview

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.

At a glance

You need
  • Python, PyTorch and the transformers library
  • The neuralops package, only if you want to run the compression yourself, since the card cites version 1.4.3
  • An NVIDIA GPU if you want to repeat the card's speed figures
Runs in
  • Python with the transformers library, as the quickstart shows
  • A machine with an NVIDIA GPU, since the card's timings come from an RTX 4070
  • Windows, macOS or Linux with Python, for downloading the files
Start with
pip install -U huggingface_hub
hf download Hooshaai/roberta-base-fwsvd-rank32

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

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.

IndustryWho uses itHow they use itExample
Machine learningCompression researchersStudy low-rank compression of attention layersCompare the 82M model with the 125M baseline
SoftwareEngineers short on GPU memoryTry a lighter text classifierCheck the 583 MB peak memory against 1,063 MB
EducationStudentsLearn how matrix factorization shrinks a transformerFollow 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

  • Python with the transformers library, as the quickstart shows
  • A machine with an NVIDIA GPU, since the card's timings come from an RTX 4070
  • Windows, macOS or Linux with Python, for downloading the files
Use caseWhoWhat they get back
Classify English textDevelopersA class prediction from a smaller, faster RoBERTa
Measure compression trade-offsResearchersAccuracy, latency and memory figures to compare against the baseline
Apply the same compression to roberta-baseML engineersA compressed copy made with the neuralops compress_model function

How to set it up

You need a working Python setup with PyTorch and transformers.

  • Python, PyTorch and the transformers library
  • The neuralops package, only if you want to run the compression yourself, since the card cites version 1.4.3
  • An NVIDIA GPU if you want to repeat the card's speed figures
  1. Install the huggingface_hub package.
  2. Download the model files with the hf command.
  3. Load the tokenizer from roberta-base and this model with 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")
ToolWhat it does
AutoTokenizer.from_pretrainedLoads the roberta-base tokenizer
AutoModelForSequenceClassification.from_pretrainedLoads the pre-compressed classifier from this repository
compress_modelCompresses 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.

  1. Start from RoBERTa Base
  2. Factorize attention matrices at rank 32
  3. Distill knowledge to win back accuracy
  4. 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.

SST-2 accuracy
Dense RoBERTa baseline93.80%
Zero-shot FWSVD rank 3279.10%
After distillation80.50%
Peak GPU memory
Dense RoBERTa baseline1063 MB
Compressed model583 MB
  • Speed: latency falls from 25.36 ms to 16.68 ms in the card's test
  • Size: attention projection parameters fall from 28.31M to 2.36M
  • License: MIT
  • Cost to run: no API key or paid service is named
  • Data it reaches: the model files and the roberta-base tokenizer you load from Hugging Face, plus the text you classify
  • Not for: the card lists no restrictions, but its accuracy is 13.30 points below the dense baseline on SST-2

README and files

README

roberta-base-fwsvd-rank32

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.

About

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:

  • Python with the transformers library, as the quickstart shows
  • A machine with an NVIDIA GPU, since the card's timings come from an RTX 4070
  • Windows, macOS or Linux with Python, for downloading the files
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.

  • Python, PyTorch and the transformers library
  • The neuralops package, only if you want to run the compression yourself, since the card cites version 1.4.3
  • An NVIDIA GPU if you want to repeat the card's speed figures
  1. Install the huggingface_hub package.
  2. Download the model files with the hf command.
  3. Load the tokenizer from roberta-base and this model with 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
  • Speed: latency falls from 25.36 ms to 16.68 ms in the card's test
  • Size: attention projection parameters fall from 28.31M to 2.36M
  • License: MIT
  • Cost to run: no API key or paid service is named
  • Data it reaches: the model files and the roberta-base tokenizer you load from Hugging Face, plus the text you classify
  • Not for: the card lists no restrictions, but its accuracy is 13.30 points below the dense baseline on SST-2

On Hugging Face, 13 November 2026

  • Task: text classification
  • Library: transformers
  • Downloads in the last 30 days: 0
  • Likes: 2
  • License: mit
  • Languages: en
  • Tags: transformers, neuralops, linear-attention, subquadratic-attention, model-compression, fwsvd, roberta, sst2, text-classification

Links

Get the model

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.

Files
README.md  6 KB

1 file, 6 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
roberta-base-fwsvd-rank32 This page02—mit
svd-linear-attention-roberta-base-adasplashShares roberta · neuralops · sst2362—mit
roberta-base-adasplashShares roberta · neuralops · sst202—mit
distilbert-sst2-rpcShares neuralops · sst2 · subquadratic-attention02—mit
GigaChat3.5-432B-A28BShares linear-attention65484434Bmit
bge-reranker-v2-m3Shares text-classification · transformers14,685,2301,301568Mapache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

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…

New

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…

New

MusicGen Small

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…

New

Similar in Developer

See all in Developer

Lexnet

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…

New

FLUX.2 Klein LoRA Studio

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…

New

anaksor-ocr

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…

New