How to use from
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"
Quick Links

Ki Complete 7B

KvcHub's larger code autocomplete model. It writes the suggestion as you type in your editor, running on your own computer, and it's the most accurate model in the Ki Complete extension for VS Code and editors built on it (such as Antigravity). The smaller Ki Complete 1.5B is about 4 times quicker and stays the default; choose the 7B if accuracy matters more to you than speed and your computer has 16 GB of memory or more.

Ki Complete 7B is Qwen2.5-Coder-7B fine-tuned by KvcHub for editor moments: finish the line you're typing and stop, write the block when a line opens one, write the next line on a fresh line, and write nothing when nothing is missing.

Get the extension: in VS Code, install Ki Complete from the Visual Studio Marketplace; in Antigravity or any editor that uses Open VSX, install Ki Complete from Open VSX (kvchub.ki-complete, published by KvcHub). Then pick Ki Complete 7B from the Ki status bar menu, under Model (version 0.3.0 and later). More at kvchub.com.

File What it is
ki-complete-7b-q8_0.gguf The model for llama.cpp (Q8_0, 8.1 GB, about 9 GB of memory)
adapter/ The LoRA (rank 64) for use with Hugging Face PEFT on top of Qwen/Qwen2.5-Coder-7B
LICENSE Apache-2.0

Use

With llama.cpp directly:

llama-server -hf KvcHub/Ki-Complete-7B:Q8_0 --port 8012 -b 1024 -ub 1024 --cache-reuse 256
curl http://127.0.0.1:8012/infill -d '{"input_prefix": "def add(a, b):\n", "prompt": "    ", "input_suffix": "\n", "n_predict": 64}'

The prompt format is Qwen2.5-Coder's fill-in-the-middle, exactly as llama.cpp's /infill builds it: <|repo_name|>myproject\n<|file_sep|>filename\n<|fim_prefix|>{code before the cursor}<|fim_suffix|>{code after}<|fim_middle|>; pieces of other files can go before the last <|file_sep|> as <|file_sep|>{name}\n{code}. The model ends its answer with <|endoftext|> or <|fim_pad|>.

With PEFT:

from transformers import AutoModelForCausalLM
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-7B")
model = PeftModel.from_pretrained(base, "KvcHub/Ki-Complete-7B", subfolder="adapter")

Results

On tasks it never trained on, through Ki Complete's own suggestion logic, on llama.cpp (Q8_0, Apple M5 Pro):

Qwen2.5-Coder-7B Ki Complete 7B Ki Complete 1.5B
Real code (700 spots, two halves): rest of the line exactly right 47.4% / 36.6% 49.7% / 37.7% 43.1% / 35.7%
Same, similarity to the right answer 77.7% / 70.3% 78.8% / 72.1%
Same, with pieces of related files as context 50.0% / 41.7% 52.9% / 41.7% 45.1% / 38.9%
Answers padded with extra lines nobody asked for 42% 4% 3%
Tokens written per suggestion 24 11 11
HumanEval-Infilling, one missing line (1,033): tests pass 94.6% 95.0% 89.4%
HumanEval-Infilling, several missing lines (1,000): tests pass 54.1% 53.5% 53.4%
HumanEval-Infilling, gap starting mid-line (164): tests pass 48.2% 46.3% 40.9%
Typical wait for a suggestion on real code 1.18 s 1.00 s 0.23 s
Typical wait with related files as context 5.2 s 4.5 s 1.1 s

The real-code spots come from KvcHub's own projects (Python, JavaScript, HTML, shell). While typing on the same line, the server reuses its work, so suggestions after the first are much quicker. Because the first suggestion with related files as context takes several seconds, the Ki Complete extension leaves that context off for this model unless you turn it on.

Training

  • Examples: the same 120,000 editor moments as Ki Complete 1.5B, in exactly the format llama.cpp sends: 41% part-way through a line, 35% on a fresh line, 9% a gap of up to three lines, 15% where nothing is missing. A quarter include pieces of other files from the same project.
  • Code: permissively licensed files (MIT, Apache-2.0, BSD, ISC and similar) in 15 languages from codeparrot/github-code-clean, plus about 10% from KvcHub's own projects (only files that parse; the test files and near-copies of them excluded).
  • Method: LoRA rank 64 on every attention and MLP layer (161M trainable parameters), loss only on the missing code, 396 steps over 10.8 hours on an Apple M5 Pro (PyTorch, then MLX), about 20,000 examples seen. Validation loss on projects never trained on: 0.449 before, 0.381 after.
  • Credentials: the training files were scanned for keys and tokens before training. The Ki Complete extension also never suggests a key-shaped string that isn't already in your file.

Limits

  • Slower than Ki Complete 1.5B: about 1 second for a fresh suggestion on an Apple M5 Pro, and more on older computers.
  • Trained to finish lines and stop, so it does slightly worse than the base model when asked to fill gaps that start and end at random points mid-line.
  • Mostly English code and comments.

License and credits

Apache-2.0. Ki Complete 7B is a modified version of Qwen2.5-Coder-7B by the Qwen team (Apache-2.0): KvcHub fine-tuned it with a LoRA, merged into the GGUF weights. Training data from codeparrot/github-code-clean (permissively licensed files only); evaluation with HumanEval-Infilling (OpenAI, MIT); runs with llama.cpp (MIT).

Security & KvcHub Model Comparison

See SECURITY.md for the full threat model, deployment checklist, and vulnerability reporting policy.

KvcHub Model Security Comparison

Model Task Params Weight Format (Pickle-Free) Runtime Isolation Training Provenance Data / Secret Hygiene Supply-Chain & Checksums License
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
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
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
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
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)
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)
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
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
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
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

KvcHub Model Benchmark Comparison

1. PII Redaction Family (Kava-Privacy)

Model Params Languages Entities Architecture Primary Benchmark Result False-Positive / Hard-Neg Check Speed (Apple Silicon)
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)
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)
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)

2. Conversational & Reasoning LM Family (KaiLu)

Model Params Architecture Context (Trained) Footprint (Recommended) Speed (Apple Silicon) Reported Benchmarks
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)
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)
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
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%
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)

3. Code Autocomplete Family (Ki-Complete) โ€” Measured on Apple M5 Pro (llama.cpp, Q8_0)

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)
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
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
Downloads last month
32
GGUF
Model size
8B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for KvcHub/Ki-Complete-7B

Base model

Qwen/Qwen2.5-7B
Finetuned
(126)
this model

Dataset used to train KvcHub/Ki-Complete-7B

Collection including KvcHub/Ki-Complete-7B