Skip to content
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

Recommended ways to install k2 #1232

Open
csukuangfj opened this issue Jul 23, 2023 · 4 comments
Open

Recommended ways to install k2 #1232

csukuangfj opened this issue Jul 23, 2023 · 4 comments

Comments

@csukuangfj
Copy link
Collaborator

I just updated the doc about installing k2. Please see

https://k2-fsa.github.io/k2/installation/from_wheels.html#

Screenshot 2023-07-23 at 21 58 41
@csukuangfj csukuangfj pinned this issue Jul 23, 2023
@npovey
Copy link

npovey commented Aug 1, 2023

Hi,
I am getting this error when training a zipformer model

AttributeError: module 'k2' has no attribute 'swoosh_r'

here is my installation of icefall
https://medium.com/@nadirapovey/k2fsa-icefall-instalation-1085fae845d2
in short I did:

(venv) np@np-INTEL:~/anna$ pip install k2==1.21.dev20221008+cuda11.3.torch1.12.1 -f https://k2-fsa.org/nightly/

@csukuangfj
Copy link
Collaborator Author

Please update your k2.

Please follow our latest doc to install k2.
https://k2-fsa.github.io/k2/installation/from_wheels.html

@csukuangfj
Copy link
Collaborator Author

In your case, please replace

pip install k2==1.21.dev20221008+cuda11.3.torch1.12.1 -f https://k2-fsa.org/nightly/

with

pip install k2==1.24.3.dev20230725+cuda11.3.torch1.12.1 -f https://k2-fsa.github.io/k2/cuda.html

@npovey
Copy link

npovey commented Aug 1, 2023

Thanks Fangjun,
It worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants