-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tts: migrate to torch source builds; torchaudio: init at 0.13.0 #203136
base: master
Are you sure you want to change the base?
Conversation
The build currently fails because it can't find some header file:
The header file is part of the
Tried
without success. |
I was able to get a bit further by adding the include path for openfst as well: --- a/pkgs/development/python-modules/torchaudio/default.nix
+++ b/pkgs/development/python-modules/torchaudio/default.nix
@@ -116,6 +116,11 @@ buildPythonPackage {
kaldi = kaldi';
};
+ NIX_CFLAGS_COMPILE = [
+ "-I${lib.getDev kaldi'}/include/kaldi"
+ "-I${lib.getDev kaldi'}/include/openfst"
+ ];
+
meta = with lib; {
changelog = "https://github.com/pytorch/audio/releases/tag/v${version}";
description = "Data manipulation and transformation for audio signal processing, powered by PyTorch"; But then I encountered this error:
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Fails to link libsox right now, but progresses way further. Got some help by andir :)
|
The binary versions are not cached on hydra due to their output size exceeding the limit.
The binary versions are not cached on hydra due to their output size exceeding the limit.
opencore-amr | ||
pybind11 | ||
torch | ||
sox |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you run ninja || NIX_DEBUG=1 ninja -j1
than you might be able to get more verbose output from the compiler and binutils wrapper when linking libsox.so
Description of changes
I'm working on migrating tts and the trainer package away from the binary packages that won't be cached on hydra due to their size.
To that end I'm trying to package up torchaudio.
There are also some other cleanups in there and a cherry-pick of the latest torch bump from #202769
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes