premAI-io / prem-services

AI Services Maintained by Prem Core Team.
MIT License
6 stars 8 forks source link

Download Petals models from Torrent #113

Open filopedraz opened 1 year ago

filopedraz commented 1 year ago

Description

Instead of downloading the models from HF, the services should fetch the weights from Torrent.

Dependencies

biswaroop1547 commented 1 year ago

I can see few directions to achieve this (with questions):

Now eitherway to download using torrent, a bittorrent client will be required, given we are going with transmission client (might change later), it'd be a dependency for each service based on our current structure. We would have to use pre-built docker images of transmission and start them up in background like this, or merge transmission's dockerfile contents with our current service dockerfiles -- but that'd be too bloated I think.

What are your opinions here for the above two things? @casperdcl @filopedraz also since we are working towards removing usage of docker, how things should look like here?

filopedraz commented 1 year ago

Petals doesn't download the entire model, but only the layers that can be consumed by the client. We need to check how they handle that and then "replicate" the behavior to use torrent instead of HF.