Text Generation
Transformers
Safetensors
English
lfm2
lfm2.5
kali-linux
terminal-executor
tool-calling
function-calling
executor
cybersecurity
penetration-testing
conversational
Eval Results (legacy)
Instructions to use iselabvn/Kali-Terminus-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iselabvn/Kali-Terminus-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="iselabvn/Kali-Terminus-v2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("iselabvn/Kali-Terminus-v2") model = AutoModelForCausalLM.from_pretrained("iselabvn/Kali-Terminus-v2", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use iselabvn/Kali-Terminus-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "iselabvn/Kali-Terminus-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "iselabvn/Kali-Terminus-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/iselabvn/Kali-Terminus-v2
- SGLang
How to use iselabvn/Kali-Terminus-v2 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 "iselabvn/Kali-Terminus-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "iselabvn/Kali-Terminus-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "iselabvn/Kali-Terminus-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "iselabvn/Kali-Terminus-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use iselabvn/Kali-Terminus-v2 with Docker Model Runner:
docker model run hf.co/iselabvn/Kali-Terminus-v2
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,41 +1,42 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
language:
|
| 4 |
-
- en
|
| 5 |
-
tags:
|
| 6 |
-
- lfm2.5
|
| 7 |
-
- kali-linux
|
| 8 |
-
- terminal-executor
|
| 9 |
-
- tool-calling
|
| 10 |
-
- function-calling
|
| 11 |
-
- executor
|
| 12 |
-
- cybersecurity
|
| 13 |
-
- penetration-testing
|
| 14 |
-
base_model: LiquidAI/LFM2.5-350M-Base
|
| 15 |
-
datasets:
|
| 16 |
-
- iselabvn/Kali-terminal-executor-v2
|
| 17 |
-
library_name: transformers
|
| 18 |
-
pipeline_tag: text-generation
|
| 19 |
-
model-index:
|
| 20 |
-
- name: Kali-Terminus-v2
|
| 21 |
-
results:
|
| 22 |
-
- task:
|
| 23 |
-
type: text-generation
|
| 24 |
-
name: Shell Command Generation
|
| 25 |
-
dataset:
|
| 26 |
-
name: Kali-Terminus Evaluation Suite
|
| 27 |
-
type: custom
|
| 28 |
-
metrics:
|
| 29 |
-
- type: strict_pass_rate
|
| 30 |
-
value: 92.31
|
| 31 |
-
name: Strict Pass Rate
|
| 32 |
-
- type: tool_call_parse_rate
|
| 33 |
-
value: 100
|
| 34 |
-
name: Tool Call Parse Rate
|
| 35 |
-
- type: semantic_command_accuracy
|
| 36 |
-
value: 92.31
|
| 37 |
-
name: Semantic Command Accuracy
|
| 38 |
-
--
|
|
|
|
| 39 |
|
| 40 |
# Kali-Terminus-v2
|
| 41 |
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- lfm2.5
|
| 7 |
+
- kali-linux
|
| 8 |
+
- terminal-executor
|
| 9 |
+
- tool-calling
|
| 10 |
+
- function-calling
|
| 11 |
+
- executor
|
| 12 |
+
- cybersecurity
|
| 13 |
+
- penetration-testing
|
| 14 |
+
base_model: LiquidAI/LFM2.5-350M-Base
|
| 15 |
+
datasets:
|
| 16 |
+
- iselabvn/Kali-terminal-executor-v2
|
| 17 |
+
library_name: transformers
|
| 18 |
+
pipeline_tag: text-generation
|
| 19 |
+
model-index:
|
| 20 |
+
- name: Kali-Terminus-v2
|
| 21 |
+
results:
|
| 22 |
+
- task:
|
| 23 |
+
type: text-generation
|
| 24 |
+
name: Shell Command Generation
|
| 25 |
+
dataset:
|
| 26 |
+
name: Kali-Terminus Evaluation Suite
|
| 27 |
+
type: custom
|
| 28 |
+
metrics:
|
| 29 |
+
- type: strict_pass_rate
|
| 30 |
+
value: 92.31
|
| 31 |
+
name: Strict Pass Rate
|
| 32 |
+
- type: tool_call_parse_rate
|
| 33 |
+
value: 100
|
| 34 |
+
name: Tool Call Parse Rate
|
| 35 |
+
- type: semantic_command_accuracy
|
| 36 |
+
value: 92.31
|
| 37 |
+
name: Semantic Command Accuracy
|
| 38 |
+
new_version: iselabvn/Kali-Terminus-v3
|
| 39 |
+
---
|
| 40 |
|
| 41 |
# Kali-Terminus-v2
|
| 42 |
|