Closed scarlettekk closed 1 month ago
Hi @scarlettekk, how did you install the latest commit?
I was able to import properly the latest commit by doing this:
cd ai-edge-torch # my github root
git switch main # ensure you are on main branch
git pull # ensure you are up to date
pip install -e . # install the current code in your current environment, python=3.11 was previously installed
python
>>> import ai_edge_torch
Does this work if you start in a fresh environment? Thanks.
Hi @scarlettekk @pkgoogle, I also got the same error with python3.10 environment using the following approach, but when I switched to python3.11 and re-installed ai-edge-torch the same way, the error disappeared. Hope this is helpful.
cd ai-edge-torch # my github root
git switch main # ensure you are on main branch
git pull # ensure you are up to date
pip install -e . # install the current code in your current environment, python=3.11 was previously installed
python
>>> import ai_edge_torch
Marking this issue as stale since it has been open for 7 days with no activity. This issue will be closed if no further activity occurs.
This issue was closed because it has been inactive for 14 days. Please post a new issue if you need further assistance. Thanks!
what version of tensorflow is necessary? nightly 2.19?
( need to make readme clear if its necessary to use later tensorflow release for nightly builds.)
UPDATE - that didn't work.
my pip freeze + also logs from install pip install -e . https://gist.github.com/johndpope/53edcfabfa59e8294323b3aa2d1cd2e3
Description of the bug:
I was trying to use the latest commit version to convert gemma2 since it seems like 0.2.0 doesn't support it. However, I can't even import it:
Actual vs expected behavior:
Expected: The library imports normally
Actual: The library fails to import
Any other information you'd like to share?
Trying to use https://github.com/google-ai-edge/ai-edge-torch/blob/main/ai_edge_torch/generative/examples/gemma/convert_gemma2_to_tflite.py