build(python): Relax pytorch version constraint
Nix has an older version
This commit is contained in:
parent
ef2dae9249
commit
d7b5776619
5 changed files with 10 additions and 2 deletions
|
@ -2,6 +2,8 @@
|
||||||
lib,
|
lib,
|
||||||
llamaVersion,
|
llamaVersion,
|
||||||
numpy,
|
numpy,
|
||||||
|
tqdm,
|
||||||
|
sentencepiece,
|
||||||
poetry-core,
|
poetry-core,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
|
@ -12,7 +14,7 @@ buildPythonPackage {
|
||||||
version = llamaVersion;
|
version = llamaVersion;
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
nativeBuildInputs = [ poetry-core ];
|
nativeBuildInputs = [ poetry-core ];
|
||||||
propagatedBuildInputs = [ numpy ];
|
propagatedBuildInputs = [ numpy tqdm sentencepiece ];
|
||||||
src = lib.cleanSource ../../gguf-py;
|
src = lib.cleanSource ../../gguf-py;
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"numpy"
|
"numpy"
|
||||||
|
|
|
@ -17,6 +17,7 @@ let
|
||||||
protobuf
|
protobuf
|
||||||
torchWithoutCuda
|
torchWithoutCuda
|
||||||
gguf-py
|
gguf-py
|
||||||
|
tqdm
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,8 @@ let
|
||||||
pythonPackages = python3.pkgs;
|
pythonPackages = python3.pkgs;
|
||||||
buildPythonPackage = pythonPackages.buildPythonPackage;
|
buildPythonPackage = pythonPackages.buildPythonPackage;
|
||||||
numpy = pythonPackages.numpy;
|
numpy = pythonPackages.numpy;
|
||||||
|
tqdm = pythonPackages.tqdm;
|
||||||
|
sentencepiece = pythonPackages.sentencepiece;
|
||||||
poetry-core = pythonPackages.poetry-core;
|
poetry-core = pythonPackages.poetry-core;
|
||||||
pytestCheckHook = pythonPackages.pytestCheckHook;
|
pytestCheckHook = pythonPackages.pytestCheckHook;
|
||||||
in
|
in
|
||||||
|
@ -24,6 +26,8 @@ lib.makeScope newScope (self: {
|
||||||
inherit
|
inherit
|
||||||
buildPythonPackage
|
buildPythonPackage
|
||||||
numpy
|
numpy
|
||||||
|
tqdm
|
||||||
|
sentencepiece
|
||||||
poetry-core
|
poetry-core
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
;
|
;
|
||||||
|
|
|
@ -23,6 +23,7 @@ python = ">=3.8"
|
||||||
numpy = ">=1.17"
|
numpy = ">=1.17"
|
||||||
tqdm = ">=4.27"
|
tqdm = ">=4.27"
|
||||||
pyyaml = ">=5.1"
|
pyyaml = ">=5.1"
|
||||||
|
sentencepiece = ">=0.1.98,<=0.2.0"
|
||||||
|
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
pytest = "^5.2"
|
pytest = "^5.2"
|
||||||
|
|
|
@ -17,7 +17,7 @@ classifiers = [
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.9"
|
python = ">=3.9"
|
||||||
numpy = "^1.25.0"
|
numpy = "^1.25.0"
|
||||||
sentencepiece = ">=0.1.98,<0.2.0"
|
sentencepiece = ">=0.1.98,<=0.2.0"
|
||||||
transformers = ">=4.35.2,<5.0.0"
|
transformers = ">=4.35.2,<5.0.0"
|
||||||
protobuf = ">=4.21.0,<5.0.0"
|
protobuf = ">=4.21.0,<5.0.0"
|
||||||
gguf = { path = "./gguf-py" }
|
gguf = { path = "./gguf-py" }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue