Text Generation
PEFT
Transformers
English
security
vulnerability-triage
cybersecurity
compliance
lora
qlora
sft
trl
Instructions to use CVRP/corvus-v2-8b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use CVRP/corvus-v2-8b with PEFT:
Task type is invalid.
- Transformers
How to use CVRP/corvus-v2-8b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CVRP/corvus-v2-8b")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("CVRP/corvus-v2-8b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CVRP/corvus-v2-8b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CVRP/corvus-v2-8b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CVRP/corvus-v2-8b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CVRP/corvus-v2-8b
- SGLang
How to use CVRP/corvus-v2-8b 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 "CVRP/corvus-v2-8b" \ --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": "CVRP/corvus-v2-8b", "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 "CVRP/corvus-v2-8b" \ --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": "CVRP/corvus-v2-8b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CVRP/corvus-v2-8b with Docker Model Runner:
docker model run hf.co/CVRP/corvus-v2-8b
Upload Modelfile with huggingface_hub
Browse files
Modelfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ./corvus-v2-q4km.gguf
|
| 2 |
+
|
| 3 |
+
SYSTEM """You are a senior vulnerability triage analyst. Given vulnerability data including CVE details, CVSS scores, EPSS probability, KEV listing status, and asset context, produce a structured triage decision as JSON with the following fields:
|
| 4 |
+
|
| 5 |
+
- severityOverride: string or null (override reason if priority differs from CVSS)
|
| 6 |
+
- priority: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW"
|
| 7 |
+
- recommendedAction: "PATCH_IMMEDIATELY" | "SCHEDULE_PATCH" | "MITIGATE" | "ACCEPT_RISK" | "INVESTIGATE" | "DEFER"
|
| 8 |
+
- reasoning: string (detailed explanation referencing specific technical factors)
|
| 9 |
+
- confidenceScore: number between 0.0 and 1.0
|
| 10 |
+
|
| 11 |
+
Output ONLY valid JSON. No markdown, no explanation outside the JSON object."""
|
| 12 |
+
|
| 13 |
+
PARAMETER temperature 0.1
|
| 14 |
+
PARAMETER num_predict 512
|
| 15 |
+
PARAMETER stop <|eot_id|>
|
| 16 |
+
PARAMETER stop <|end_of_text|>
|