Text Generation
Transformers
Safetensors
PEFT
securecoder
lora
adapter
code
tool-calling
security
cybersecurity
qwen3
qwen3_moe
unsloth
known-issue
Instructions to use Taimwe/securecoder-30b-pro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Taimwe/securecoder-30b-pro with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Taimwe/securecoder-30b-pro")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Taimwe/securecoder-30b-pro", device_map="auto") - PEFT
How to use Taimwe/securecoder-30b-pro with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Taimwe/securecoder-30b-pro with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Taimwe/securecoder-30b-pro" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Taimwe/securecoder-30b-pro", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Taimwe/securecoder-30b-pro
- SGLang
How to use Taimwe/securecoder-30b-pro 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 "Taimwe/securecoder-30b-pro" \ --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": "Taimwe/securecoder-30b-pro", "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 "Taimwe/securecoder-30b-pro" \ --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": "Taimwe/securecoder-30b-pro", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use Taimwe/securecoder-30b-pro with Docker Model Runner:
docker model run hf.co/Taimwe/securecoder-30b-pro
Add evaluation report
Browse files- eval-report.json +138 -0
eval-report.json
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"adapter": "Taimwe/securecoder-30b-pro",
|
| 3 |
+
"base": "unsloth/Qwen3-Coder-30B-A3B-Instruct",
|
| 4 |
+
"when": "2026-09-25T08:49:36Z",
|
| 5 |
+
"sections": [
|
| 6 |
+
{
|
| 7 |
+
"section": "tool_calls",
|
| 8 |
+
"n_prompts": 0,
|
| 9 |
+
"parse_rate": 0.0,
|
| 10 |
+
"name_rate": 0.0,
|
| 11 |
+
"schema_rate": 0.0
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"section": "code_sanity",
|
| 15 |
+
"n_prompts": 15,
|
| 16 |
+
"ast_rate": 0.13333333333333333,
|
| 17 |
+
"compile_rate": 0.13333333333333333
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"section": "security_mcq",
|
| 21 |
+
"error": "ValueError(\"Bad split: train. Available splits: ['test']\")",
|
| 22 |
+
"skipped": true
|
| 23 |
+
}
|
| 24 |
+
],
|
| 25 |
+
"raw": [
|
| 26 |
+
{
|
| 27 |
+
"section": "tool_calls",
|
| 28 |
+
"n_prompts": 0,
|
| 29 |
+
"parse_rate": 0.0,
|
| 30 |
+
"name_rate": 0.0,
|
| 31 |
+
"schema_rate": 0.0,
|
| 32 |
+
"details": []
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"section": "code_sanity",
|
| 36 |
+
"n_prompts": 15,
|
| 37 |
+
"ast_rate": 0.13333333333333333,
|
| 38 |
+
"compile_rate": 0.13333333333333333,
|
| 39 |
+
"details": [
|
| 40 |
+
{
|
| 41 |
+
"prompt": "Write a Python function `def is_palindrome(s: str) -> bool:`",
|
| 42 |
+
"ast_ok": null,
|
| 43 |
+
"compile_ok": null,
|
| 44 |
+
"reply_first_160": "```python\\n # Remove non-alphanumeric characters and convert to lowercase\\n cleaned = ''.join(char.lower() for char in s if char.isalnum())\\n # Check i"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"prompt": "Write a Python function `def merge_intervals(intervals: list",
|
| 48 |
+
"ast_ok": false,
|
| 49 |
+
"compile_ok": null,
|
| 50 |
+
"reply_first_160": "```python\\nfrom typing import List\\n\\ndef merge_intervals(intervals: List[List[int]]) -> List[List[int]]:\\n if not intervals:\\n return []\\n \\n #"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"prompt": "Write a Python function `def two_sum(nums: list[int], target",
|
| 54 |
+
"ast_ok": true,
|
| 55 |
+
"compile_ok": true,
|
| 56 |
+
"reply_first_160": "```python\ndef two_sum(nums: list[int], target: int) -> list[int]:\n num_to_index = {}\n for i, num in enumerate(nums):\n complement = target - num\n "
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"prompt": "Write a Python function `def flatten(nested: list) -> list:`",
|
| 60 |
+
"ast_ok": true,
|
| 61 |
+
"compile_ok": true,
|
| 62 |
+
"reply_first_160": "```python\ndef flatten(nested: list) -> list:\n result = []\n for item in nested:\n if isinstance(item, list):\n result.extend(flatten(item))"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"prompt": "Write a Python function `def parse_csv_line(line: str) -> li",
|
| 66 |
+
"ast_ok": false,
|
| 67 |
+
"compile_ok": null,
|
| 68 |
+
"reply_first_160": "```python\\nimport re\\n\\ndef parse_csv_line(line: str) -> list[str]:\\n # Regular expression to match CSV fields, handling quoted fields and escaped quotes\\n "
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"prompt": "Write a Python function `def lru_cache(k: int):` returning a",
|
| 72 |
+
"ast_ok": false,
|
| 73 |
+
"compile_ok": null,
|
| 74 |
+
"reply_first_160": "```python\\nfrom collections import OrderedDict\\ndef lru_cache(k: int):\\n cache = OrderedDict()\\n def decorator(func):\\n def wrapper(*args, **kwargs"
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"prompt": "Write a Python function `def is_anagram(a: str, b: str) -> b",
|
| 78 |
+
"ast_ok": null,
|
| 79 |
+
"compile_ok": null,
|
| 80 |
+
"reply_first_160": "```python\\n```"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"prompt": "Write a Python function `def topological_order(graph: dict[s",
|
| 84 |
+
"ast_ok": false,
|
| 85 |
+
"compile_ok": null,
|
| 86 |
+
"reply_first_160": "```python\\nfrom collections import deque\\n\\ndef topological_order(graph):\\n # Calculate in-degrees for each node\\n in_degree = {node: 0 for node in graph}"
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"prompt": "Write a Python function `def tokenise(s: str) -> list[str]:`",
|
| 90 |
+
"ast_ok": null,
|
| 91 |
+
"compile_ok": null,
|
| 92 |
+
"reply_first_160": "```python\\n tokens = []\\n i = 0\\n while i < len(s):\\n if s[i].isdigit():\\n num = ''\\n while i < len(s) and s[i].isdigit():"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"prompt": "Write a Python function `def slugify(text: str) -> str:` pro",
|
| 96 |
+
"ast_ok": false,
|
| 97 |
+
"compile_ok": null,
|
| 98 |
+
"reply_first_160": "```python\\nfrom unicodedata import normalize\\n\\ndef slugify(text: str) -> str:\\n # Normalize the text to NFKD form (decomposed form)\\n normalized = normal"
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"prompt": "Write a Python function `def read_jsonl(path: str) -> list[d",
|
| 102 |
+
"ast_ok": false,
|
| 103 |
+
"compile_ok": null,
|
| 104 |
+
"reply_first_160": "```python\\nimport json\\n\\ndef read_jsonl(path: str) -> list[dict]:\\n with open(path, 'r') as f:\\n for line in f:\\n yield json.loads(line)\\n"
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"prompt": "Write a Python function `def binary_search(arr: list[int], t",
|
| 108 |
+
"ast_ok": null,
|
| 109 |
+
"compile_ok": null,
|
| 110 |
+
"reply_first_160": "```python\\n```"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"prompt": "Write a Python function `def unique_in_order(s: str) -> list",
|
| 114 |
+
"ast_ok": false,
|
| 115 |
+
"compile_ok": null,
|
| 116 |
+
"reply_first_160": "```python\\nfrom typing import List\\n\\ndef unique_in_order(s: str) -> List[str]:\\n if not s:\\n return []\\n result = [s[0]]\\n for i in range(1, le"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"prompt": "Write a Python function `def safe_eval(expr: str) -> int:` e",
|
| 120 |
+
"ast_ok": false,
|
| 121 |
+
"compile_ok": null,
|
| 122 |
+
"reply_first_160": "```python\\n\\ndef safe_eval(expr: str) -> int:\\n # Remove spaces from the expression\\n expr = expr.replace(' ', '')\\n \\n # Define operator precedence"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"prompt": "Write a Python function `def dedupe_preserve_order(items: li",
|
| 126 |
+
"ast_ok": null,
|
| 127 |
+
"compile_ok": null,
|
| 128 |
+
"reply_first_160": "```python\\n seen = set()\\n result = []\\n for item in items:\\n if item not in seen:\\n seen.add(item)\\n result.append(item)\\"
|
| 129 |
+
}
|
| 130 |
+
]
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"section": "security_mcq",
|
| 134 |
+
"error": "ValueError(\"Bad split: train. Available splits: ['test']\")",
|
| 135 |
+
"skipped": true
|
| 136 |
+
}
|
| 137 |
+
]
|
| 138 |
+
}
|