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
900 B
Raw Blame
{
  "text": "<|im_start|>user\nRename the variable `count` to `total` in this C code and print the whole code again, with no explanation.\n\n```c\nstatic int count_words(const char *s) {\n    int count = 0, in_word = 0;\n    for (const char *p = s; *p; p++) {\n        if (*p == ' ' || *p == '\\n' || *p == '\\t') {\n            in_word = 0;\n        } else if (!in_word) {\n            in_word = 1;\n            count++;\n        }\n    }\n    return count;\n}\n\nstatic void print_counts(const char **lines, int n) {\n    int count = 0;\n    for (int i = 0; i < n; i++) {\n        int words = count_words(lines[i]);\n        printf(\"line %d: %d words\\n\", i, words);\n        count += words;\n    }\n    printf(\"all lines: %d words\\n\", count);\n}\n```<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",
  "sha256": "b840c508d4d473840929f53cc370614e1438c6d0fd5f9afc67176ce1d99dfc2f"
}