pin specific natten version in docker file (#37274)

fix

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Yih-Dar
2025-04-04 13:47:16 +02:00
committed by GitHub
parent edd345b52e
commit 352ec8ef22

View File

@@ -57,7 +57,8 @@ RUN python3 -m pip uninstall -y ninja
# For `dinat` model # For `dinat` model
# The `XXX` part in `torchXXX` needs to match `PYTORCH` (to some extent) # The `XXX` part in `torchXXX` needs to match `PYTORCH` (to some extent)
RUN python3 -m pip install --no-cache-dir natten==0.15.1+torch220$CUDA -f https://shi-labs.com/natten/wheels # pin `0.17.4` otherwise `cannot import name 'natten2dav' from 'natten.functional'`
RUN python3 -m pip install --no-cache-dir natten==0.17.4+torch250cu121 -f https://shi-labs.com/natten/wheels
# For `nougat` tokenizer # For `nougat` tokenizer
RUN python3 -m pip install --no-cache-dir python-Levenshtein RUN python3 -m pip install --no-cache-dir python-Levenshtein