-
Notifications
You must be signed in to change notification settings - Fork 108
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
Detect Ubuntu Asahi during container setup #727
Comments
You're gonna have to help me with a super cheap detection technique for Asahi. From the above I guess:
contains the "asahi" string too? That might be a portable technique we can use for Fedora and Ubuntu for a while. I don't want to get your hopes up, even when you pull the Asahi container and it works, the GPU inferencing will be slow, the enablement work isn't done for that. You are likely better off with CPU-based inferencing. Tagging @asahilina just to make her aware that llama.cpp demand is increasing for Asahi, hence it's also increasing for RamaLama as a user of llama.cpp |
✅ |
That only works for systems running downstream kernels, not upstream. If you just want to know "is this an Apple ARM machine?", the "canonical" way to do that is something like |
Thanks @asahilina will test that and add to the PR |
|
A better way might be to set an environment variable within the image to identify the image type. One issue with doing it based on command line, is that someone could launch service on a different container based on the asahi container. Lets change the containerfiles to set the GPU type as an environment variable. ENV ASAHI_VISIBLE_DEVICES 1 During the build, then during the run, there is no issue. |
Note that there are NULs separating the entries (it's a list of back to back NUL-terminated strings). |
We can hardcode this in the Asahi container. But the reason we try to detect is asahi has a special image (it's a different version of mesa, a downstream fork), just like we detect for ROCm, CUDA and pull the right container. So we would still need the detection code. |
Ok PR was merged for this, please verify the upstream fixes your issue. |
I guess this was the source? Seems to work well enough.. |
#526 is failing to detect and use the ashi image on Ubuntu Asahi - ref:
Originally posted by @chrootchad in #616
The text was updated successfully, but these errors were encountered: