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

add web demo to Huggingface #2

Closed
AK391 opened this issue Apr 27, 2022 · 10 comments
Closed

add web demo to Huggingface #2

AK391 opened this issue Apr 27, 2022 · 10 comments

Comments

@AK391
Copy link

AK391 commented Apr 27, 2022

Hi, would you be interested in adding tortoise-tts web demo to Hugging Face using Gradio? I see there is already models setup on Huggingface for this repo https://huggingface.co/jbetker

here is a guide for adding spaces to your org or username

How to add a Space: https://huggingface.co/blog/gradio-spaces

Example spaces with repos:
github: https://github.com/salesforce/BLIP
Spaces: https://huggingface.co/spaces/salesforce/BLIP

github: https://github.com/facebookresearch/omnivore
Spaces: https://huggingface.co/spaces/akhaliq/omnivore

a Gradio Demo can be setup in 2 lines of code using the inference api (if enabled) integration through huggingface

import gradio as gr
gr.Interface.load("huggingface/jbetker/tortoise-tts-v2").launch()

would launch the demo

Please let us know if you would be interested and if you have any questions.

@neonbjb
Copy link
Owner

neonbjb commented Apr 27, 2022

I'd love to do this, but this model will not run on CPUs (inference will take hours or more). I read that GPU runtimes are for organizations only. Let me know if this understanding is wrong..

@neonbjb neonbjb closed this as completed Apr 27, 2022
@AK391
Copy link
Author

AK391 commented Apr 27, 2022

@neonbjb great, from the spaces docs https://huggingface.co/docs/hub/spaces

"Each Spaces environment is limited to 16GB RAM and 8 CPU cores. Organization subscribers (Lab, Startup, and Enterprise) can access Spaces with one T4 GPU on a case-by-case basis. Please email us at website at huggingface.co or let us know on Twitter if you need one."

GPU's can be assigned to individual accounts as well if requested

I can also send a request for GPU for a space once its setup

@neonbjb
Copy link
Owner

neonbjb commented Apr 27, 2022

Awesome, I'd be glad to do this then! Expect something in the next day or two..

@neonbjb neonbjb reopened this Apr 27, 2022
@osanseviero
Copy link
Contributor

osanseviero commented Apr 27, 2022

Hey there, if it's ok I would love to work on this. I'm actually half-way done through it 🚀 Working on https://huggingface.co/spaces/osanseviero/tortoisse-tts and happy to transfer once done.

@neonbjb
Copy link
Owner

neonbjb commented Apr 27, 2022

Sure, have at it. I'll await your pr.

@osanseviero
Copy link
Contributor

You can find a working demo in https://huggingface.co/spaces/osanseviero/tortoisse-tts 🔥

@neonbjb
Copy link
Owner

neonbjb commented Apr 28, 2022

Hmm looks like it is running out of RAM? Did you get it to work without this error?

Tortoise shouldn't need more than 16GB of RAM, but this may be a result of doing the computations in on CPU. I'll have to profile it to be sure.

@osanseviero
Copy link
Contributor

I restarted it and it's up again, but I haven't looked at why we got a out of RAM issue before.

@neonbjb
Copy link
Owner

neonbjb commented May 6, 2022

Space created: https://huggingface.co/spaces/jbetker/tortoise; I'll contact website@ to see if I can get a GPU instance dedicated to it.

@neonbjb
Copy link
Owner

neonbjb commented May 13, 2022

Closing this out.

@neonbjb neonbjb closed this as completed May 13, 2022
vue9v2 pushed a commit to vue9v2/tortoise-tts that referenced this issue Aug 10, 2023
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

3 participants