Run this model with HF Jobs

Run KvcHub/Kava-Privacy-30M on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/KvcHub/Kava-Privacy-30M. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/KvcHub/Kava-Privacy-30M on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Kava-Privacy-30M / README.md
KVC899's picture
Clean README license and links for Kava-Privacy-30M
7da13f9 verified
|
Raw History Blame Contribute Delete
20.2 kB
---
license: other
license_name: kava-privacy-30m-license
license_link: https://huggingface.co/KvcHub/Kava-Privacy-30M/blob/main/LICENSE
library_name: transformers
pipeline_tag: token-classification
datasets:
- KvcHub/Kava-Privacy-30M-Dataset
language:
- en
- es
- fr
- de
- it
- pt
- nl
- pl
- ru
- uk
- tr
- ar
- he
- fa
- hi
- bn
- ur
- ta
- zh
- ja
- ko
- vi
- th
- id
- ms
- tl
- sv
- no
- da
- fi
- cs
- ro
- hu
- el
- sw
tags:
- pii
- pii-redaction
- privacy
- ner
- token-classification
- secrets-detection
- modernbert
- multilingual
- from-scratch
- kava-privacy
model-index:
- name: Kava-Privacy-30M
results:
- task:
type: token-classification
name: Multilingual PII Redaction (36 Languages, 30 Entities)
dataset:
name: Kava-Privacy-30M-Dataset (test)
type: KvcHub/Kava-Privacy-30M-Dataset
metrics:
- type: f1
value: 0.9094
name: Exact Span F1
- type: precision
value: 0.8956
name: Exact Span Precision
- type: recall
value: 0.9236
name: Exact Span Recall
---
# Kava-Privacy-30M
**Kava-Privacy-30M** is a **30.46M-parameter** multilingual PII & Secrets redaction encoder trained **100% from scratch** (custom 36-language tokenizer + randomly initialized ModernBERT encoder weights) for deterministic, zero-hallucination PII detection and redaction across **36 languages** and **30 entity classes**.
> **Training Dataset:** Kava-Privacy-30M was trained exclusively on **[KvcHub/Kava-Privacy-30M-Dataset](https://huggingface.co/KvcHub/Kava-Privacy-30M-Dataset)** (361,526 examples across 36 languages, hosted separately as a dataset repository).
## Model Summary
| Property | Value |
|---|---|
| **Architecture** | `ModernBertForTokenClassification` (10 layers, hidden 384, 6 heads, GeGLU 1024, RoPE) |
| **Parameters** | **30,457,021** (30.46M) |
| **Initialization** | **100% from scratch** (no pretrained weights) |
| **Tokenizer** | Custom 32,768-vocab 36-language Byte-Level BPE with individual digit splitting |
| **Training Dataset** | [KvcHub/Kava-Privacy-30M-Dataset](https://huggingface.co/KvcHub/Kava-Privacy-30M-Dataset) |
| **Training Curriculum** | 2-hour wall-clock run (121.4 min, 34.6M tokens total): Stage 1 Multilingual MLM Pretraining (30 min) -> Stage 2 BIO Token Classification (90 min) |
| **Hardware** | Single Apple M5 Pro (24 GB unified memory, zero disk swap) |
| **Languages** | 36 languages across 12 writing systems |
| **Entity Classes** | 30 PII & Secrets categories (61 BIO labels) |
## Held-Out Test Benchmarks (v2 — 5 Hours Total From-Scratch Training)
Evaluated on **11,003** held-out test documents (**61,107** PII spans across 36 languages, including free-form conversational prose and **1,305** adversarial zero-PII documents) using strict **exact character-span match** (`0.0–1.0` scale where `1.00 = 100%`):
- **Overall Exact Span F1:** **`90.94%`** (`0.9094`) · **Precision:** **`89.56%`** · **Recall:** **`92.36%`**
- **Unseen Real-World Forms (`nvidia/Nemotron-PII`, 10,045 spans):** **`95.45%` Exact Span F1** (`94.42%` P / **`96.51%`** R)
- **Long Legal Contracts (`gretelai/synthetic_pii_finance_multilingual`, 6,921 spans):** **`72.72%` Exact Span F1** (+6.7 pts over v1!)
- **Hard-Negative & Adversarial False Positive Rate (1,305 zero-PII docs — subnets `255.255.255.0`, physics constants `299,792,458 m/s`, `Rule 12(b)(6)`, `$182.50`, CVEs, SKUs):** **`0.00%`** (`0.0000` — zero false redactions!)
- **Natural-Prose & Adversarial Live Probes:** **`10/10` (100% Pass)** across English, French, Spanish, Chinese, bare IPs, `postgres://` URIs, passwords, and API keys
- **High-Risk Secrets & IDs:** `DB_CONNECTION` **100.0%** · `CRYPTO_WALLET` **99.9%** · `TAX_ID` **99.8%** · `PASSPORT` **99.2%** · `MEDICAL_ID` **99.5%** · `AUTH_TOKEN` **99.4%** · `API_KEY` **98.5%** · `EMAIL` **98.1%**
- **Throughput:** **`37.2 docs/sec`** (MPS) / **`12 ms p50`** (CPU) · **Model Size:** **`116 MB`** (`30.46M` params)
## Tiny Footprint, Massive Punch — Industry Comparison
| Solution | Size / Footprint | Languages | PII & Secret Scope | 100% Offline? | Hallucination Risk | Speed | Key Benchmark / Notes |
|---|---:|---:|---|---|---|---|---|
| **[KvcHub/Kava-Privacy-30M](https://huggingface.co/KvcHub/Kava-Privacy-30M)** (v2) | **30.46M (116 MB)** | **36 (12 scripts)** | **30 classes** (personal, financial, medical, gov IDs + API keys, JWTs, DB URIs) | **Yes** | **None** (BIO span tagging) | **12 ms CPU / 27 ms MPS** | **`90.94%`** 36-lang Exact F1 · **`95.45%` F1** on Nemotron-PII · **`0.00%`** FPR on 1,305 adversarial hard negs · 100% from scratch |
| **OpenAI GPT-4o** *(cloud LLM redaction)* | Cloud-only (100B+ params) | Broad multilingual | Prompt-defined | **No** *(sends raw PII to cloud)* | **Yes** (generative) | ~500 ms–3+ s + API fee | Strong context, but creates a Cloud PII Paradox & high latency/cost |
| **`iiiorg/piiranha-v1`** *(mDeBERTa-v3)* | 278M (~9× larger, 1.1 GB) | 6 European | 17 PII classes | Yes | None | ~65 ms/doc MPS | `57.1%` 36-lang / `52.8%` 6-Eur / `33.3%` HN FPR on our PolyPII-36 benchmark |
| **`nvidia/gliner-PII`** | ~160M–300M (~5–10× larger) | Primarily EN | Zero-shot | Yes | None | Tens of ms (GPU) | `87.0%` reported strict F1 on NVIDIA internal suite |
| **Microsoft Presidio** | Lightweight | Primarily EN | Regex + spaCy NER | Yes | None | <10–50 ms | Strong on rigid regex; ~30%–50% F1 on unstructured prose |
### Research Papers
Read all 5 accompanying papers (Markdown + arXiv-ready LaTeX + 300-DPI figures) at **[`KvcHub/KvcHub-Research-Papers`](https://huggingface.co/datasets/KvcHub/KvcHub-Research-Papers)**.
## Live Redaction Examples
**[en]**
- Input: `Hi, I'm Elena Vance (DOB 1989-04-12). Email: elena.vance@proton.me, SSN 412-88-9021, API key sk-proj-9kLm2PqR8vTx4YzA7bCdEfGhIjKlMnOpQrSt.`
- Redacted: `Hi, I'm [PERSON] (DOB [DATE_OF_BIRTH]). Email: [EMAIL], SSN [NATIONAL_ID], API key [API_KEY].`
**[es]**
- Input: `Hola, soy Mateo García, correo mateo.garcia@gmail.com, teléfono +34 612 345 678, DNI 48291034K.`
- Redacted: `Hola, soy [PERSON], correo [EMAIL], teléfono [PHONE], DNI [NATIONAL_ID].`
**[zh]**
- Input: `您好,患者张伟,手机号 +86 138 0013 8000,身份证号 110101199001011234,诊断:2型糖尿病。`
- Redacted: `您好,患者[PERSON],手机号 [PHONE],身份证号 [NATIONAL_ID],诊断:[MEDICAL_INFO]。`
**[ar]**
- Input: `مرحباً، الاسم الكامل: عمر المنصور، البريد الإلكتروني: omar.mansour@outlook.com، رقم الهاتف: +971 501 234 5678.`
- Redacted: `مرحباً، الاسم الكامل: [PERSON]، البريد الإلكتروني: [EMAIL]، رقم الهاتف: [PHONE].`
**[ja]**
- Input: `氏名: 佐藤 蓮、住所: 渋谷区道玄坂 24、メールアドレス: ren.sato@icloud.com。`
- Redacted: `氏名: [PERSON]、住所: [ADDRESS]、メールアドレス: [EMAIL]。`
**[hard_neg]**
- Input: `Release v2.14.8 fixes a memory leak in the cache layer and passes 184 unit tests for SKU-90412-XL.`
- Redacted: `Release v2.14.8 fixes a memory leak in the cache layer and passes 184 unit tests for SKU-90412-XL.`
## Quickstart
### Option 1: Using `transformers` pipeline directly
```python
from transformers import pipeline
ner = pipeline(
"token-classification",
model="KvcHub/Kava-Privacy-30M",
aggregation_strategy="simple",
)
print(ner("Contact Alice Smith at alice@example.com or SSN 123-45-6789."))
```
### Option 2: Full Deterministic Redaction with `redactor.py`
```python
from huggingface_hub import hf_hub_download
import importlib.util
path = hf_hub_download("KvcHub/Kava-Privacy-30M", "redactor.py")
spec = importlib.util.spec_from_file_location("redactor", path)
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)
redactor = mod.KavaRedactor.from_pretrained("KvcHub/Kava-Privacy-30M")
out = redactor.redact("Patient John Doe, MRN-4829103, email john@clinic.org, API key sk-proj-abc123...")
print(out["redacted_text"])
print(out["spans"])
```
## Per-Entity Test Performance (30 Classes)
| Entity Type | Precision | Recall | F1 | Support |
|---|---:|---:|---:|---:|
| `PERSON` | 0.7845 | 0.7827 | **0.7836** | 9,032 |
| `USERNAME` | 0.7888 | 0.7897 | **0.7892** | 1,859 |
| `EMAIL` | 0.9764 | 0.9857 | **0.9810** | 4,190 |
| `PHONE` | 0.9137 | 0.9286 | **0.9211** | 3,432 |
| `ADDRESS` | 0.8610 | 0.9426 | **0.8999** | 3,830 |
| `CITY` | 0.6503 | 0.7696 | **0.7049** | 2,561 |
| `POSTAL_CODE` | 0.9380 | 0.9451 | **0.9416** | 1,986 |
| `DATE_OF_BIRTH` | 0.9899 | 0.9866 | **0.9882** | 1,787 |
| `AGE` | 0.9795 | 0.9922 | **0.9858** | 1,157 |
| `NATIONAL_ID` | 0.9820 | 0.9881 | **0.9850** | 1,599 |
| `PASSPORT` | 0.9903 | 0.9927 | **0.9915** | 1,229 |
| `DRIVER_LICENSE` | 0.9858 | 0.9858 | **0.9858** | 1,130 |
| `TAX_ID` | 0.9972 | 0.9991 | **0.9981** | 1,072 |
| `CREDIT_CARD` | 0.9868 | 0.9825 | **0.9847** | 1,145 |
| `CVV_PIN` | 0.9679 | 0.9590 | **0.9635** | 976 |
| `BANK_ACCOUNT` | 0.9534 | 0.9823 | **0.9676** | 1,810 |
| `CRYPTO_WALLET` | 0.9973 | 1.0000 | **0.9986** | 727 |
| `MEDICAL_ID` | 0.9929 | 0.9976 | **0.9953** | 847 |
| `MEDICAL_INFO` | 0.8006 | 0.9802 | **0.8814** | 1,012 |
| `IP_ADDRESS` | 0.9797 | 0.9909 | **0.9852** | 1,752 |
| `MAC_ADDRESS` | 0.9885 | 0.9948 | **0.9916** | 953 |
| `DEVICE_ID` | 0.9938 | 0.9969 | **0.9954** | 971 |
| `URL_SENSITIVE` | 0.9654 | 0.9803 | **0.9728** | 1,624 |
| `PASSWORD` | 0.8613 | 0.9421 | **0.8999** | 1,312 |
| `API_KEY` | 0.9745 | 0.9951 | **0.9847** | 1,421 |
| `AUTH_TOKEN` | 0.9926 | 0.9944 | **0.9935** | 1,078 |
| `DB_CONNECTION` | 1.0000 | 1.0000 | **1.0000** | 1,052 |
| `VEHICLE_ID` | 0.9749 | 0.9953 | **0.9850** | 1,054 |
| `ORGANIZATION` | 0.8167 | 0.8763 | **0.8455** | 5,847 |
| `ACCOUNT_ID` | 0.9792 | 0.9910 | **0.9851** | 2,662 |
## Per-Language Test Performance (36 Languages)
| Code | Language | Precision | Recall | F1 | Support |
|---|---|---:|---:|---:|---:|
| `en` | English | 0.9044 | 0.9303 | **0.9172** | 14,686 |
| `es` | Spanish | 0.8510 | 0.8604 | **0.8557** | 1,992 |
| `fr` | French | 0.9049 | 0.9209 | **0.9128** | 1,870 |
| `de` | German | 0.8919 | 0.8895 | **0.8907** | 1,855 |
| `it` | Italian | 0.8721 | 0.8980 | **0.8849** | 1,853 |
| `pt` | Portuguese | 0.9660 | 0.9809 | **0.9734** | 1,362 |
| `nl` | Dutch | 0.8487 | 0.8332 | **0.8408** | 1,858 |
| `pl` | Polish | 0.9626 | 0.9748 | **0.9687** | 1,268 |
| `ru` | Russian | 0.8785 | 0.9232 | **0.9003** | 1,394 |
| `uk` | Ukrainian | 0.8251 | 0.8875 | **0.8552** | 978 |
| `tr` | Turkish | 0.9528 | 0.9579 | **0.9553** | 1,306 |
| `ar` | Arabic | 0.8211 | 0.8788 | **0.8490** | 1,436 |
| `he` | Hebrew | 0.8752 | 0.9370 | **0.9051** | 1,048 |
| `fa` | Persian | 0.8391 | 0.8963 | **0.8668** | 1,263 |
| `hi` | Hindi | 0.8578 | 0.9457 | **0.8996** | 1,308 |
| `bn` | Bengali | 0.9664 | 0.9820 | **0.9741** | 1,055 |
| `ur` | Urdu | 0.8421 | 0.8939 | **0.8672** | 1,253 |
| `ta` | Tamil | 0.9014 | 0.9489 | **0.9245** | 1,252 |
| `zh` | Chinese (Simplified) | 0.9217 | 0.9485 | **0.9349** | 1,166 |
| `zh-TW` | Chinese (Traditional) | 0.8652 | 0.8999 | **0.8822** | 1,348 |
| `ja` | Japanese | 0.8546 | 0.8924 | **0.8731** | 1,376 |
| `ko` | Korean | 0.8920 | 0.9342 | **0.9126** | 1,185 |
| `vi` | Vietnamese | 0.8942 | 0.9327 | **0.9131** | 1,233 |
| `th` | Thai | 0.7884 | 0.8795 | **0.8315** | 1,195 |
| `id` | Indonesian | 0.9804 | 0.9833 | **0.9818** | 1,017 |
| `ms` | Malay | 0.9473 | 0.9702 | **0.9586** | 1,241 |
| `tl` | Filipino | 0.9582 | 0.9748 | **0.9664** | 1,151 |
| `sv` | Swedish | 0.8471 | 0.8182 | **0.8324** | 1,612 |
| `no` | Norwegian | 0.9385 | 0.9454 | **0.9419** | 1,081 |
| `da` | Danish | 0.9395 | 0.9528 | **0.9461** | 1,272 |
| `fi` | Finnish | 0.9724 | 0.9820 | **0.9772** | 1,114 |
| `cs` | Czech | 0.9624 | 0.9685 | **0.9655** | 1,270 |
| `ro` | Romanian | 0.9410 | 0.9601 | **0.9505** | 1,229 |
| `hu` | Hungarian | 0.8908 | 0.9388 | **0.9142** | 1,095 |
| `el` | Greek | 0.7792 | 0.8663 | **0.8204** | 1,234 |
| `sw` | Swahili | 0.9543 | 0.9672 | **0.9607** | 1,251 |
## Separation of Artifacts
- **Model Repository:** `KvcHub/Kava-Privacy-30M` (model weights, custom tokenizer, `redactor.py`, evaluation metrics — no dataset files)
- **Dataset Repository:** [`KvcHub/Kava-Privacy-30M-Dataset`](https://huggingface.co/KvcHub/Kava-Privacy-30M-Dataset) (36-language training, validation, and test Parquet shards)
<!-- KVCHUB-SECURITY-AND-BENCHMARKS -->
## Security & KvcHub Model Comparison
See [`SECURITY.md`](./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](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` | Kava-Privacy-30M License (Personal free; business needs KvcHub permission) |
| **[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 |
| **[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 |
| **[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 |
| **[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) |
| **[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) |
| **[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 |
| **[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 |
| **[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 |
| **[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 |
### 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](https://huggingface.co/KvcHub/Kava-Privacy-30M)** | 30.46M | **36** | **30** (61 BIO) | ModernBERT (from scratch) | Held-out test Exact Span **F1 0.9094** (P 0.8956 / R 0.9236) | Hard-Neg FPR: **0.0** | **37.2 docs/sec** (MPS) |
| **[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) |
| **[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) |
#### 2. Conversational & Reasoning LM Family (`KaiLu`)
| Model | Params | Architecture | Context (Trained) | Footprint (Recommended) | Speed (Apple Silicon) | Reported Benchmarks |
|---|---:|---|---|---|---|---|
| **[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) |
| **[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) |
| **[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 |
| **[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%** |
| **[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) |
#### 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](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 |
| **[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** |
## License
**Free for personal, non-commercial use. Business use needs written permission from KvcHub.**
Kava-Privacy-30M is released under the [Kava-Privacy-30M License](./LICENSE): you may download, run, study, modify, and fine-tune it free of charge for personal, hobby, educational, and non-commercial research use. For any business or commercial use, contact **KvcHub** at [hello@kvchub.com](mailto:hello@kvchub.com) first.