Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦
C
Merge branch 'dev' into feat/windows-xdna-shared-expert-lane
Kenneth-Javier Ortigoza35f3514158f8
diff --cc c/Makefileindex 503738be,258212e2..18b94fee--- a/c/Makefile+++ b/c/Makefile@@@ -491,19 -491,12 +491,18 @@@ endiTEST_RULES := $(shell sed -n 's|^tests/\(test_[a-z0-9_]*\)\$$(EXE):.*|\1|p' $(firstword $(MAKEFILE_LIST)))# test_uring is Linux-only. V4 engine tests are appended below only on supported# x86-64 Linux/Windows and aarch64 Linux hosts; the V4 infrastructure tests have- # unconditional rules and therefore remain portable gates. test_gsgemv_sse41/- # test_qgemv_sse41/test_olmoe_dot_i8_16_sse41 force -msse4.1/-mno-avx2/-mno-fma,- # which only exist as gcc/clang flags on x86 -- unconditionally in TEST_BINS- # they take down `check` on arm64 (e.g. macOS):- # "unsupported option '-msse4.1' for target arm64-...".+ # unconditional rules and therefore remain portable gates. The six forced+ # SSE4.1 tests use -msse4.1/-mno-avx2/-mno-fma, which only exist as gcc/clang+ # flags on x86 -- unconditionally in TEST_BINS they take down `check` on+ # arm64 (e.g. macOS): "unsupported option '-msse4.1' for target arm64-...".# Appended back below only on x86-64 hosts, alongside the other conditional# platform tests already handled the same way.+# test_xdna_execution and test_xdna_failure are Windows-only for the same kind+# of reason: they load tests/xdna_fake_helper.dll through the XDNA loader, which+# is LoadLibraryExA. Off Windows the loader answers ABSENT by design, so there+# is nothing for them to bind to, and the synthetic helper is a __declspec DLL+# that gcc and clang refuse to compile. The other three XDNA owners (registry,+# prepared state, QT state) touch no loader and stay portable gates.# test_e8x4g64_loader takes a minted container directory on argv and prints its# usage (exit 2) without one, so it is a harness rather than a gate: it has a# rule here so it compiles under the suite's own $(CFLAGS) and its warnings are@@@ -515,19 -508,18 +514,22 @@@TEST_EXCLUDE = test_uring test_deepseek_v4 test_v4_ownership test_v4_serve_framing \test_segment_adapters_registration test_segment_adapters_real \test_edge_adapters_registration test_edge_adapters_real \+ test_xdna_execution test_xdna_failure \test_gsgemv_sse41 test_qgemv_sse41 test_olmoe_dot_i8_16_sse41 test_qwen38_tier_engine \- test_e8x4g64_loader+ test_e8x4g64_loader \+ test_i4_grouped_sse41 test_i4_grouped_sse41_o1 test_i4_grouped_sse41_no_contractTEST_BINS = $(addprefix tests/,$(addsuffix $(EXE),$(filter-out $(TEST_EXCLUDE),$(TEST_RULES))))ifneq (,$(LINUX))TEST_BINS += tests/test_uring$(EXE)TEST_BINS += tests/test_exact_dot$(EXE)endif+ifneq (,$(IS_WIN))+TEST_BINS += tests/test_xdna_execution$(EXE) tests/test_xdna_failure$(EXE)+endififneq (,$(X86_64))- TEST_BINS += tests/test_gsgemv_sse41$(EXE) tests/test_qgemv_sse41$(EXE) tests/test_olmoe_dot_i8_16_sse41$(EXE)+ TEST_BINS += tests/test_gsgemv_sse41$(EXE) tests/test_qgemv_sse41$(EXE) \+ tests/test_olmoe_dot_i8_16_sse41$(EXE) tests/test_i4_grouped_sse41$(EXE) \+ tests/test_i4_grouped_sse41_o1$(EXE) tests/test_i4_grouped_sse41_no_contract$(EXE)endififeq ($(COLI_V4_SUPPORTED),1)TEST_BINS += tests/test_v4_hybrid_policy$(EXE) tests/test_k3_fill_budget$(EXE) tests/test_v4_bank_pair$(EXE)@@@ -799,8 -775,8 +801,8 @@@ $(file >.build-config,$(BUILD_CONFIG)endif.build-config: ;- colibri$(EXE): colibri.c exact_dot.h oracle.h pin_pool.h cli_args.h st.h uring.h json.h tok.h tok_unicode.h compat.h grammar.h quant.h fp8_format.h idot.h sample.h kv_persist.h telemetry.h route_trace.h omp_tune.h kv_fp8.h kv_tq.h abl.h backend_cuda.h backend_metal.h backend_vulkan.h backend_xdna.h decode_batch.h edge_adapters.h edge_runtime.h edge_tok_internal.h schema_gbnf.h segment_adapter_internal.h segment_adapters.h segment_runtime.h tier.h $(CUDA_OBJ) $(METAL_OBJ) $(VK_OBJ) $(VK_SPV) $(XDNA_OBJ) .build-config-colibri$(EXE): colibri.c sse41_kernels.h exact_dot.h oracle.h pin_pool.h cli_args.h st.h uring.h json.h tok.h tok_unicode.h compat.h grammar.h quant.h fp8_format.h idot.h sample.h kv_persist.h telemetry.h route_trace.h omp_tune.h kv_fp8.h kv_tq.h abl.h backend_cuda.h backend_metal.h backend_vulkan.h decode_batch.h edge_adapters.h edge_runtime.h edge_tok_internal.h schema_gbnf.h segment_adapter_internal.h segment_adapters.h segment_runtime.h tier.h $(CUDA_OBJ) $(METAL_OBJ) $(VK_OBJ) $(VK_SPV) .build-config- $(CC) $(CFLAGS) colibri.c $(CUDA_OBJ) $(METAL_OBJ) $(VK_OBJ) -o colibri$(EXE) $(LDFLAGS)++colibri$(EXE): colibri.c sse41_kernels.h exact_dot.h oracle.h pin_pool.h cli_args.h st.h uring.h json.h tok.h tok_unicode.h compat.h grammar.h quant.h fp8_format.h idot.h sample.h kv_persist.h telemetry.h route_trace.h omp_tune.h kv_fp8.h kv_tq.h abl.h backend_cuda.h backend_metal.h backend_vulkan.h backend_xdna.h decode_batch.h edge_adapters.h edge_runtime.h edge_tok_internal.h schema_gbnf.h segment_adapter_internal.h segment_adapters.h segment_runtime.h tier.h $(CUDA_OBJ) $(METAL_OBJ) $(VK_OBJ) $(VK_SPV) $(XDNA_OBJ) .build-config+ $(CC) $(CFLAGS) colibri.c $(CUDA_OBJ) $(METAL_OBJ) $(VK_OBJ) $(XDNA_OBJ) -o colibri$(EXE) $(LDFLAGS)# Vulkan backend object (plain C + vulkan headers) and its SPIR-V shaders.backend_vulkan.o: backend_vulkan.c backend_vulkan.h .build-config