Text Generation
GGUF
Safetensors
English
code
code-completion
autocomplete
fill-in-the-middle
llama.cpp
lora
kvchub
ki-complete
conversational
Instructions to use KvcHub/Ki-Complete-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use KvcHub/Ki-Complete-7B with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf KvcHub/Ki-Complete-7B:Q8_0 # Run inference directly in the terminal: llama cli -hf KvcHub/Ki-Complete-7B:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf KvcHub/Ki-Complete-7B:Q8_0 # Run inference directly in the terminal: llama cli -hf KvcHub/Ki-Complete-7B:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf KvcHub/Ki-Complete-7B:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf KvcHub/Ki-Complete-7B:Q8_0
Use Docker
docker model run hf.co/KvcHub/Ki-Complete-7B:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use KvcHub/Ki-Complete-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KvcHub/Ki-Complete-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KvcHub/Ki-Complete-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/KvcHub/Ki-Complete-7B:Q8_0
- Ollama
How to use KvcHub/Ki-Complete-7B with Ollama:
ollama run hf.co/KvcHub/Ki-Complete-7B:Q8_0
- Unsloth Desktop
- Pi
How to use KvcHub/Ki-Complete-7B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf KvcHub/Ki-Complete-7B:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "KvcHub/Ki-Complete-7B:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use KvcHub/Ki-Complete-7B with Docker Model Runner:
docker model run hf.co/KvcHub/Ki-Complete-7B:Q8_0
- Lemonade
How to use KvcHub/Ki-Complete-7B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull KvcHub/Ki-Complete-7B:Q8_0
Run and chat with the model
lemonade run user.Ki-Complete-7B-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use KvcHub/Ki-Complete-7B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf KvcHub/Ki-Complete-7B:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default KvcHub/Ki-Complete-7B:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use KvcHub/Ki-Complete-7B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf KvcHub/Ki-Complete-7B:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "KvcHub/Ki-Complete-7B:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Add SECURITY.md with KvcHub security & benchmark comparison tables
Browse files- SECURITY.md +81 -0
SECURITY.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Security Policy — `KvcHub/Ki-Complete-7B`
|
| 2 |
+
|
| 3 |
+
**Model Role:** 7B Local Fill-in-the-Middle Code Autocomplete Model (Qwen2.5-Coder-7B LoRA + GGUF)
|
| 4 |
+
**Organization:** [KvcHub](https://huggingface.co/KvcHub) ([kvchub.com](https://kvchub.com))
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
## 1. Model-Specific Security Posture & Known Risks
|
| 9 |
+
|
| 10 |
+
- **Code Security:** Autocomplete suggestions can occasionally introduce insecure coding patterns (e.g., SQL injection, weak crypto, command injection). Always review completions and run linters/SAST.
|
| 11 |
+
- **Secret Hygiene:** Training data (permissively licensed `codeparrot/github-code-clean` + KvcHub repos) was scanned for credentials/keys prior to training, and the Ki Complete IDE extension blocks suggesting novel key-shaped strings.
|
| 12 |
+
- **Local Endpoint Exposure:** When running `llama-server` manually, keep it bound strictly to `127.0.0.1` so local network peers cannot query your code context.
|
| 13 |
+
|
| 14 |
+
## 2. Recommended Secure Deployment
|
| 15 |
+
|
| 16 |
+
- Runs 100% locally via `llama.cpp` (`Q8_0` GGUF) or PEFT (`adapter/adapter_model.safetensors`, pickle-free).
|
| 17 |
+
- Pair with **[KvcHub/Kava-Privacy-30M](https://huggingface.co/KvcHub/Kava-Privacy-30M)** to scrub API keys/PII before sharing logs or prompts.
|
| 18 |
+
|
| 19 |
+
## 3. Weight Integrity & Serialization Safety
|
| 20 |
+
|
| 21 |
+
- All KvcHub model weights are distributed in **pickle-free formats** (`safetensors` and/or `GGUF`) to prevent arbitrary code execution during deserialization.
|
| 22 |
+
- All KvcHub models are designed for **100% offline, local execution** (Apple Silicon MLX, `llama.cpp`, Ollama, Hugging Face `transformers`, or in-browser WebAssembly) with **zero built-in telemetry or remote API calls**.
|
| 23 |
+
- Before production deployment, verify file integrity against Hugging Face Git LFS SHA-256 digests (and `SHA256SUMS` where provided).
|
| 24 |
+
|
| 25 |
+
## 4. Reporting a Security Vulnerability
|
| 26 |
+
|
| 27 |
+
If you discover a security issue, weight/file integrity problem, credential leakage, or safety vulnerability in `KvcHub/Ki-Complete-7B` or any KvcHub release, please report it responsibly:
|
| 28 |
+
|
| 29 |
+
- **Email:** [hello@kvchub.com](mailto:hello@kvchub.com)
|
| 30 |
+
- **Include:** Repository ID (`KvcHub/Ki-Complete-7B`), file name / commit hash, reproduction steps, and potential impact.
|
| 31 |
+
- Please allow reasonable time for investigation and remediation before public disclosure.
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
## 5. Organization-Wide Security Comparison
|
| 36 |
+
|
| 37 |
+
### KvcHub Model Security Comparison
|
| 38 |
+
|
| 39 |
+
| Model | Task | Params | Weight Format (Pickle-Free) | Runtime Isolation | Training Provenance | Data / Secret Hygiene | Supply-Chain & Checksums | License |
|
| 40 |
+
|---|---|---:|---|---|---|---|---|---|
|
| 41 |
+
| **[Kava-Privacy-30M](https://huggingface.co/KvcHub/Kava-Privacy-30M)** | PII Redaction (36 langs, 30 entities) | 30.46M | `safetensors` (Yes) | 100% local / offline (Transformers, CPU/MPS/CUDA) | 100% from scratch | Synthetic 36-lang + CC-BY-4.0/Apache-2.0 synthetic PII; no real user PII; zero-hallucination span tagging | HF LFS SHA-256 + `eval_results.json` | Apache-2.0 |
|
| 42 |
+
| **[Kava-Privacy-2.01M-mlx](https://huggingface.co/KvcHub/Kava-Privacy-2.01M-mlx)** | PII Redaction (EN, 16 entities) | 2.01M | `safetensors` (Yes) | 100% local / offline (Apple MLX) | 100% from scratch | Fully synthetic training data; zero cloud calls | HF LFS SHA-256 (`kava_privacy.py` custom loader) | MIT |
|
| 43 |
+
| **[Kava-Privacy-636k-mlx](https://huggingface.co/KvcHub/Kava-Privacy-636k-mlx)** | PII Redaction (EN, 9 entities) | 636K | `safetensors` (Yes) | 100% local / offline (Apple MLX) | 100% from scratch | Fully synthetic training data; zero cloud calls | HF LFS SHA-256 (`kava_privacy.py` custom loader) | MIT |
|
| 44 |
+
| **[KaiLu-3-Pro](https://huggingface.co/KvcHub/KaiLu-3-Pro)** | Conversational LM | 1.03B | `safetensors` + `GGUF` (Yes) | 100% local / offline (llama.cpp, Ollama, Transformers) | 100% from scratch | Public open corpora + DPO (UltraFeedback, HelpSteer2, HH-RLHF); no formal red-team audit | Explicit `SHA256SUMS` + HF LFS SHA-256 | Apache-2.0 |
|
| 45 |
+
| **[KaiLu-3-Mini](https://huggingface.co/KvcHub/KaiLu-3-Mini)** | Conversational LM | 329M | `safetensors` + `GGUF` (Yes) | 100% local / offline (Transformers, llama.cpp) | 100% from scratch | Public open corpora + DPO (UltraFeedback, HelpSteer2, HH-RLHF); no formal red-team audit | HF LFS SHA-256 | KaiLu-3 License (Non-commercial) |
|
| 46 |
+
| **[KaiLu-Web](https://huggingface.co/KvcHub/KaiLu-Web)** | In-Browser Chat LM | 329M / 1.03B | Split `GGUF` (Yes) | Browser WebAssembly sandbox (`wllama`); zero server calls | Packaged from KaiLu-3 / 3-Pro | Same as KaiLu-3 / 3-Pro; browser COOP/COEP isolation | HF LFS SHA-256 | Per-file (Apache-2.0 / KaiLu-3) |
|
| 47 |
+
| **[KaiLu-2-2B-GGUF](https://huggingface.co/KvcHub/KaiLu-2-2B-GGUF)** | Reasoning & Chat LM | 1.90B | `GGUF` F16–Q2_K (Yes) | 100% local / offline (llama.cpp) | 100% from scratch (distilled text mix) | Public open datasets + synthetic reasoning; no formal safety red-teaming | HF LFS SHA-256 + `stats.json` | Apache-2.0 |
|
| 48 |
+
| **[KaiLu-1-933M](https://huggingface.co/KvcHub/KaiLu-1-933M)** | Mobile / Desktop Chat LM | 933M | `safetensors` + `GGUF` (Yes) | 100% local / offline (Apple MLX / mobile GGUF) | 100% from scratch | Offline on-device execution; legacy v1 release | HF LFS SHA-256 | Apache-2.0 |
|
| 49 |
+
| **[Ki-Complete-7B](https://huggingface.co/KvcHub/Ki-Complete-7B)** | Code Autocomplete (FIM) | 7B (LoRA r=64) | `GGUF` + PEFT `safetensors` (Yes) | 100% local / offline (`llama-server` on `127.0.0.1`) | Fine-tuned on `Qwen2.5-Coder-7B` | Permissive-license code only; pre-training secret/key scan + extension blocks novel key-shaped strings | HF LFS SHA-256 | Apache-2.0 |
|
| 50 |
+
| **[Ki-Complete-1.5B](https://huggingface.co/KvcHub/Ki-Complete-1.5B)** | Code Autocomplete (FIM) | 1.5B (LoRA r=64) | `GGUF` + PEFT `safetensors` (Yes) | 100% local / offline (`llama-server` on `127.0.0.1`) | Fine-tuned on `Qwen2.5-Coder-1.5B` | Permissive-license code only; pre-training secret/key scan + extension blocks novel key-shaped strings | HF LFS SHA-256 | Apache-2.0 |
|
| 51 |
+
|
| 52 |
+
---
|
| 53 |
+
|
| 54 |
+
## 6. Organization-Wide Benchmark Comparison
|
| 55 |
+
|
| 56 |
+
### KvcHub Model Benchmark Comparison
|
| 57 |
+
|
| 58 |
+
#### 1. PII Redaction Family (`Kava-Privacy`)
|
| 59 |
+
|
| 60 |
+
| Model | Params | Languages | Entities | Architecture | Primary Benchmark Result | False-Positive / Hard-Neg Check | Speed (Apple Silicon) |
|
| 61 |
+
|---|---:|---:|---:|---|---|---|---|
|
| 62 |
+
| **[Kava-Privacy-30M](https://huggingface.co/KvcHub/Kava-Privacy-30M)** | 30.46M | **36** | **30** (61 BIO) | ModernBERT (from scratch) | Held-out test Exact Span **F1 0.9146** (P 0.8952 / R 0.9348) | Hard-Neg FPR: **0.0** | **33.3 docs/sec** (MPS) |
|
| 63 |
+
| **[Kava-Privacy-2.01M-mlx](https://huggingface.co/KvcHub/Kava-Privacy-2.01M-mlx)** | 2.01M | 1 (EN) | 16 | MLX Encoder (from scratch) | Adversarial 100% (12/12) · Zero-shot OOD 87.5% | 0% on physics/subnet/legal/ticker suite | 2.2 ms / doc (MLX) |
|
| 64 |
+
| **[Kava-Privacy-636k-mlx](https://huggingface.co/KvcHub/Kava-Privacy-636k-mlx)** | 636K | 1 (EN) | 9 | 4L MLX Encoder (from scratch) | Synthetic val token acc 99.6%–100.0% across 9 tags | Synthetic val O-tag acc 100.0% | Sub-ms (2.4 MB weights) |
|
| 65 |
+
|
| 66 |
+
#### 2. Conversational & Reasoning LM Family (`KaiLu`)
|
| 67 |
+
|
| 68 |
+
| Model | Params | Architecture | Context (Trained) | Footprint (Recommended) | Speed (Apple Silicon) | Reported Benchmarks |
|
| 69 |
+
|---|---:|---|---|---|---|---|
|
| 70 |
+
| **[KaiLu-3-Pro](https://huggingface.co/KvcHub/KaiLu-3-Pro)** | 1.03B | LFM2 Hybrid (36L) | 1,024 (51K cfg) | 1.09 GB (`Q8_0` GGUF) / 2.07 GB (bf16) | Local CPU/Metal/Ollama | Benchmarks intentionally omitted (MMLU/ARC/HumanEval/GSM8K included in SFT; evaluate on unseen data) |
|
| 71 |
+
| **[KaiLu-3-Mini](https://huggingface.co/KvcHub/KaiLu-3-Mini)** | 329M | LFM2 Hybrid (24L) | 1,024 | `model.safetensors` + `kailu-3.gguf` | Local CPU/Metal | Pretrained on 6.6B tokens + 460K SFT + 60K DPO pairs (no formal eval table published) |
|
| 72 |
+
| **[KaiLu-Web](https://huggingface.co/KvcHub/KaiLu-Web)** | 329M / 1.03B | LFM2 Hybrid (`wllama` WASM) | 1,024 | 351 MB (`3-Q8_0`) / 623 MB (`3-Pro-Q4_K_M`) | In-browser WASM | Browser-packaged builds of KaiLu-3-Mini & KaiLu-3-Pro |
|
| 73 |
+
| **[KaiLu-2-2B-GGUF](https://huggingface.co/KvcHub/KaiLu-2-2B-GGUF)** | 1.90B | LFM2 Hybrid (104L) | 1,024 (4K GGUF) | 1.17 GB (`Q4_K_M`, 1.51 GB RAM) | **107 tok/s** GPU / 64 tok/s CPU (`Q4_K_M`) | Held-out PPL **11.003** (F16) / **11.077** (`Q4_K_M`); 8th-grade math **75.0%**; Random math **43.3%**; Unseen-vocab IQ **72.5%** |
|
| 74 |
+
| **[KaiLu-1-933M](https://huggingface.co/KvcHub/KaiLu-1-933M)** | 933M | MLX Transformer | — | 546 MB mobile GGUF (1.15 GB RAM) | **260+ tok/s** (Apple Silicon) | Legacy v1 baseline (no formal benchmark suite published) |
|
| 75 |
+
|
| 76 |
+
#### 3. Code Autocomplete Family (`Ki-Complete`) — Measured on Apple M5 Pro (`llama.cpp`, `Q8_0`)
|
| 77 |
+
|
| 78 |
+
| Model | Params | Base Model | HumanEval-Infill (1-line) | HumanEval-Infill (multi-line) | HumanEval-Infill (mid-line) | Real Code Exact Line (no ctx / w/ ctx) | Unwanted Extra Lines | Latency (no ctx / w/ ctx) |
|
| 79 |
+
|---|---:|---|---:|---:|---:|---:|---:|---:|
|
| 80 |
+
| **[Ki-Complete-7B](https://huggingface.co/KvcHub/Ki-Complete-7B)** | 7B | Qwen2.5-Coder-7B | **95.0%** | **53.5%** | **46.3%** | **49.7% / 37.7%** · **52.9% / 41.7%** | 4% (vs 42% base) | 1.00 s / 4.5 s |
|
| 81 |
+
| **[Ki-Complete-1.5B](https://huggingface.co/KvcHub/Ki-Complete-1.5B)** | 1.5B | Qwen2.5-Coder-1.5B | 89.4% | 53.4% | 40.9% | 44.0% / 36.0% · 45.1% / 38.6% | **3%** (vs 65% base) | **0.23 s / 1.1 s** |
|