nyu-mll/glue
Viewer β’ Updated β’ 1.49M β’ 467k β’ 787
This model is an authoritative pretrained variant of bert-base-uncased where all 12 standard Multi-Head Attention blocks have been replaced with the asvd_attention mechanism from the NeuralOps Library.
The model was distilled on GLUE SST-2 using the NeuralOps 2-Stage Cached Representation Distillation Protocol (Zero Teacher VRAM, offline representation caching) on an NVIDIA RTX 3090.
Evaluated on the GLUE SST-2 validation split (872 samples):
| Metric | Teacher Baseline | Pre-KD Student | Post-KD Distilled Model | Delta vs Pre-KD |
|---|---|---|---|---|
| SST-2 Accuracy | 91.63% |
82.80% |
91.28% |
+8.49% |
| Validation Loss | 0.2428 |
N/A | 0.3088 |
Optimal |
50.2s200 steps32633.1 tokens/sec8487 MBfrom transformers import AutoModelForSequenceClassification, AutoTokenizer
# Instant download and execution directly from Hugging Face Hub
model = AutoModelForSequenceClassification.from_pretrained("tahamajs/bert-asvd-attention-sst2", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("tahamajs/bert-asvd-attention-sst2")
inputs = tokenizer("NeuralOps accelerates transformer architectures seamlessly.", return_tensors="pt")
outputs = model(**inputs)
predicted_sentiment = outputs.logits.argmax(dim=-1).item()
print("Prediction (0=Negative, 1=Positive):", predicted_sentiment)
from neuralops.hub.bert_zoo import load_pretrained_bert
# Instant load via NeuralOps Zoo API
model, tokenizer = load_pretrained_bert(
attention_type="asvd_attention",
task="sequence-classification",
hf_org="tahamajs",
)
@software{neuralops2026bertzoo,
title = {NeuralOps: Pretrained BERT-131 Subquadratic Attention Zoo},
author = {Majlesi, Taha},
year = {2026},
url = {https://github.com/tahamajs/NeuralOps}
}
import torch
from neuralops.hub import load_surgeried_model
# Load model and tokenizer/processor in one line directly from Hugging Face Hub
model, tokenizer = load_surgeried_model("tahamajs/bert-asvd-attention-sst2")
model.eval()
print(f"Successfully loaded tahamajs/bert-asvd-attention-sst2 with NeuralOps modular surgical weights!")
Base model
google-bert/bert-base-uncased