Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦
C
vulkan: colibri's unavailable line names a driver, not libvulkan; a module path one short of the buffer is whole
JustVuggf7c2ec2e0d66
diff --git a/c/backend_vulkan.c b/c/backend_vulkan.cindex 48e70efb..e966843f 100644--- a/c/backend_vulkan.c+++ b/c/backend_vulkan.c@@ -2116,7 +2116,7 @@ const char *coli_vk_shader_path(char *buf, size_t n) {k = readlink("/proc/self/exe", buf, n - 1);#elif defined(_WIN32)k = (long)GetModuleFileNameA(NULL, buf, (DWORD)n);- if (k >= (long)n - 1) k = -1; /* truncated */+ if (k >= (long)n) k = -1; /* truncated: n, without the terminator */#elif defined(__APPLE__)uint32_t sz = (uint32_t)n;if (_NSGetExecutablePath(buf, &sz) == 0) k = (long)strlen(buf);diff --git a/c/colibri.c b/c/colibri.cindex 89ffa8b5..85a96cd2 100644--- a/c/colibri.c+++ b/c/colibri.c@@ -12828,7 +12828,7 @@ int main(int argc, char **argv){if(getenv("COLI_VULKAN") && atoi(getenv("COLI_VULKAN"))){char spvbuf[512]; const char *spv = vk_resolve_spv(spvbuf, sizeof(spvbuf));g_vulkan = coli_vk_init(spv);- if(!g_vulkan){ fprintf(stderr,"[VK] Vulkan backend unavailable (tried %s; need libvulkan + "+ if(!g_vulkan){ fprintf(stderr,"[VK] Vulkan backend unavailable (tried %s; needs a Vulkan driver and ""the compiled shaders — point COLI_VK_SHADERS at the shader directory ""or the qmatmul.spv file, or run `make VK=1` to build them)\n", spv); return 2; }/* The routed experts go to the shared tier (vk_tier.c), sized by its budget