Dorn4449/synthetic_function-calling-data-10k
Viewer β’ Updated β’ 100k β’ 10
How to use Dorn4449/CyberSentinel-Mistral-7B-v3.5 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="Dorn4449/CyberSentinel-Mistral-7B-v3.5") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Dorn4449/CyberSentinel-Mistral-7B-v3.5")
model = AutoModelForCausalLM.from_pretrained("Dorn4449/CyberSentinel-Mistral-7B-v3.5", device_map="auto")How to use Dorn4449/CyberSentinel-Mistral-7B-v3.5 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Dorn4449/CyberSentinel-Mistral-7B-v3.5"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Dorn4449/CyberSentinel-Mistral-7B-v3.5",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/Dorn4449/CyberSentinel-Mistral-7B-v3.5
How to use Dorn4449/CyberSentinel-Mistral-7B-v3.5 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "Dorn4449/CyberSentinel-Mistral-7B-v3.5" \
--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": "Dorn4449/CyberSentinel-Mistral-7B-v3.5",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "Dorn4449/CyberSentinel-Mistral-7B-v3.5" \
--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": "Dorn4449/CyberSentinel-Mistral-7B-v3.5",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use Dorn4449/CyberSentinel-Mistral-7B-v3.5 with Docker Model Runner:
docker model run hf.co/Dorn4449/CyberSentinel-Mistral-7B-v3.5
CyberSentinel v3.5 is an autonomous AI agent specialized in cybersecurity operations with built-in tool-use capabilities.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# Load model
model = AutoModelForCausalLM.from_pretrained(
"Dorn4449/CyberSentinel-Mistral-7B-v3.5",
torch_dtype=torch.float16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Dorn4449/CyberSentinel-Mistral-7B-v3.5")
# Example: Request a port scan
prompt = '''### System:
You are CyberSentinel, an autonomous cybersecurity agent created by Dorn Dickence with access to tools.
### Cybersecurity Query:
Scan 192.168.1.1 for open ports
### Response:
'''
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=300)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
CyberSentinel v3.5 can use these tools:
The model generates tool calls in XML format:
<tool_call>
<tool>nmap_scan</tool>
<args>
<target>192.168.1.1</target>
<ports>-F</ports>
</args>
</tool_call>
Identity:
User: Who are you?
CyberSentinel: I am CyberSentinel, an autonomous cybersecurity agent
created by Dorn Dickence. I specialize in security analysis,
vulnerability research, and penetration testing assistance.
Tool Use:
User: Look up CVE-2021-44228
CyberSentinel: <tool_call>
<tool>lookup_cve</tool>
<args><cve_id>CVE-2021-44228</cve_id></args>
</tool_call>
[After tool execution]
CVE-2021-44228 (Log4Shell) is a critical severity vulnerability
affecting Apache Log4j. Immediate patching is required.
CyberSentinel is designed for:
NOT for:
Always obtain proper authorization before security testing.
Apache 2.0 - See LICENSE for details
β οΈ Use Responsibly: This is a powerful security tool. Use only in authorized environments.
Base model
Dorn4449/CyberSentinel-Mistral-7B-v3