-
Notifications
You must be signed in to change notification settings - Fork 57
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
wrong krunkit warning when no models yet running? #301
Comments
You are running with vmtype: applehv You need to switch this to libkrun (krunkit.) https://blog.podman.io/2024/07/podman-and-libkrun/ I am not sure if this fully works yet, although hopefully soon. You can run the workload within a container on a Podman Machine with libkrun (krunkit) but I don't think the container is fully turning on the GPU. @slp is working on this. |
I'm still on applehv myself, must switch to krunkit, at the moment, even if somebody switched to krunkit, it would still run via cpu inferencing until we get this PR merged and the container image pushed:
One piece of advice I got is don't install via I recently switched to the podman.io website version and it still seems to default to vfkit. Is this blog post: https://blog.podman.io/2024/07/podman-and-libkrun/ it seems like the key change is this file ~/.config/containers/containers.conf:
Is this the most up to date blog post @slp @baude ? Ah @rhatdan posted before I completed writing this response 😄 I hope libkrun becomes default out of the box soon. |
I'm not having great success myself if I'm honest:
|
I found my issue... @slp is this an artificial limit? /opt/podman/bin/krunkit --cpus 12 --memory 32768 I have 12 cores on my machine, so I try and configure that |
Not a fix but loosely related: |
I'm in business at least:
|
I followed the trail to here: https://github.com/containers/libkrunfw?tab=readme-ov-file#known-limitations But in the context of podman machine/krunkit we seem to run the standard everyday Fedora kernel which has a limit of 4096 CPUS?
@tylerfanelli @slp do we actually have this 8 CPU restriction in the podman machine/krunkit case? I'm not a podman machine/krunkit guru or anything though |
afaik I don't have installed via brew - just podman desktop and in podman desktop I get: I wonder why it seems podman on cli reports something different :/ |
@maxandersen I populated this file
ran
and all went well. Not ideal because I deleted all my existing podman machine stuff, dunno if that's necessary, but it worked... |
This also might be the fix @maxandersen This string is libkrun on my system at least |
@ericcurtin +1; after I recreated my machines as you reported i got libkrun too ....still weird why podman desktop reported something else...but the issue in ramalama is fixed with #303 |
I'll close now, feel free to re-open if needs be |
As I understand, the 8 CPU restriction is a temporary fix within krunkit, but >8 CPUs will be supported at some point. @slp Do I have this right? |
when I run
ramalama list
I get warning about not using krunkit. (Warning: podman needs to be configured to use krunkit for AI Workloads, running without containers
)if i run
podman machine info
i says vmtype applehv which uses krunkit.looking in the code the test done is running
podman machine list
which is empty on my machine.The text was updated successfully, but these errors were encountered: