/ Модель

Характеристики

Лицензия
Apache 2.0
Базовая модель
Qwen2.5-Coder-7B
Библиотека
gguf
Опубликована
19 ноя 2026

Ki-Complete-7B

Генерация текстаТекст → текст
192скачиваний за 30 дней0лайковвеса обновлены25 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Дообученная KvcHub модель Qwen2.5-Coder-7B для локального автодополнения кода в редакторе.

Ki Complete 7B — модель автодополнения кода от KvcHub, созданная дообучением Qwen2.5-Coder-7B с помощью LoRA ранга 64. Она предназначена для локальных подсказок в редакторе: завершает текущую строку, продолжает блок кода, предлагает следующую строку или оставляет ответ пустым, если продолжение не требуется. Модель использует формат заполнения пропусков Qwen2.5-Coder и может учитывать фрагменты других файлов проекта. В репозитории есть вариант GGUF Q8_0 для llama.cpp и адаптер для Hugging Face PEFT; вариант GGUF занимает около 8,1 ГБ, для запуска рекомендуется компьютер с 16 ГБ памяти или больше. Модель лицензирована по Apache-2.0.

Обучение проводилось на 120 тысячах примеров редакторных подсказок, включая код из 15 языков программирования; в README также указано, что данные преимущественно содержат английский код и комментарии. По опубликованной оценке KvcHub, модель несколько точнее исходной Qwen2.5-Coder-7B на тестах автодополнения из собственных проектов разработчика. Она медленнее Ki Complete 1.5B и рассчитана на завершение строк и блоков, поэтому может хуже справляться с произвольными пропусками, начинающимися и заканчивающимися посреди строки.

Сценарии применения

  • завершение текущей строки кода в редакторе
  • генерация продолжения открытого блока кода
  • предложение следующей строки кода
  • автодополнение с контекстом из других файлов проекта
  • локальная генерация подсказок кода через llama.cpp

Ограничения

Модель медленнее Ki Complete 1.5B и требует больше памяти; README рекомендует компьютер с 16 ГБ памяти или больше. Она обучена преимущественно на английском коде и комментариях и может хуже работать с произвольными пропусками посреди строки.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

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.

FileWhat it is
ki-complete-7b-q8_0.ggufThe 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
LICENSEApache-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-7BKi Complete 7BKi Complete 1.5B
Real code (700 spots, two halves): rest of the line exactly right47.4% / 36.6%49.7% / 37.7%43.1% / 35.7%
Same, similarity to the right answer77.7% / 70.3%78.8% / 72.1%
Same, with pieces of related files as context50.0% / 41.7%52.9% / 41.7%45.1% / 38.9%
Answers padded with extra lines nobody asked for42%4%3%
Tokens written per suggestion241111
HumanEval-Infilling, one missing line (1,033): tests pass94.6%95.0%89.4%
HumanEval-Infilling, several missing lines (1,000): tests pass54.1%53.5%53.4%
HumanEval-Infilling, gap starting mid-line (164): tests pass48.2%46.3%40.9%
Typical wait for a suggestion on real code1.18 s1.00 s0.23 s
Typical wait with related files as context5.2 s4.5 s1.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

