-
Notifications
You must be signed in to change notification settings - Fork 113
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
Support Hugging Face Transformers #276
Comments
Could you please post the package name and what command fails for you? |
Hi sure: |
I tried it and I got a different error - it couldn't build |
Yes I got your same error at first then the CLI suggested upgrading pip so I did and then I got the last error, so I thought that by upgrading |
There's no github issue, but I can keep this one updated. But there's more things that will need to happen for this package to work - for example, we currently don't support recent numpy versions that are required by the package. That's also being worked on. |
@msimacek any update on this? |
The numpy update is almost finished. I have no update from Sulong team on the Rust issue. |
Do you know if it is in their (Sulong team) interest to fix it? |
Yes, it is. And they are working on it. It's just a very complex change. |
thank you so much for the info @msimacek |
Hi @msimacek do you have any update on this? |
No, still in progress |
@msimacek hi! Any progress on this? |
Hi, we now support newer numpy, which was one of the items that was blocking this. The rust issue is still unsolved. |
@msimacek Hi! Do you know the status of the rust issue? Thank you so much! |
We have introduced a new C API backend that uses native execution instead of LLVM on Sulong. That should completely circumvent the issue we were having with passing values to rust. However, the |
For reference, the PyO3 issue is here: PyO3/pyo3#3052. We also need to update https://github.com/PyO3/maturin, since it has similarly hardcoded PyPy and CPython. I am in the process of fixing those issues, but it's turning into a larger pull request than I anticipated. |
With the most recent nightly builds I can use things like GPT-2 or StableDiffusion from Huggingface hub just fine, through |
Latest relase on Maven Central is 24.0.1. Is it included already? If not ... where to find the nightly builds? |
Tried to get it running with 24.0.1 ... but seems numpy is not working in current version ...
|
It's not in the 24 release, you would have to use the dev builds from https://github.com/graalvm/graalvm-ce-dev-builds/releases |
You seem to be importing from |
Many examples with Unfortunately, all the dependencides have to be built from source during the installation, which is slow and requires you to have the right compiler and libraries in the system. Hopefully, in the future we will have prebuilt binary wheels for them. |
Is there any plan to support Hugging Face Transformers? They are the next (maybe current) big thing in Python
I'm trying to make it work right now but I'm getting the various errors and one of them is:
com.oracle.truffle.api.CompilerDirectives$ShouldNotReachHere: writeByte not implemented
The text was updated successfully, but these errors were encountered: