Install python-Levenshtein for nougat in CI image (#27465)
fix Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -67,6 +67,9 @@ RUN python3 -m pip install --no-cache-dir decord av==9.2.0
|
|||||||
# For `dinat` model
|
# For `dinat` model
|
||||||
RUN python3 -m pip install --no-cache-dir natten -f https://shi-labs.com/natten/wheels/$CUDA/
|
RUN python3 -m pip install --no-cache-dir natten -f https://shi-labs.com/natten/wheels/$CUDA/
|
||||||
|
|
||||||
|
# For `nougat` tokenizer
|
||||||
|
RUN python3 -m pip install --no-cache-dir python-Levenshtein
|
||||||
|
|
||||||
# When installing in editable mode, `transformers` is not recognized as a package.
|
# When installing in editable mode, `transformers` is not recognized as a package.
|
||||||
# this line must be added in order for python to be aware of transformers.
|
# this line must be added in order for python to be aware of transformers.
|
||||||
RUN cd transformers && python3 setup.py develop
|
RUN cd transformers && python3 setup.py develop
|
||||||
|
|||||||
Reference in New Issue
Block a user