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

If podman or docker is available and we are not in a container #6

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

ericcurtin
Copy link
Collaborator

@ericcurtin ericcurtin commented Jul 27, 2024

We should re-exec this script inside a llama.cpp container (incomplete
in this commit), truth is these AI runtime evironment are complex to
set up by say installing a few packages, etc. The often require a
certain version of mesa, llama.cpp, kernel drivers, ROCm, the list goes
on and on depending on hardware. Although if one does want
to run outside a container and or say they are running on macOS we
should support that.

ramalama Outdated
def select_container_manager():
if available("podman"):
return "podman"
elif available("docker"):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sed s/elif/if

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushing with this change

We should re-exec this script inside a llama.cpp container (incomplete
in this commit), truth is these AI runtime evironment are complex to
set up by say installing a few packages, etc. The often require a
certain version of mesa, llama.cpp, kernel drivers, ROCm, the list goes
on and on depending on hardware. Although if one does want
to run outside a container and or say they are running on macOS we
should support that.

Signed-off-by: Eric Curtin <[email protected]>
@rhatdan
Copy link
Member

rhatdan commented Jul 28, 2024

LGTM

@rhatdan rhatdan merged commit 384be54 into main Jul 28, 2024
2 checks passed
@ericcurtin ericcurtin deleted the container-check branch July 28, 2024 11:16
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

Successfully merging this pull request may close these issues.

2 participants