ModelTaskParamsWeight Format (Pickle-Free)Runtime IsolationTraining ProvenanceData / Secret HygieneSupply-Chain & ChecksumsLicense
Kava-Privacy-30MPII Redaction (36 langs, 30 entities)30.46Msafetensors (Yes)100% local / offline (Transformers, CPU/MPS/CUDA)100% from scratchSynthetic 36-lang + CC-BY-4.0/Apache-2.0 synthetic PII; no real user PII; zero-hallucination span taggingHF LFS SHA-256 + eval_results.jsonApache-2.0
Kava-Privacy-2.01M-mlxPII Redaction (EN, 16 entities)2.01Msafetensors (Yes)100% local / offline (Apple MLX)100% from scratchFully synthetic training data; zero cloud callsHF LFS SHA-256 (kava_privacy.py custom loader)MIT
Kava-Privacy-636k-mlxPII Redaction (EN, 9 entities)636Ksafetensors (Yes)100% local / offline (Apple MLX)100% from scratchFully synthetic training data; zero cloud callsHF LFS SHA-256 (kava_privacy.py custom loader)MIT
KaiLu-3-ProConversational LM1.03Bsafetensors + GGUF (Yes)100% local / offline (llama.cpp, Ollama, Transformers)100% from scratchPublic open corpora + DPO (UltraFeedback, HelpSteer2, HH-RLHF); no formal red-team auditExplicit SHA256SUMS + HF LFS SHA-256Apache-2.0
KaiLu-3-MiniConversational LM329Msafetensors + GGUF (Yes)100% local / offline (Transformers, llama.cpp)100% from scratchPublic open corpora + DPO (UltraFeedback, HelpSteer2, HH-RLHF); no formal red-team auditHF LFS SHA-256KaiLu-3 License (Non-commercial)
KaiLu-WebIn-Browser Chat LM329M / 1.03BSplit GGUF (Yes)Browser WebAssembly sandbox (wllama); zero server callsPackaged from KaiLu-3 / 3-ProSame as KaiLu-3 / 3-Pro; browser COOP/COEP isolationHF LFS SHA-256Per-file (Apache-2.0 / KaiLu-3)
KaiLu-2-2B-GGUFReasoning & Chat LM1.90BGGUF F16–Q2_K (Yes)100% local / offline (llama.cpp)100% from scratch (distilled text mix)Public open datasets + synthetic reasoning; no formal safety red-teamingHF LFS SHA-256 + stats.jsonApache-2.0
KaiLu-1-933MMobile / Desktop Chat LM933Msafetensors + GGUF (Yes)100% local / offline (Apple MLX / mobile GGUF)100% from scratchOffline on-device execution; legacy v1 releaseHF LFS SHA-256Apache-2.0
Ki-Complete-7BCode 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-7BPermissive-license code only; pre-training secret/key scan + extension blocks novel key-shaped stringsHF LFS SHA-256Apache-2.0
Ki-Complete-1.5BCode 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.5BPermissive-license code only; pre-training secret/key scan + extension blocks novel key-shaped stringsHF LFS SHA-256Apache-2.0

KvcHub Model Benchmark Comparison

1. PII Redaction Family (Kava-Privacy)

ModelParamsLanguagesEntitiesArchitecturePrimary Benchmark ResultFalse-Positive / Hard-Neg CheckSpeed (Apple Silicon)
Kava-Privacy-30M30.46M3630 (61 BIO)ModernBERT (from scratch)Held-out test Exact Span F1 0.9146 (P 0.8952 / R 0.9348)Hard-Neg FPR: 0.033.3 docs/sec (MPS)
Kava-Privacy-2.01M-mlx2.01M1 (EN)16MLX Encoder (from scratch)Adversarial 100% (12/12) · Zero-shot OOD 87.5%0% on physics/subnet/legal/ticker suite2.2 ms / doc (MLX)
Kava-Privacy-636k-mlx636K1 (EN)94L MLX Encoder (from scratch)Synthetic val token acc 99.6%–100.0% across 9 tagsSynthetic val O-tag acc 100.0%Sub-ms (2.4 MB weights)

2. Conversational & Reasoning LM Family (KaiLu)

ModelParamsArchitectureContext (Trained)Footprint (Recommended)Speed (Apple Silicon)Reported Benchmarks
KaiLu-3-Pro1.03BLFM2 Hybrid (36L)1,024 (51K cfg)1.09 GB (Q8_0 GGUF) / 2.07 GB (bf16)Local CPU/Metal/OllamaBenchmarks intentionally omitted (MMLU/ARC/HumanEval/GSM8K included in SFT; evaluate on unseen data)
KaiLu-3-Mini329MLFM2 Hybrid (24L)1,024model.safetensors + kailu-3.ggufLocal CPU/MetalPretrained on 6.6B tokens + 460K SFT + 60K DPO pairs (no formal eval table published)
KaiLu-Web329M / 1.03BLFM2 Hybrid (wllama WASM)1,024351 MB (3-Q8_0) / 623 MB (3-Pro-Q4_K_M)In-browser WASMBrowser-packaged builds of KaiLu-3-Mini & KaiLu-3-Pro
KaiLu-2-2B-GGUF1.90BLFM2 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-933M933MMLX 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)

ModelParamsBase ModelHumanEval-Infill (1-line)HumanEval-Infill (multi-line)HumanEval-Infill (mid-line)Real Code Exact Line (no ctx / w/ ctx)Unwanted Extra LinesLatency (no ctx / w/ ctx)
Ki-Complete-7B7BQwen2.5-Coder-7B95.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.5B1.5BQwen2.5-Coder-1.5B89.4%53.4%40.9%44.0% / 36.0% · 45.1% / 38.6%3% (vs 65% base)0.23 s / 1.1 s

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · gguf

Можно запустить

Подбираем GPU…

Ревизия весов
328bdeb

0 моделей