Live data from Hacker News

Meta AI announces Massive Multilingual Speech code, models for 1000+ languages

github.com

211–220 of 232 posts

Re: Meta AI announces Massive Multilingual Speech code, models for 1000+ languages

#211

I'm trying to use this on a 3M mp3 file to test ASR with language code deu, CPU only, and I keep getting this error -- are there limits to the MMS inference? File "fairseq/data/data_utils_fast.pyx", line 30, in fairseq.data.data_utils_fast.batch_by_size_vec assert max_tokens process(args) File "/home/xxx/fairseq/examples/mms/asr/infer/mms_infer.py", line 44, in process

Same error here, CPU only, haven't find out a way to run this on GPU (cuda) yet

Re: Meta AI announces Massive Multilingual Speech code, models for 1000+ languages

#212
post #154

I just wanted to test out the TTS locally on a powerful Ubuntu 22.04 machine, but the process for setting it up seems pretty broken and poorly documented. After 20 minutes of trying I finally gave up since I couldn't get the VITS dependency to build (despite having a fully updated machine with all required compilers). It seems like they never really bother to see if the stuff works on a fresh machine starting from sc…

I wrote a colab to run TTS, it takes some time to install dependencies : https://colab.research.google.com/drive/11tZ1c7kQJ5uKImm9t-C... Overall I got pretty poor results in english and french, I guess it would require some fine-tuning

Thanks for this! Out of curiosity, how does vits play into this? I know nothing about the repo.

Also, I used the following to play the sound after it is generated:

from IPython.display import Audio, display display(Audio(output_file, autoplay=True))

Re: Meta AI announces Massive Multilingual Speech code, models for 1000+ languages

#213

I just wanted to test out the TTS locally on a powerful Ubuntu 22.04 machine, but the process for setting it up seems pretty broken and poorly documented. After 20 minutes of trying I finally gave up since I couldn't get the VITS dependency to build (despite having a fully updated machine with all required compilers). It seems like they never really bother to see if the stuff works on a fresh machine starting from sc…

I've created this environment.yml:

  name: fairseq
  channels:
    - conda-forge
    - pytorch
  dependencies:
    - python=3.9
    - Cython==0.29.21
    - librosa==0.8.0
    - matplotlib=3.3
    - numpy=1.19
    - scipy==1.5.2
    - tensorboard==2.3.0
    - pytorch=1
    - torchvision=0
    - Unidecode==1.1.1
    - pip:
        - phonemizer==2.2.1
You can install it with micromamba (or conda):

  conda create -f environment.yml
  conda activate fairseq
You'll need to do this:

  cd path/to/vits/monotonic_align
  mkdir monotonic_align
  python setup.py build_ext --inplace
Then back to fairseq:

  cd path/to/fairseq
  PYTHONPATH=$PYTHONPATH:path/to/vits python examples/mms/tts/infer.py --model-dir checkpoints/eng --wav outputs/eng.wav --txt "As easy as pie"
(Note: On MacOS, I had to comment out several .cuda() calls in infer.py to make it work. But then it generates high-quality speech very efficiently. I'm impressed.)

Re: Meta AI announces Massive Multilingual Speech code, models for 1000+ languages

#215
post #23

Earlier quoted context omitted.

Nah, full-on babelfish is simply not possible. The meaning of the beginning of a sentence can be modified retroactively by the end of the sentence. This means that the Babelfish must either be greatly delayed or awkwardly correct itself every once in a while.

That’s why the babelfish translates brainwaves rather than sounds, which is especially important for communicating with our nonverbal alien neighbors.

It’s also good at translating the vagaries of alien poetry into English

Re: Meta AI announces Massive Multilingual Speech code, models for 1000+ languages

#216

Earlier quoted context omitted.

Google Translate is still inferior to ChatGPT 3.5. I suspect this style of model is significantly more expensive to run and Google doesn't want to give it away for free. Really, the only problem with ChatGPT is that it refuses to translate things that go against its nanny programming, which can make it almost worse than useless in some real-life situations.

I tried ChatGPT 3.5 against Google Translate, translating English to Greek, my native language, and they perform almost the same. The text was difficult text of science fiction, fantasy stuff and the results were tolerable. Roughly 50% of the text had to be manually rewritten. Maybe for more casual sentences and not so difficult text, they perform better, i haven't tried. Anyways, they are both better than nothing.

Performance does vary with languages. In italian GPT blows translate away. The UI is not as nice but at least you can get it to translate to multiple languages in one go.

Re: Meta AI announces Massive Multilingual Speech code, models for 1000+ languages

#217
post #76
post #70

Earlier quoted context omitted.

Wait why is renting a GPU in the cloud not a solution? You can even try multiple options and see which ones are capable enough for your use case. Look into some barebones cloud GPU services, for example Lambda Labs which is significantly cheaper than AWS/GCP but offers basically nothing besides the machine with a GPU. You could even try something like Vast in which people rent out their personal GPU machines for chea…

My annoyance was managing state. I’d have to spend hours installing tools, downloading data, updating code, then when I want to go to bed I have to package it up and store as much as I can on s3 before shutting off the $$ server.

Aren't Vortex AI Workbooks on Google Cloud exactly the tool to solve this?

Re: Meta AI announces Massive Multilingual Speech code, models for 1000+ languages

#218
post #168

Earlier quoted context omitted.

What do you mean by assembly needed? I looked them up and they look like normal gfx cards. Am I missing something?

They're datacenter GPUs so you need special power supplies and an adapter to connect it to a regular motherboard.

[deleted]

Re: Meta AI announces Massive Multilingual Speech code, models for 1000+ languages

#219
post #166

Earlier quoted context omitted.

What is their advantages?

apparently there are a group of folks finetuning with these cards.

Source? I own 3 and I would take a single 3090 any day. M40s are simply too old.

Re: Meta AI announces Massive Multilingual Speech code, models for 1000+ languages

#220
post #195
post #80

Earlier quoted context omitted.

You can finetune whisper, stable diffusion, and LLM up to about 15B parameters with 24GB VRAM. Which leads you to what hardware to get. Best bang for the $ right now is definitely a used 3090 at ~$700. If you want more than 24GB vram just rent the hardware as it will be cheaper. If you're not willing to drop $700 don't buy anything just rent. I have had decent luck with vast.ai

Can we use 3090 or nvidia gpus in general with mac? do people generally have their windows dekstop for the gpus?

No clue but if you want learn/finetuned ML use a Linux box otherwise you will spend all your time fighting your machine. If you just want to run models Mac might work.
Post reply on HN