Skip to content

Commit 6bba331

Browse files
committed
update all packages
1 parent 52c350c commit 6bba331

File tree

6 files changed

+52
-67
lines changed

6 files changed

+52
-67
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ indicatif = "0.17.5"
7676
tokenizers = { version = "0.20.0", default-features = false, features = [
7777
"onig",
7878
] }
79-
tch = { git = "https://github.com/jquesnelle/tch-rs.git", rev = "11d1ca2ef6dbd3f1e5b0986fab0a90fbb6734496" }
80-
torch-sys = { git = "https://github.com/jquesnelle/tch-rs.git", rev = "11d1ca2ef6dbd3f1e5b0986fab0a90fbb6734496" }
81-
pyo3-tch = { git = "https://github.com/jquesnelle/tch-rs.git", rev = "11d1ca2ef6dbd3f1e5b0986fab0a90fbb6734496" }
79+
tch = { git = "https://github.com/jquesnelle/tch-rs.git", rev = "dda507e05a776547a112b6854d1e611684f8c729" }
80+
torch-sys = { git = "https://github.com/jquesnelle/tch-rs.git", rev = "dda507e05a776547a112b6854d1e611684f8c729" }
81+
pyo3-tch = { git = "https://github.com/jquesnelle/tch-rs.git", rev = "dda507e05a776547a112b6854d1e611684f8c729" }
8282
#tch = { path = "../tch-rs" }
8383
#torch-sys = { path = "../tch-rs/torch-sys" }
8484
#pyo3-tch = { path = "../tch-rs/pyo3-tch" }

flake.lock

Lines changed: 33 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/nixpkgs.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,20 @@ in
1515
overlays = lib.optionals cudaSupported [ inputs.nix-gl-host.overlays.default ] ++ [
1616
inputs.rust-overlay.overlays.default
1717
(final: prev: {
18+
# temporary fix until https://github.com/NixOS/nixpkgs/pull/471394 is merged
19+
# that lets us use `torch` instead of `torch-bin`
20+
cudaPackages = prev.cudaPackages // {
21+
cudnn = prev.cudaPackages.cudnn.overrideAttrs (old: {
22+
patchelfFlagsArray = (old.patchelfFlagsArray or [ ]) ++ [
23+
"--set-rpath"
24+
"${prev.lib.getLib prev.cudaPackages.cuda_nvrtc}/lib:\$ORIGIN"
25+
];
26+
});
27+
};
28+
29+
# provide packages for uv2pip to include
1830
python312Packages = prev.python312Packages.override {
1931
overrides = pyfinal: pyprev: {
20-
torch = pyfinal.torch-bin;
2132
flash-attn = pyfinal.callPackage ../python/flash-attn.nix { };
2233
liger-kernel = pyfinal.callPackage ../python/liger-kernel.nix { };
2334
torchtitan = pyfinal.callPackage ../python/torchtitan.nix { };

psyche-book/default.nix

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
lib,
3-
mdbook,
4-
fetchFromGitHub,
5-
rustPlatform,
63
stdenvNoCC,
74
mdbook-mermaid,
85
mdbook-linkcheck,
@@ -11,37 +8,13 @@
118
rustPackages,
129
rustPackageNames,
1310
}:
14-
let
15-
mdbook-0-4-47 = mdbook.overrideAttrs (
16-
oldAttrs:
17-
let
18-
version = "0.4.47";
19-
src = fetchFromGitHub {
20-
owner = "rust-lang";
21-
repo = "mdBook";
22-
tag = "v${version}";
23-
hash = "sha256-XTvC2pGRVat0kOybNb9TziG32wDVexnFx2ahmpUFmaA=";
24-
};
25-
in
26-
{
27-
inherit version src;
28-
cargoDeps = rustPlatform.fetchCargoVendor {
29-
inherit (oldAttrs) pname;
30-
inherit version src;
31-
allowGitDependencies = false;
32-
hash = "sha256-ASPRBAB+elJuyXpPQBm3WI97wD3mjoO1hw0fNHc+KAw=";
33-
};
34-
}
35-
);
36-
in
3711
stdenvNoCC.mkDerivation {
3812
__structuredAttrs = true;
3913

4014
name = "psyche-book";
4115
src = ./.;
4216

4317
nativeBuildInputs = [
44-
mdbook-0-4-47
4518
mdbook-mermaid
4619
mdbook-linkcheck
4720
];

python/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ let
3232
# packages that we provide to the venv via nix derivations
3333
topLevelNixPkgs = [
3434
"torch"
35+
"vllm"
3536
]
3637
++ lib.optionals stdenvNoCC.hostPlatform.isLinux [
3738
"flash-attn"

0 commit comments

Comments
 (0)