-
Notifications
You must be signed in to change notification settings - Fork 5
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
Pygemma not getting build on mac when I do it in virtual environment. #16
Comments
Can you try to install it from source as instructed here? You can refer to this example file to see new APIs of the library. |
yeah I tried building it from source , but when i ran it I got this error : Abort at /Users/username/Documents/pygemma/gemma-cpp-python-0.1.3/build/temp.macosx-14.0-arm64-cpython-312/_deps/gemma-src/gemma.cc:823: Failed to load the tokenizer file. |
Have you already built successfully? From the error message looks like maybe there is a problem with the tokenizer file you are using to load model |
I built successfully now I also loaded the tokenizer but now I am gettting this error when I run the code? |
My Code : gemma = Gemma() |
If I am correct, you are still using the older version of Here is the how you may use the new version of from pygemma import Gemma, ModelType, ModelTraining
gemma = Gemma(
tokenizer_path=<TOKENIZER_PATH>,
compressed_weights_path=<COMPRESSED_WEIGHTS_PATH>,
model_type=ModelType.Gemma2B,
model_training=ModelTraining.GEMMA_IT,
)
output = gemma("Write a poem") |
Collecting pygemma==0.1.3
Using cached pygemma-0.1.3.tar.gz (4.0 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pygemma
Building wheel for pygemma (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pygemma (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [63 lines of output]
running bdist_wheel
running build
running build_ext
CMake Warning:
Ignoring extra path from command line:
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pygemma
Failed to build pygemma
ERROR: Could not build wheels for pygemma, which is required to install pyproject.toml-based projects
The text was updated successfully, but these errors were encountered: