1 view
JustVugg/colibri
Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦
C★ 35,849+873 that day#11 on trending
6.37%duplicated code · 7,644 of 120,085 lines
606clones in code
227code files of 674 scanned
5.23%duplicated over all files · 900 clones
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 2 generated files: c/qwen38_nfc_tables.h, c/tok_unicode.h.
Largest clones in the code
- 401 lines in 2 placesc4,187 tokens
2204/* ---- begin include deepseek_v4_attention.c ---- */ 2205#include "deepseek_v4_internal.h" 2206 2207#include <math.h> 2208#include <stdarg.h> 2209#include <stdint.h> 2210#include <stdio.h> 2211#include <stdlib.h> 2212#include <string.h> 2213First 10 of 401 lines.
- 294 lines in 2 placesc2,898 tokens
3130#include "deepseek_v4_internal.h" 3131 3132#include <math.h> 3133#include <stdarg.h> 3134#include <stdint.h> 3135#include <stdio.h> 3136#include <stdlib.h> 3137#include <string.h> 3138 3139#include "deepseek_v4_internal.h"First 10 of 294 lines.
- 185 lines in 2 placesc1,910 tokens
601#include <stdarg.h> 602#include <stdio.h> 603#include <stdlib.h> 604#include <string.h> 605 606static int set_error(char *error, size_t size, const char *format, ...) { 607 if (error && size) { 608 va_list arguments; 609 va_start(arguments, format); 610 vsnprintf(error, size, format, arguments);First 10 of 185 lines.
7 more
- 141 lines in 2 placesc1,705 tokens
- 118 lines in 2 placesc1,704 tokens
- 91 lines in 2 placesc1,174 tokens
- 111 lines in 2 placesc1,092 tokens
- 106 lines in 2 placesc903 tokens
- 7 lines in 3 placesc450 tokens
- 45 lines in 2 placesc800 tokens
Largest clones over all files, tests and data included
- 401 lines in 2 placesc4,187 tokens
2204/* ---- begin include deepseek_v4_attention.c ---- */ 2205#include "deepseek_v4_internal.h" 2206 2207#include <math.h> 2208#include <stdarg.h> 2209#include <stdint.h> 2210#include <stdio.h> 2211#include <stdlib.h> 2212#include <string.h> 2213First 10 of 401 lines.
- 294 lines in 2 placesc2,898 tokens
3130#include "deepseek_v4_internal.h" 3131 3132#include <math.h> 3133#include <stdarg.h> 3134#include <stdint.h> 3135#include <stdio.h> 3136#include <stdlib.h> 3137#include <string.h> 3138 3139#include "deepseek_v4_internal.h"First 10 of 294 lines.
- 185 lines in 2 placesc1,910 tokens
601#include <stdarg.h> 602#include <stdio.h> 603#include <stdlib.h> 604#include <string.h> 605 606static int set_error(char *error, size_t size, const char *format, ...) { 607 if (error && size) { 608 va_list arguments; 609 va_start(arguments, format); 610 vsnprintf(error, size, format, arguments);First 10 of 185 lines.
- 141 lines in 2 placesc1,705 tokens
- 118 lines in 2 placesc1,704 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| c | 23 | 61,533 | 457 | 6,261 | 10.18% |
| python | 106 | 36,341 | 67 | 742 | 2.04% |
| c-header | 63 | 17,231 | 63 | 507 | 2.94% |
| objectivec | 1 | 2,039 | 18 | 128 | 6.28% |
| tsx | 10 | 1,017 | 1 | 6 | 0.59% |
| bash | 16 | 1,082 | 0 | 0 | 0% |
| typescript | 6 | 522 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
| powershell | 1 | 146 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| c | 179 | 86,606 | 598 | 7,605 | 8.78% |
| python | 204 | 61,951 | 170 | 1,996 | 3.22% |
| c-header | 67 | 36,149 | 64 | 514 | 1.42% |
| objectivec | 3 | 3,150 | 28 | 201 | 6.38% |
| yaml | 8 | 1,774 | 12 | 114 | 6.43% |
| json | 29 | 2,970 | 10 | 505 | 17% |
| markup | 7 | 731 | 7 | 179 | 24.49% |
| bash | 52 | 1,651 | 6 | 41 | 2.48% |
| markdown | 63 | 15,049 | 2 | 12 | 0.08% |
| text | 18 | 315 | 2 | 33 | 10.48% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Sep 18, 2026 | #11 | 35,849 (+873) | 674 | 214,273 | 900 | 5.23% | 6.37% | — | a8f2ca6 |
| Sep 17, 2026 | #3 | 35,169 (+1,546) | 674 | 214,273 | 900 | 5.23% | 6.37% | — | a8f2ca6 |
| Sep 16, 2026 | #2 | 34,107 (+2,026) | 674 | 214,273 | 900 | 5.23% | 6.37% | — | a8f2ca6 |
| Sep 15, 2026 | #1 | 32,433 (+2,173) | 674 | 214,273 | 900 | 5.23% | 6.37% | — | f028d26 |
| Sep 14, 2026 | #1 | 30,246 (+868) | 674 | 214,273 | 900 | 5.23% | 6.37% | — | f028d26 |
| Sep 11, 2026 | #9 | 27,535 (+98) | 626 | 198,119 | 812 | 5.18% | 6.54% | — | fd93c41 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.