Gather ideas of how to shape the Dockerfile for alltalk beta #378
Replies: 6 comments 15 replies
-
An example of a Dockerfile which packages alltalk and picking xtts as model, yet not fulfilling many of the requirements, is:
This can be built with |
Beta Was this translation helpful? Give feedback.
-
Hi @Paladinium What you have put above sounds great :) and I would love to have your help to do this. However, I have a small bit of code to complete withing the script.py code so that it identifies the Gradio interface is running within Docker. The API address will work fine, but the Gradio interface has to be pointed to the external IP address of wherever the API address is running from. If you are running docker on a local machine, it should (I think) work, but if you are running it somewhere on the internet in the cloud, it wont work. Ive already done Google Colab, so that automatically picks up the tunnel addresses and pushes the IP/URL into the code as necessary when AllTalk starts up and I am kind of doing the same with when it detects a docker style environment. I have about 95% of the code written (somewhere on my home machine) but then this happened link here a couple of months ago and I have been traveling away from home for a couple of months now. I still dont have a timeline when I will be back and able to finish it, it could be a week, it could be a month and I suppose there could be other possible timelines too (will make sense when you read the link). I think I will be updating the Pytorch version in future, which may knock a few other requirements versions in the requirements files, but I don't think that would cause you any blips. However, please see my notes about the transformers versions on the link I gave above. Its out of my hands getting a later version of transformers for Coqui TTS streaming to work, its handled by idiap, but they do appear to be discussing it/working on it https://github.com/idiap/coqui-ai-TTS. Also, Microsoft are finally starting to release pre-built wheels for Pytorch, so we may be able to do a generic link to just So, you should be able to get a docker build running on the API and call it with Command prompt CURL/SillyTavern Extension/TGWUI Remote Extension/, but the Gradio interface wont work yet*. I am not great on Docker at all, but my brief glance says what you have done above and suggest looks good to me! :) Hopefully I can get back to you soon, or maybe remote into my home machine and try check the code and post it up, though I have to be careful to make sure it doesnt knock something else out of whack and Im not exactly on the best laptop in the world to be able to remote control my home machine for coding. :/ If anyone else has any other thoughts/ideas and would like to get involved in this chat, it would be great!And thanks again @Paladinium |
Beta Was this translation helpful? Give feedback.
-
I came across this for optimising docker image sizes. Its supposedly good, but I don't know enough about docker to say how easy this would be to use or what impact it may have. I'm leaving it here for reference as I'm happy to give it a shot when a docker image gets built https://github.com/slimtoolkit/slim Claims of up to 30x reduction in size |
Beta Was this translation helpful? Give feedback.
-
Looking at issues tho shouldnt get hopes up. AI docker images are already
very hard to get working in the first place
…On Sun, 8 Dec 2024, 11:24 erew123, ***@***.***> wrote:
I came across this for optimising docker image sizes. Its supposedly good,
but I don't know enough about docker to say how easy this would be to use
or what impact it may have. I'm leaving it here for reference as I'm happy
to give it a shot when a docker image gets built
https://github.com/slimtoolkit/slim
Claims of up to 30x reduction in size
—
Reply to this email directly, view it on GitHub
<#378 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQC2ZKTXQUU7RESCD7MYMMD2EQF6BAVCNFSM6AAAAABP5BHJT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNBZHA2DGNQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@vlrevolution it sounds like you managed to get a docker image working, if yes, would you mind sharing that one with us? I'd love to test that. 😄 |
Beta Was this translation helpful? Give feedback.
-
Docker BETA buildDocker BETA build has been added, thanks to @Paladinium The WIKI page on it is here https://github.com/erew123/alltalk_tts/wiki/Docker-Support-(Beta) This is a work in progress and this page here is the discussion area. Thanks |
Beta Was this translation helpful? Give feedback.
-
I would like to start a discussion of how to build a Dockerfile for alltalk beta, but also what the requirements are. This should support the process of crafting actual Dockerfiles.
Goal of having Docker
The advantages of Docker are quite obvious: There is no need for local installations and dealing with dependencies and incompatibilities. Instead, a Docker image should provide everything needed to run alltalk. Also, it makes it easier to ship alltalk to production.
Requirements
Just to give an idea of what kind of requirements are possible:
docker run
, alltalk should be up and running without the need for downloading dependencies. Startup time should therefore be in the order of seconds.conda install -y pytorch::faiss-cpu
and instead useconda install -y pytorch::faiss-cpu=1.9.0
)--no-deps
to be usedFROM alltalk/alltalk:2.0
docker buildx build
, there should be the possibility of "configuring" the image, e.g. by passing build args, e.g. for picking the model to use or providing some other means of configuration, e.g. by mounting config files, without having to modify the actual source code of alltalk.alltalk-xtts:2.0
oralltalk-piper:2.0
Misc
Feel free to provide examples of Dockerfiles or state your further/other requirements.
Beta Was this translation helpful? Give feedback.
All reactions