docs: upgrade model card with universal loader and verified hardware telemetry
Browse files
README.md
CHANGED
|
@@ -113,3 +113,16 @@ If you use this model or the NeuralOps attention zoo in your research, please ci
|
|
| 113 |
url = {https://github.com/tahamajs/NeuralOps}
|
| 114 |
}
|
| 115 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
url = {https://github.com/tahamajs/NeuralOps}
|
| 114 |
}
|
| 115 |
```
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
## Quick Start (Universal NeuralOps Hub API)
|
| 119 |
+
|
| 120 |
+
```python
|
| 121 |
+
import torch
|
| 122 |
+
from neuralops.hub import load_surgeried_model
|
| 123 |
+
|
| 124 |
+
# Load model and tokenizer/processor in one line directly from Hugging Face Hub
|
| 125 |
+
model, tokenizer = load_surgeried_model("tahamajs/bert-progressive-token-pruning-sst2")
|
| 126 |
+
model.eval()
|
| 127 |
+
print(f"Successfully loaded tahamajs/bert-progressive-token-pruning-sst2 with NeuralOps modular surgical weights!")
|
| 128 |
+
```
|