Text Classification
Transformers
PyTorch
Safetensors
English
bert
fast
monarch-matrices
mnli
efficiency
triton
hardware-efficient
sub-quadratic
fast-inference
h100-optimized
custom_code
Eval Results (legacy)
text-embeddings-inference
Instructions to use ykae/monarch-bert-base-mnli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ykae/monarch-bert-base-mnli with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ykae/monarch-bert-base-mnli", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ykae/monarch-bert-base-mnli", trust_remote_code=True) model = AutoModelForSequenceClassification.from_pretrained("ykae/monarch-bert-base-mnli", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -140,3 +140,14 @@ This is a **software artifact**, not a hardware limitation.
|
|
| 140 |
|
| 141 |
* **Math:** Monarch Matrices decompose a dense layer into: $\text{BlockDiag}_1 \to \text{Permutation} \to \text{BlockDiag}_2$.
|
| 142 |
* **Solution:** A custom **Fused Triton Kernel** (planned) would fuse these steps, keeping intermediate activations in the GPU's SRAM (L1 Cache). This would drop dynamic VRAM usage significantly below the baseline, matching the FLOPs reduction.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
|
| 141 |
* **Math:** Monarch Matrices decompose a dense layer into: $\text{BlockDiag}_1 \to \text{Permutation} \to \text{BlockDiag}_2$.
|
| 142 |
* **Solution:** A custom **Fused Triton Kernel** (planned) would fuse these steps, keeping intermediate activations in the GPU's SRAM (L1 Cache). This would drop dynamic VRAM usage significantly below the baseline, matching the FLOPs reduction.
|
| 143 |
+
|
| 144 |
+
## Citation
|
| 145 |
+
|
| 146 |
+
@misc{ykae-monarch-bert-mnli-2026,
|
| 147 |
+
author = {Yusuf Kalyoncuoglu, YKAE-Vision},
|
| 148 |
+
title = {Monarch-BERT-MNLI: Extreme Compression via Monarch FFNs},
|
| 149 |
+
year = {2026},
|
| 150 |
+
publisher = {Hugging Face},
|
| 151 |
+
journal = {Hugging Face Model Hub},
|
| 152 |
+
howpublished = {\url{https://huggingface.co/ykae/monarch-bert-base-mnli}}
|
| 153 |
+
}
|