From 0fc8b6bc6154fd4e05d0a97520dd9bf14e5cafc0 Mon Sep 17 00:00:00 2001 From: Ghislain PUTOIS Date: Wed, 28 Feb 2024 13:47:01 +0100 Subject: [PATCH 1/2] Update to vllm 0.3.2 (first attempt) --- pkgs/development/python-modules/vllm/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/vllm/default.nix b/pkgs/development/python-modules/vllm/default.nix index e8127c4caf8b..49ad6027ee95 100644 --- a/pkgs/development/python-modules/vllm/default.nix +++ b/pkgs/development/python-modules/vllm/default.nix @@ -36,14 +36,14 @@ buildPythonPackage rec { pname = "vllm"; - version = "0.3.1"; + version = "0.3.2"; format = "pyproject"; src = fetchFromGitHub { owner = "vllm-project"; repo = pname; rev = "v${version}"; - hash = "sha256-hfd4ScU0mkZ7z4+w08BUA1K9bPXSiFThfiO+Ll2MTtg="; + hash = nixpkgs.lib.fakeSha256; }; # Otherwise it tries to enumerate host supported ROCM gfx archs, and that is not possible due to sandboxing. @@ -62,11 +62,11 @@ buildPythonPackage rec { substituteInPlace requirements.txt \ --replace "cupy-cuda12x == 12.1.0" "cupy == 12.3.0" substituteInPlace requirements-build.txt \ - --replace "torch==2.1.2" "torch == 2.2.0" + --replace "torch==2.1.2" "torch == 2.2.1" substituteInPlace pyproject.toml \ - --replace "torch == 2.1.2" "torch == 2.2.0" + --replace "torch == 2.1.2" "torch == 2.2.1" substituteInPlace requirements.txt \ - --replace "torch == 2.1.2" "torch == 2.2.0" + --replace "torch == 2.1.2" "torch == 2.2.1" '' + lib.optionalString rocmSupport '' substituteInPlace setup.py \ --replace "'hipcc', '--version'" "'${writeShellScript "hipcc-version-stub" "echo HIP version: 0.0"}'" From bf79c805ea67b87186cf445c17e7d813a50e6dff Mon Sep 17 00:00:00 2001 From: Ghislain PUTOIS Date: Wed, 28 Feb 2024 14:03:15 +0100 Subject: [PATCH 2/2] Insert correct sha256 for vllm 0.3.2 --- pkgs/development/python-modules/vllm/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/vllm/default.nix b/pkgs/development/python-modules/vllm/default.nix index 49ad6027ee95..4977a829d4c7 100644 --- a/pkgs/development/python-modules/vllm/default.nix +++ b/pkgs/development/python-modules/vllm/default.nix @@ -43,7 +43,7 @@ buildPythonPackage rec { owner = "vllm-project"; repo = pname; rev = "v${version}"; - hash = nixpkgs.lib.fakeSha256; + hash = "sha256-ZFwlR8Xnen7FFblwzPJm0k+3iEo2p27QhfRaDfzwbOM="; }; # Otherwise it tries to enumerate host supported ROCM gfx archs, and that is not possible due to sandboxing.