Erro torch.distributed #22704
influencia-app
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I installed Encodec in Termux using pip install encodec==0.1.0, but when I try to use it, I get an error related to 'torch.distributed'. It seems the problem comes from the torch library (python-torch). Is there a way to fix this without using a Proot environment?
Erro:
Traceback (most recent call last):
File "/data/data/com.termux/files/home/bark/1.py", line 1, in
from bark import SAMPLE_RATE, generate_audio, preload_models
File "/data/data/com.termux/files/home/bark/bark/init.py", line 1, in
from .api import generate_audio, text_to_semantic, semantic_to_waveform, save_as_prompt
File "/data/data/com.termux/files/home/bark/bark/api.py", line 5, in
from .generation import codec_decode, generate_coarse, generate_fine, generate_text_semantic
File "/data/data/com.termux/files/home/bark/bark/generation.py", line 6, in
from encodec import EncodecModel
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/encodec/init.py", line 12, in
from .model import EncodecModel
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/encodec/model.py", line 17, in
from . import quantization as qt
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/encodec/quantization/init.py", line 8, in
from .vq import QuantizedResult, ResidualVectorQuantizer
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/encodec/quantization/vq.py", line 16, in
from .core_vq import ResidualVectorQuantization
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/encodec/quantization/core_vq.py", line 41, in
from .. import distrib
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/encodec/distrib.py", line 32, in
def all_reduce(tensor: torch.Tensor, op=torch.distributed.ReduceOp.SUM):
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'torch.distributed' has no attribute 'ReduceOp'
Beta Was this translation helpful? Give feedback.
All reactions