forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 719 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#---
# name: transformers
# config: config.py
# group: llm
# depends: [pytorch, torchvision, huggingface_hub, rust]
# test: [test_version.py, huggingface-benchmark.py]
# docs: docs.md
# notes: for quantization support in Transformers, use the bitsandbytes, AutoGPTQ, or AutoAWQ containers.
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
ARG TRANSFORMERS_PACKAGE \
TRANSFORMERS_VERSION
ENV TRANSFORMERS_PACKAGE=${TRANSFORMERS_PACKAGE} \
TRANSFORMERS_VERSION=${TRANSFORMERS_VERSION}
COPY install.sh /tmp/transformers/install.sh
RUN /tmp/transformers/install.sh
COPY huggingface-benchmark.py /usr/local/bin
RUN pip3 show transformers \
&& python3 -c 'import transformers; print(transformers.__version__)'