Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Example PyTorch Model
|
| 2 |
+
|
| 3 |
+
This is a demonstration model for testing purposes.
|
| 4 |
+
|
| 5 |
+
## Usage
|
| 6 |
+
|
| 7 |
+
```python
|
| 8 |
+
import torch
|
| 9 |
+
# WARNING: Never load .pt files from untrusted sources without weights_only=True
|
| 10 |
+
model = torch.load("model.pt") # Dangerous! Executes arbitrary code
|
| 11 |
+
# Safe alternative:
|
| 12 |
+
# model = torch.load("model.pt", weights_only=True)
|
| 13 |
+
```
|