Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Consumer: add examples on how to use Prem with docker CLI directly #66

Open
tiero opened this issue Aug 25, 2023 · 3 comments
Open

Consumer: add examples on how to use Prem with docker CLI directly #66

tiero opened this issue Aug 25, 2023 · 3 comments
Assignees

Comments

@tiero
Copy link
Contributor

tiero commented Aug 25, 2023

At the moment the only way to interact with services is to spins up daemon & app as services, but many developers may find easier for testing or work in production to only run the exact container needed for their application, after thei done exploring through the app.

I think is worth to add an extra category here for users, something like "Use with Docker" and will point to ready-made snippets that involves the use of docker CLI. I do imagine

  • Run a service (detached, with a nice name, restart on failure, attach GPU etc..)
  • Check the logs (with tail of last 200 maybe)
  • Stop/Delete a service

A bonus point would be to setup a simple docker swarm and define a number of desired replicas for the service.

@tiero tiero changed the title Consumer: add examples on how to use Prem with docker CLI Consumer: add examples on how to use Prem with docker CLI directly Aug 25, 2023
@casperdcl
Copy link
Contributor

casperdcl commented Aug 25, 2023

Maybe it's better to do this in the App? i.e. in the model card, print the docker command needed to run things, e.g. on https://registry.premai.io/detail.html?service=tabby-codegen-2b display:

docker run --gpus all -p 10111:8080 -v tabbyml-data:/data -d tabbyml/tabby serve --model TabbyML/Codegen-2B --device cuda

@tiero
Copy link
Contributor Author

tiero commented Aug 25, 2023

Yes also in the app could be a great place, and I would say also the registry at this point! I'll keep the issue in this repo for time being, will move it

@filopedraz
Copy link
Contributor

Yep, we can include it in the documentation of each service.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants