Skip to content

Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦

C

fix: invert cluster_connect_one success check in cluster_init

elifa92f96c2f22
diff --git a/c/colibri.c b/c/colibri.c
index 61c8f986..75073022 100644
--- a/c/colibri.c
+++ b/c/colibri.c
@@ -2682,7 +2682,7 @@ static void cluster_init(void){
char *copy=strdup(list),*save=NULL;
for(char *tok=strtok_r(copy,",",&save);tok&&g_cluster_n<16;tok=strtok_r(NULL,",",&save)){
while(*tok==' '||*tok=='\t') tok++;
- if(cluster_connect_one(tok,&g_cluster_workers[g_cluster_n])) g_cluster_n++;
+ if(!cluster_connect_one(tok,&g_cluster_workers[g_cluster_n])) g_cluster_n++;
else fprintf(stderr,"[CLUSTER] cannot connect to expert worker %s\n",tok);
}
free(copy);