-
Notifications
You must be signed in to change notification settings - Fork 929
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
feat: Implement system packages option for --image-type #1555
base: main
Are you sure you want to change the base?
Conversation
…-llama#1551)" This reverts commit e13c92f. Co-Authored-By: Sébastien Han <seb@redhat.com> Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
@leseb what do you think of this interface? |
a1b7b78
to
14b6eb5
Compare
It will enforce using the current environment packages. Note: this patch makes the original implementation not touch the default `conda` value for the argument. Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
14b6eb5
to
40fa729
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t see why we need to introduce a new image type. My patch only changes things for users who were using Conda - they now need to explicitly call it in the CLI. So essentially, this used to work fine if you had conda:
llama stack run <config> --image-name foo
Or without --image-name
if CONDA_DEFAULT_ENV was present.
Now you need to do:
llama stack run --image-type=conda --image-name=foo <config>
Or without --image-name
if CONDA_DEFAULT_ENV is present.
If we want to ease the experience for conda users, perhaps we can set image_type=conda if |
I think @leseb is making a good point; @ashwinb what's the exact reason |
|
@booxter @ashwinb how about going with just this #1555 (comment) for now? It's simple, doesn't break conda users, and allows to run without a new system flag? Thanks! |
@leseb AFAIU when you call |
I think the I think the ultimate path is to make @ashwinb I know we reverted the original patch that defaulted to "system packages" mode before back to conda. I wonder we should proliferate (It's a bit unfortunate that |
system
option for--image-type
What does this PR do?
This is a second attempt to implement system packages option for
run
. Nowit's selected explicitly by passing
--image-type system
torun
command. Theprevious attempt implicitly assumed that the default behavior is to use system
packages; and it broke existing
conda
users.Test Plan
Confirmed that this starts the server:
(
venv
was pre-initialized with--image-type venv
.)