nixpkgs/pkgs/by-name/ex/exo/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

82 lines
1.5 KiB
Nix
Raw Normal View History

2024-09-10 20:04:43 +00:00
{
lib,
stdenv,
fetchFromGitHub,
python3Packages,
2024-11-15 13:41:40 +00:00
unstableGitUpdater,
2024-09-10 20:04:43 +00:00
}:
python3Packages.buildPythonApplication {
pname = "exo";
version = "0-unstable-2024-11-14";
2024-09-10 20:04:43 +00:00
pyproject = true;
src = fetchFromGitHub {
owner = "exo-explore";
repo = "exo";
rev = "f1eec9fa64a0c14e0ef2eec092b799009b3d4a1e";
hash = "sha256-WrJrhMtq+S5VD3oyW1k3fkOHunTzdFk0HavjOXLhIKU=";
2024-09-10 20:04:43 +00:00
};
build-system = with python3Packages; [ setuptools ];
pythonRelaxDeps = true;
2024-09-10 20:04:43 +00:00
pythonRemoveDeps = [ "uuid" ];
dependencies = with python3Packages; [
aiohttp
aiohttp-cors
aiofiles
blobfile
grpcio
grpcio-tools
jinja2
netifaces
numpy
nvidia-ml-py
2024-09-10 20:04:43 +00:00
pillow
prometheus-client
protobuf
psutil
pydantic
2024-09-10 20:04:43 +00:00
requests
rich
safetensors
tenacity
tqdm
transformers
tinygrad
];
pythonImportsCheck = [
"exo"
"exo.inference.tinygrad.models"
];
nativeCheckInputs = with python3Packages; [
mlx
pytestCheckHook
];
disabledTestPaths = [
"test/test_tokenizers.py"
];
# Tests require `mlx` which is not supported on linux.
doCheck = stdenv.hostPlatform.isDarwin;
2024-09-10 20:04:43 +00:00
2024-11-15 13:41:40 +00:00
passthru = {
updateScript = unstableGitUpdater {
hardcodeZeroVersion = true;
};
};
2024-09-10 20:04:43 +00:00
meta = {
description = "Run your own AI cluster at home with everyday devices";
homepage = "https://github.com/exo-explore/exo";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ GaetanLepage ];
mainProgram = "exo";
};
}