Instructions to use automateyournetwork/Cisco_DevNet_Sandbox_Running_Config with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use automateyournetwork/Cisco_DevNet_Sandbox_Running_Config with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("automateyournetwork/Cisco_DevNet_Sandbox_Running_Config", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
-
|
| 2 |
|
| 3 |
-
|
| 4 |
|
|
|
|
|
|
|
| 5 |
import transformers
|
| 6 |
-
|
| 7 |
import pyreft
|
| 8 |
|
| 9 |
device = "cuda"
|
|
@@ -73,3 +74,4 @@ while True:
|
|
| 73 |
|
| 74 |
# Log intervention details
|
| 75 |
print(f"Intervention applied: {reft_model.interventions}")
|
|
|
|
|
|
| 1 |
+
## How to use this model
|
| 2 |
|
| 3 |
+
To use this model:
|
| 4 |
|
| 5 |
+
```python
|
| 6 |
+
import torch
|
| 7 |
import transformers
|
|
|
|
| 8 |
import pyreft
|
| 9 |
|
| 10 |
device = "cuda"
|
|
|
|
| 74 |
|
| 75 |
# Log intervention details
|
| 76 |
print(f"Intervention applied: {reft_model.interventions}")
|
| 77 |
+
```
|