ctcdecode icon indicating copy to clipboard operation
ctcdecode copied to clipboard

Share how to install successful "ctcdecode"

Open jeonhuhuhu opened this issue 1 year ago • 6 comments

After much struggle with installation, I am now sharing a definitive environment. This is undoubtedly a solid environment where the ctcdecode module works reliably.

"I have confirmed that the installation was successful after repeating the installation process five times consecutively in the same environment." Screenshot from 2024-02-19 15-23-35

The installation environment is as follows:"

  • OS: Ubuntu 20.04 LTS (RTX GPU, Compute Capability = 8.9), CUDA v12.0
  • CUDA version: https://developer.nvidia.com/cuda-gpus

[INSTALLATION]

  1. conda create -n [name] python=3.8
  2. conda install pytorch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0 pytorch-cuda=12.1 -c pytorch -c nvidia

*But, torchdata 0.7.1 requires torch>=2, but you have torch 1.12.0 which is incompatible.

jeonhuhuhu avatar Feb 19 '24 06:02 jeonhuhuhu

That works!Thank you!

qianzhouyi2 avatar Mar 05 '24 10:03 qianzhouyi2

Can confirm, thanks!

image

([name]) lol xD

nofreewill42 avatar Mar 24 '24 19:03 nofreewill42

Can confirm, thanks!

image

([name]) lol xD

Hello, could you please let me know what were the exact steps you followed to install this? Is it necessary to use conda here or can I use pip as well? Currently using docker to create the same env as mentioned in op.

rigved-desai avatar Mar 31 '24 09:03 rigved-desai

Hey there! I've literally just copy pasted OP's step 1 and 2 from:

[INSTALLATION]

conda create -n [name] python=3.8
conda install pytorch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0 pytorch-cuda=12.1 -c pytorch -c nvidia

And then ran

pip install .

because that's what I saw on their terminal.

You might want to try creating a very new conda environment for this. And btw if you update some of the requirements ctcdecode has, it probably won't work anymore.

nofreewill42 avatar Apr 02 '24 02:04 nofreewill42

Is it possible to install ctcdecode without having a Cuda GPU? Thank You

yulrio avatar May 24 '24 10:05 yulrio

I changed the system image to Ubuntu 22.0+ version, then ran "pip install torch==2.0.0" It's solved.

yeeching0571 avatar Jul 19 '24 23:07 yeeching0571