Skip to content
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

Compatibility Issue when using v0.2.0 with transformers and tensorflow #1060

Open
aws-tianquaw opened this issue Oct 2, 2024 · 1 comment

Comments

@aws-tianquaw
Copy link

I recently encountered some compatibility issue when using sentencepiece v0.2.0 together with latest transformers and tensorflow packages. When I ran some Python script that imports AutoProcessor class from transformers, the Python kernel was killed with the following error message:

ERROR: Flag 'minloglevel' was defined more than once (in files 'src/error.cc' and 'home/conda/feedstock_root/build_artifacts/abseil-split_1720857154496/work/absl/log/flags.cc').

I tried to downgrade sentencepiece to v0.1.99 and then the issue was solved.

Commands to reproduce the issue:

conda create -n "py311" python=3.11
source activate py311
conda install -c conda-forge transformers==4.45 tensorflow==2.17 sentencepiece==0.2
python -c "from transformers import AutoProcessor"
@Genjidegaulle
Copy link

Running into a similar issue, with the same temporary resolution of downgrading sentencepiece to 0.1.99.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants