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
d1a1bcf5
Unverified
Commit
d1a1bcf5
authored
Jul 12, 2024
by
Joao Gante
Committed by
GitHub
Jul 12, 2024
Browse files
Docker: TF pin on the consistency job (#31928)
* pin * dev-ci * dev-ci * dev-ci * test pushed image
parent
aec1ca3a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
docker/consistency.dockerfile
docker/consistency.dockerfile
+3
-3
No files found.
docker/consistency.dockerfile
View file @
d1a1bcf5
...
...
@@ -6,10 +6,10 @@ RUN apt-get update && apt-get install -y time git pkg-config make git-lfs
ENV
UV_PYTHON=/usr/local/bin/python
RUN
pip
install
uv
&&
uv venv
&&
uv pip
install
--no-cache-dir
-U
pip setuptools GitPython
RUN
uv pip
install
--no-cache-dir
--upgrade
'torch'
--index-url
https://download.pytorch.org/whl/cpu
RUN
uv pip
install
--no-cache-dir
tensorflow-cpu tf-keras
# tensorflow pin matching setup.py
RUN
uv pip
install
--no-cache-dir
"tensorflow-cpu<2.16"
"tf-keras<2.16"
RUN
uv pip
install
--no-cache-dir
"git+https://github.com/huggingface/transformers.git@
${
REF
}
#egg=transformers[flax,quality,vision,testing]"
RUN
git lfs
install
RUN
pip uninstall
-y
transformers
RUN
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
&&
apt-get autoremove
&&
apt-get autoclean
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