Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦
C
packaging: pyproject.toml + editorconfig + clang-format
ZacharyZcRd86a6b93ad4f
diff --git a/.clang-format b/.clang-formatnew file mode 100644index 00000000..f9116525--- /dev/null+++ b/.clang-format@@ -0,0 +1,10 @@+BasedOnStyle: LLVM+IndentWidth: 4+ColumnLimit: 120+AllowShortFunctionsOnASingleLine: All+AllowShortIfStatementsOnASingleLine: AllIfsAndElse+AllowShortLoopsOnASingleLine: true+BreakBeforeBraces: Attach+PointerAlignment: Right+SpaceAfterCStyleCast: false+SortIncludes: falsediff --git a/.editorconfig b/.editorconfignew file mode 100644index 00000000..e0acabb3--- /dev/null+++ b/.editorconfig@@ -0,0 +1,24 @@+root = true++[*]+charset = utf-8+end_of_line = lf+insert_final_newline = true+trim_trailing_whitespace = true+indent_style = space+indent_size = 4++[*.{c,h,cu}]+indent_size = 4++[*.{ts,tsx,js,json,css}]+indent_size = 2++[Makefile]+indent_style = tab++[*.yml]+indent_size = 2++[*.md]+trim_trailing_whitespace = falsediff --git a/colibri/__init__.py b/colibri/__init__.pynew file mode 100644index 00000000..77f70615--- /dev/null+++ b/colibri/__init__.py@@ -0,0 +1,5 @@+"""colibrì — tiny engine, immense model."""++from colibri._version import __version__++__all__ = ["__version__"]diff --git a/colibri/_version.py b/colibri/_version.pynew file mode 100644index 00000000..9951ca18--- /dev/null+++ b/colibri/_version.py@@ -0,0 +1,3 @@+"""Single source of truth for the colibrì version number."""++__version__ = "1.0.0"diff --git a/colibri/cli.py b/colibri/cli.pynew file mode 100644index 00000000..3f192344--- /dev/null+++ b/colibri/cli.py@@ -0,0 +1,30 @@+"""Entry point for `coli` when installed via pip.++Delegates to the original c/coli script which handles all subcommands.+This wrapper exists so `pip install colibri-engine` creates a `coli` console+script that works without the user having to add c/ to PATH manually.+"""++import os+import sys+import runpy+++def main():+ here = os.path.dirname(os.path.abspath(__file__))+ engine_dir = os.path.join(os.path.dirname(here), "c")+ coli_script = os.path.join(engine_dir, "coli")++ if not os.path.exists(coli_script):+ sys.exit(+ "colibri engine directory not found.\n"+ "Install from source: git clone + pip install -e ."+ )++ sys.path.insert(0, engine_dir)+ sys.argv[0] = coli_script+ runpy.run_path(coli_script, run_name="__main__")+++if __name__ == "__main__":+ main()diff --git a/pyproject.toml b/pyproject.tomlnew file mode 100644index 00000000..18f8f858--- /dev/null+++ b/pyproject.toml@@ -0,0 +1,53 @@+[build-system]+requires = ["setuptools>=68.0"]+build-backend = "setuptools.build_meta"++[project]+name = "colibri-engine"+dynamic = ["version"]+description = "Tiny engine, immense model — run GLM-5.2 (744B MoE) locally"+readme = "README.md"+license = "Apache-2.0"+requires-python = ">=3.10"+authors = [+ {name = "JustVugg"},+]+classifiers = [+ "Development Status :: 4 - Beta",+ "Environment :: Console",+ "Intended Audience :: Science/Research",+ "Operating System :: POSIX :: Linux",+ "Operating System :: MacOS",+ "Operating System :: Microsoft :: Windows",+ "Programming Language :: Python :: 3",+ "Topic :: Scientific/Engineering :: Artificial Intelligence",+]++[project.optional-dependencies]+convert = [+ "numpy",+ "huggingface_hub",+]+oracle = [+ "torch>=2.0",+ "transformers>=4.40",+ "safetensors",+]+bench = [+ "tokenizers",+ "datasets",+]++[project.scripts]+coli = "colibri.cli:main"++[project.urls]+Homepage = "https://github.com/JustVugg/colibri"+Issues = "https://github.com/JustVugg/colibri/issues"++[tool.setuptools.dynamic]+version = {attr = "colibri._version.__version__"}++[tool.setuptools.packages.find]+where = ["."]+include = ["colibri*"]