Spaces:
Running

README / README.md
byluthon's picture
Org card: Kapllan Labs research areas, shipping record, K-Series roadmap
36273d4 verified
|
Raw History Blame Contribute Delete
5.29 kB
---
title: Kapllan Labs
colorFrom: indigo
colorTo: blue
sdk: static
pinned: false
---
# Kapllan Labs
Kapllan Labs focuses on **foundation models**, **agentic systems**, **multimodal interaction**, **robotics**, **knowledge orchestration**, and **decision intelligence**.
The lab develops its own internal model family under the **K-Series** β€” K0, K1, K2, and future frontier-scale systems.
---
## What we've shipped
### v3 Tokenizer (2026-05-15)
384,000-vocab SentencePiece Unigram trained on 115 GB of native multilingual corpus. Six evidence-based fairness gates passed across 31 languages:
- Tier-1 whitespace languages: `ar` 1.22Γ— (max) within 1.5Γ— whitespace-median
- Tier-1 CJK languages: `zh` 2.72Γ—, `ja` 1.86Γ—, `ko` 1.74Γ— β€” all within 3.0Γ— whitespace-median (XLM-R / mT5 baselines)
- Tier-2 languages: `he` 1.46Γ— (max) within 2.5Γ—
- Code/English ratio: 0.98
- Round-trip idempotence: 100% across 60,000 documents
- 71 special tokens locked at IDs 0-70 per surface map
The 71 special tokens cover boundary, role, visual, doc structure, audio, reasoning, agentic, and reserved surfaces β€” committed once, never changed across all K-Series rungs.
### Three training experiments, one falsified
The v3 tokenizer programme ran three full Pass 2 training runs:
1. **Proportional sampling** β€” baseline; zh 3.20Γ— FAIL
2. **CJK-heavy 50% sampling** β€” production winner; zh 2.72Γ— (pareto-optimal within Unigram-EM paradigm)
3. **Per-script pre-segmentation (Path B)** β€” empirically FALSIFIED; train/eval distribution mismatch produced zh 3.40Γ— (worse)
Path B is preserved as a documented negative result. The lesson: pre-segmentation in tokenizer training requires a matching runtime segmenter. Without that, train/eval distribution mismatch reverses the intended effect.
### K-0 native base model
Validation rung at 200M class. Native multimodal batches cold-start with all modalities present from step 0. 5,000-step production validation run completed 2026-05-15 with all four review fixes live: DDP per-category loss reduce, attention/loss masks correctness, real audit pipeline, per-step sampled-category logging at rank-0.
### K-1 corpus (post-v3 tokenizer)
27,643,776 documents to 23,140,725,058 tokens (23.14 B) repacked with canonical v3 tokenizer, pre-tokenized JSONL with cached token-IDs for the trainer hot-path. Per-category breakdown:
| Category | Docs | Tokens | Share |
|---|---|---|---|
| text | 22.3 M | 17.12 B | 74.0% |
| code | 2.4 M | 3.49 B | 15.1% |
| reasoning_trace | 906 K | 1.89 B | 8.2% |
| math | 1.86 M | 574 M | 2.5% |
| tool_call | 177 K | 75 M | 0.3% |
### Research hypotheses filed (active, not yet doctrine)
- **RCA β€” Reflective Cognition Architecture (v0.1, 2026-05-15)** β€” concurrent reflection stream with typed revision vocabulary and utility-driven gate policy. Six revision kinds (`soft`, `factual`, `scope`, `confidence_up`, `confidence_down`, `retract`) as native vocabulary. F1–F5 falsification criteria defined; pilot timed post K-0 success gate.
- **PCVA β€” Parallel Cognitive Voice Architecture** β€” voice-domain instantiation of the same architectural insight. Private alpha.
- **Per-script tokenizer fairness gates** β€” replacing Latin-centric heuristics with bounds measured against XLM-R / BLOOM / mT5 published baselines.
---
## Engineering principles
1. **Native from step zero** β€” every modality is a token type from K-0. No surgery-after-the-fact pretraining. No bolted-on encoders.
2. **Multilingual is foundation, not a feature** β€” measured per-script fairness against published baselines, not Latin-centric heuristics.
3. **Open weights for K-Series base models. Closed weights for fine-tuned product surfaces.**
4. **Falsifiable hypotheses, not feature advocacy** β€” research positions ship with F1–F5-style criteria. Negative results preserved as documented dead-ends.
5. **Frontier optionality** β€” architectural decisions stay reversible until pilot evidence arrives. Reserved-token surfaces remain generic until research validates the kind typology.
---
## Stack
Qwen3-base fine-tunes (Apache 2.0 to Kapllan IP). SentencePiece Unigram tokenization. Custom UnifiedSequence native batch format with per-category loss accounting and stability throttling. DDP-NCCL distributed training. vLLM serving.
**Hardware** β€” 4-node DGX Spark cluster with MikroTik 400G fabric. Hetzner GPU node for production training. Latitude.sh elastic for tokenizer R&D bursts.
---
## The K-Series
Each rung locks the tokenizer, special-token map, and per-category loss accounting from K-0. Future rungs scale data, parameters, and capabilities β€” never re-litigate the foundation.
- **K-0** β€” validation rung. 200M class. 5000-step validation completed 2026-05-15.
- **K-1** β€” first real native base. 23.14 B token corpus repacked 2026-05-16. Production training launch pending.
- **K-2** β€” first useful production native model. Quality-targeted data mix.
- **K-3** β€” production dense frontier-tier.
- **K-3-R** β€” reasoning-specialist branch.
- **K-4** β€” frontier-tier open weights. MoE.
---
Built in the Nordics. Made for the frontier.
[kapllan.ai](https://kapllan.ai) β€” **Kapllan AS** β€” Norwegian trademark reg.nr 341834 (Klasse 9 + 42, registered 2026-05-13)