Instructions to use Awakate/Cisco-Configuration-agent with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Awakate/Cisco-Configuration-agent with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("./models/llama32-3b") model = PeftModel.from_pretrained(base_model, "Awakate/Cisco-Configuration-agent") - Transformers
How to use Awakate/Cisco-Configuration-agent with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Awakate/Cisco-Configuration-agent")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Awakate/Cisco-Configuration-agent", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Awakate/Cisco-Configuration-agent with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Awakate/Cisco-Configuration-agent" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Awakate/Cisco-Configuration-agent", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Awakate/Cisco-Configuration-agent
- SGLang
How to use Awakate/Cisco-Configuration-agent with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Awakate/Cisco-Configuration-agent" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Awakate/Cisco-Configuration-agent", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Awakate/Cisco-Configuration-agent" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Awakate/Cisco-Configuration-agent", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Awakate/Cisco-Configuration-agent with Docker Model Runner:
docker model run hf.co/Awakate/Cisco-Configuration-agent
Update README.md
Browse files
README.md
CHANGED
|
@@ -15,7 +15,9 @@ language:
|
|
| 15 |
|
| 16 |
# Model Card for Model ID
|
| 17 |
All translatios were done in DeepL.com (free version)
|
|
|
|
| 18 |
EN:
|
|
|
|
| 19 |
This model is an LLM specialized in Cisco network configuration, fine-tuned with 4-bit LoRA on a LLaMA 3.2 3B base, focused on:
|
| 20 |
|
| 21 |
- Interface configuration
|
|
@@ -44,6 +46,7 @@ de la universidad del cauca, fue entrando con un dataset generado de manera arti
|
|
| 44 |
### Model Description
|
| 45 |
|
| 46 |
EN:
|
|
|
|
| 47 |
This model was adjusted with a specialized dataset of real Cisco commands, with an instruction-input-output structure.
|
| 48 |
It is optimized to run on low-power GPUs thanks to:
|
| 49 |
|
|
@@ -77,6 +80,7 @@ Está optimizado para ejecutarse en GPUs de bajo consumo gracias a:
|
|
| 77 |
- Capaz de detectar cuándo usar herramientas externas
|
| 78 |
|
| 79 |
|
|
|
|
| 80 |
- **Developed by:** Juan Jose Angel Duran Calvache, Alison Daniela Ruiz Muñoz. -Universidad del Cauca
|
| 81 |
- **Funded by [optional]:** Juan Jose Angel Duran Calvache, Alison Daniela Ruiz Muñoz.
|
| 82 |
- **Shared by [optional]:** Juan Jose Angel Duran Calvache, Alison Daniela Ruiz Muñoz.
|
|
|
|
| 15 |
|
| 16 |
# Model Card for Model ID
|
| 17 |
All translatios were done in DeepL.com (free version)
|
| 18 |
+
|
| 19 |
EN:
|
| 20 |
+
|
| 21 |
This model is an LLM specialized in Cisco network configuration, fine-tuned with 4-bit LoRA on a LLaMA 3.2 3B base, focused on:
|
| 22 |
|
| 23 |
- Interface configuration
|
|
|
|
| 46 |
### Model Description
|
| 47 |
|
| 48 |
EN:
|
| 49 |
+
|
| 50 |
This model was adjusted with a specialized dataset of real Cisco commands, with an instruction-input-output structure.
|
| 51 |
It is optimized to run on low-power GPUs thanks to:
|
| 52 |
|
|
|
|
| 80 |
- Capaz de detectar cuándo usar herramientas externas
|
| 81 |
|
| 82 |
|
| 83 |
+
|
| 84 |
- **Developed by:** Juan Jose Angel Duran Calvache, Alison Daniela Ruiz Muñoz. -Universidad del Cauca
|
| 85 |
- **Funded by [optional]:** Juan Jose Angel Duran Calvache, Alison Daniela Ruiz Muñoz.
|
| 86 |
- **Shared by [optional]:** Juan Jose Angel Duran Calvache, Alison Daniela Ruiz Muñoz.
|