docs: upgrade model card with universal loader and verified hardware telemetry
Browse files
README.md
CHANGED
|
@@ -119,6 +119,19 @@ print("Predicted SST-2 Sentiment (0=Negative, 1=Positive):", pred)
|
|
| 119 |
|
| 120 |
---
|
| 121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
## Citation
|
| 123 |
|
| 124 |
```bibtex
|
|
|
|
| 119 |
|
| 120 |
---
|
| 121 |
|
| 122 |
+
|
| 123 |
+
## Quick Start (Universal NeuralOps Hub API)
|
| 124 |
+
|
| 125 |
+
```python
|
| 126 |
+
import torch
|
| 127 |
+
from neuralops.hub import load_surgeried_model
|
| 128 |
+
|
| 129 |
+
# Load model and tokenizer/processor in one line directly from Hugging Face Hub
|
| 130 |
+
model, tokenizer = load_surgeried_model("tahamajs/bert-comp-sdrm-compressor-sst2")
|
| 131 |
+
model.eval()
|
| 132 |
+
print(f"Successfully loaded tahamajs/bert-comp-sdrm-compressor-sst2 with NeuralOps modular surgical weights!")
|
| 133 |
+
```
|
| 134 |
+
|
| 135 |
## Citation
|
| 136 |
|
| 137 |
```bibtex
|