Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Copy over Torch from hf-nix and fix the AArch64 build#304

Merged
danieldk merged 2 commits intomainfrom
copy-torch
Nov 20, 2025
Merged

Copy over Torch from hf-nix and fix the AArch64 build#304
danieldk merged 2 commits intomainfrom
copy-torch

Conversation

@danieldk
Copy link
Member

We have decided to make kernel-builder standalone to make it easier to maintain Torch versions as part of the same repo. This copies over Torch from hf-nix. Other bits are still needed, but this was needed to fix #301 within the repo.

Torch vendors libgfortran, which has zlib as a dependency. We might want to use system libgfortran in the future instead, but it requires more investigation/testing.

We have decided to make kernel-builder standalone to make it easier to
maintain Torch versions as part of the same repo. This copies over Torch
from hf-nix. Other bits are still needed, but let's start somewhere.
Torch vendors libgfortran, which has zlib as a dependency. We might want
to use system libgfortran in the future instead, but it requires more
investigation/testing.

Fixes #301.
Comment on lines +198 to +199
# Torch on aarch64-linux vendors libgfortran, which requires zlib.
++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ zlib ];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reviewing, these are the only changed lines.

Copy link
Contributor

@MekkCyber MekkCyber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome !!!

@danieldk danieldk merged commit f376672 into main Nov 20, 2025
27 of 29 checks passed
@danieldk danieldk deleted the copy-torch branch November 20, 2025 08:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

error: auto-patchelf could not satisfy dependency libz.so.1

2 participants