Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
ee2482b6
Unverified
Commit
ee2482b6
authored
Jan 10, 2024
by
Joao Gante
Committed by
GitHub
Jan 10, 2024
Browse files
CI: limit natten version (#28432)
parent
ffd37103
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
.circleci/create_circleci_config.py
.circleci/create_circleci_config.py
+2
-2
.github/workflows/check_tiny_models.yml
.github/workflows/check_tiny_models.yml
+2
-2
docker/transformers-all-latest-gpu/Dockerfile
docker/transformers-all-latest-gpu/Dockerfile
+2
-2
setup.py
setup.py
+1
-1
src/transformers/dependency_versions_table.py
src/transformers/dependency_versions_table.py
+1
-1
No files found.
.circleci/create_circleci_config.py
View file @
ee2482b6
...
@@ -470,7 +470,7 @@ exotic_models_job = CircleCIJob(
...
@@ -470,7 +470,7 @@ exotic_models_job = CircleCIJob(
"pip install -U --upgrade-strategy eager 'git+https://github.com/facebookresearch/detectron2.git'"
,
"pip install -U --upgrade-strategy eager 'git+https://github.com/facebookresearch/detectron2.git'"
,
"sudo apt install tesseract-ocr"
,
"sudo apt install tesseract-ocr"
,
"pip install -U --upgrade-strategy eager pytesseract"
,
"pip install -U --upgrade-strategy eager pytesseract"
,
"pip install -U --upgrade-strategy eager natten"
,
"pip install -U --upgrade-strategy eager
'
natten
<0.15.0'
"
,
"pip install -U --upgrade-strategy eager python-Levenshtein"
,
"pip install -U --upgrade-strategy eager python-Levenshtein"
,
"pip install -U --upgrade-strategy eager opencv-python"
,
"pip install -U --upgrade-strategy eager opencv-python"
,
"pip install -U --upgrade-strategy eager nltk"
,
"pip install -U --upgrade-strategy eager nltk"
,
...
@@ -514,7 +514,7 @@ doc_test_job = CircleCIJob(
...
@@ -514,7 +514,7 @@ doc_test_job = CircleCIJob(
"pip install -U --upgrade-strategy eager -e .[dev]"
,
"pip install -U --upgrade-strategy eager -e .[dev]"
,
"pip install -U --upgrade-strategy eager -e git+https://github.com/huggingface/accelerate@main#egg=accelerate"
,
"pip install -U --upgrade-strategy eager -e git+https://github.com/huggingface/accelerate@main#egg=accelerate"
,
"pip install --upgrade --upgrade-strategy eager pytest pytest-sugar"
,
"pip install --upgrade --upgrade-strategy eager pytest pytest-sugar"
,
"pip install -U --upgrade-strategy eager natten"
,
"pip install -U --upgrade-strategy eager
'
natten
<0.15.0'
"
,
"pip install -U --upgrade-strategy eager g2p-en"
,
"pip install -U --upgrade-strategy eager g2p-en"
,
"find -name __pycache__ -delete"
,
"find -name __pycache__ -delete"
,
"find . -name \*.pyc -delete"
,
"find . -name \*.pyc -delete"
,
...
...
.github/workflows/check_tiny_models.yml
View file @
ee2482b6
...
@@ -36,7 +36,7 @@ jobs:
...
@@ -36,7 +36,7 @@ jobs:
pip install --upgrade pip
pip install --upgrade pip
python -m pip install -U .[sklearn,torch,testing,sentencepiece,torch-speech,vision,timm,video,tf-cpu]
python -m pip install -U .[sklearn,torch,testing,sentencepiece,torch-speech,vision,timm,video,tf-cpu]
pip install tensorflow_probability
pip install tensorflow_probability
python -m pip install -U natten
python -m pip install -U
'
natten
<0.15.0'
-
name
:
Create all tiny models (locally)
-
name
:
Create all tiny models (locally)
run
:
|
run
:
|
...
...
docker/transformers-all-latest-gpu/Dockerfile
View file @
ee2482b6
...
@@ -65,7 +65,7 @@ RUN python3 -m pip install --no-cache-dir git+https://github.com/huggingface/opt
...
@@ -65,7 +65,7 @@ RUN python3 -m pip install --no-cache-dir git+https://github.com/huggingface/opt
RUN
python3
-m
pip
install
--no-cache-dir
decord
av
==
9.2.0
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
<0.15.0
-f
https://shi-labs.com/natten/wheels/
$CUDA
/
# 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
...
...
setup.py
View file @
ee2482b6
...
@@ -130,7 +130,7 @@ _deps = [
...
@@ -130,7 +130,7 @@ _deps = [
"keras-nlp>=0.3.1"
,
"keras-nlp>=0.3.1"
,
"librosa"
,
"librosa"
,
"nltk"
,
"nltk"
,
"natten>=0.14.6"
,
"natten>=0.14.6
,<0.15.0
"
,
"numpy>=1.17"
,
"numpy>=1.17"
,
"onnxconverter-common"
,
"onnxconverter-common"
,
"onnxruntime-tools>=1.4.2"
,
"onnxruntime-tools>=1.4.2"
,
...
...
src/transformers/dependency_versions_table.py
View file @
ee2482b6
...
@@ -36,7 +36,7 @@ deps = {
...
@@ -36,7 +36,7 @@ deps = {
"keras-nlp"
:
"keras-nlp>=0.3.1"
,
"keras-nlp"
:
"keras-nlp>=0.3.1"
,
"librosa"
:
"librosa"
,
"librosa"
:
"librosa"
,
"nltk"
:
"nltk"
,
"nltk"
:
"nltk"
,
"natten"
:
"natten>=0.14.6"
,
"natten"
:
"natten>=0.14.6
,<0.15.0
"
,
"numpy"
:
"numpy>=1.17"
,
"numpy"
:
"numpy>=1.17"
,
"onnxconverter-common"
:
"onnxconverter-common"
,
"onnxconverter-common"
:
"onnxconverter-common"
,
"onnxruntime-tools"
:
"onnxruntime-tools>=1.4.2"
,
"onnxruntime-tools"
:
"onnxruntime-tools>=1.4.2"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment