[build-system] requires = ["scikit-build-core>=0.8.0", "pybind11>=2.11"] build-backend = "scikit_build_core.build" [project] name = "xenith" version = "3.1.0" description = "Xenith — трансформер на чистом C++17: обучение, генерация, GGUF, Ollama API и Vulkan. Python-модуль без ручной сборки." readme = "README.md" requires-python = ">=3.8" license = { text = "MIT" } authors = [{ name = "Xenith contributors" }] keywords = ["llm", "transformer", "gguf", "ollama", "vulkan", "cpp"] classifiers = [ "Programming Language :: Python :: 3", "Programming Language :: C++", "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Operating System :: Microsoft :: Windows", "Topic :: Scientific/Engineering :: Artificial Intelligence", ] dependencies = [] [project.urls] Homepage = "https://git.bipfr.ru/BIPfR/Xenith" Repository = "https://git.bipfr.ru/BIPfR/Xenith" Documentation = "https://git.bipfr.ru/BIPfR/Xenith/src/branch/master/wiki" [project.scripts] xenith = "xenith.cli:main" [tool.scikit-build] minimum-version = "0.8" cmake.version = ">=3.20" build-dir = "build/{wheel_tag}" # Python-пакет лежит в xenith/ вместе с C++-исходниками; в wheel берём только # Python-часть, исходники нужны лишь на этапе сборки (они в sdist). wheel.packages = ["xenith"] wheel.exclude = [ "xenith/core/**", "xenith/backend/**", "xenith/ollama_api/**", "xenith/ui/**", "xenith/preprocessing/**", "xenith/libs/**", "**/*.cpp", "**/*.cc", "**/*.c", "**/*.h", "**/*.hpp", ] cmake.args = [ "-DXENITH_CLI=OFF", "-DXENITH_VULKAN=OFF", "-DXENITH_TESTS=OFF", "-DXENITH_PYTHON=ON", ] # В sdist — всё, из чего можно собрать модуль без git-истории. sdist.include = [ "CMakeLists.txt", "main.cpp", "help.h", "version.txt", "README.md", "CHANGES.md", "xenith/**", "docs/**", "wiki/**", "demo/train_dashboard.py", "demo/train_dashboard.html", "demo/chat_dataset.json", "demo/chat_eval_complex.json", "demo/chat_dataset_large.json", "demo/chat_corpus_large.txt", "demo/dataset_complex.conf.json", "demo/make_chat_dataset.py", "demo/make_chat_dataset_large.py", "demo/make_chat_model.py", "demo/finetune_chat.py", "demo/eval_complex.py", "demo/dialogue.json", "demo/make_dialogue_model.py", "demo/bacteria_world.py", "demo/numpy_brain.py", "tools/build_shaders.py", "tools/quant_gguf_test.cpp", "tools/agent_test.cpp", "tools/moe_brain_test.cpp", "tools/gen_builtin_vocab.py", "tools/gen_datasets.py", ] # Портативный Windows-набор и модели в sdist не кладём: они нужны для сборки # бинарника на Windows, а не для pip-колеса (CPU, без Vulkan/SDK). sdist.exclude = [ "tools/cmake/**", "tools/glslangValidator.exe", "vulkan-sdk/**", "dist/**", "bin/**", "**/__pycache__/**", "*.gguf", "*.xnh", "demo/dashboard_history.json", ]