File tree 2 files changed +5
-2
lines changed
text-generation-inference
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ $(PACKAGE_DIST) $(PACKAGE_WHEEL): $(PACKAGE_FILES)
43
43
neuronx-tgi : $(PACKAGE_DIST )
44
44
docker build --rm -f text-generation-inference/Dockerfile \
45
45
--build-arg VERSION=$(VERSION ) \
46
+ --build-arg BETA_CREDENTIALS=$(BETA_CREDENTIALS ) \
46
47
-t neuronx-tgi:$(VERSION ) .
47
48
docker tag neuronx-tgi:$(VERSION ) neuronx-tgi:latest
48
49
Original file line number Diff line number Diff line change @@ -107,7 +107,9 @@ RUN test -n ${VERSION:?} && apt-get update -y \
107
107
&& rm -rf /var/lib/apt/lists/* \
108
108
&& apt-get clean
109
109
110
- RUN echo "deb https://apt.repos.neuron.amazonaws.com jammy main" > /etc/apt/sources.list.d/neuron.list
110
+ ARG BETA_CREDENTIALS
111
+
112
+ RUN echo "deb https://${BETA_CREDENTIALS}@apt.repos.rc.neuron.annapurna.aws.a2z.com jammy main" > /etc/apt/sources.list.d/neuron.list
111
113
RUN wget -qO - https://apt.repos.neuron.amazonaws.com/GPG-PUB-KEY-AMAZON-AWS-NEURON.PUB | apt-key add -
112
114
113
115
# Install neuronx packages
@@ -128,7 +130,7 @@ RUN pip3 install \
128
130
torch-neuronx==2.5.1.2.4.0 \
129
131
transformers-neuronx==0.13.322 \
130
132
libneuronxla==2.1.531.0 \
131
- --extra-index-url=https://pip.repos.neuron.amazonaws .com
133
+ --extra-index-url=https://${BETA_CREDENTIALS}@ pip.repos.rc. neuron.annapurna.aws.a2z .com
132
134
133
135
# Install HuggingFace packages
134
136
RUN pip3 install \
You can’t perform that action at this time.
0 commit comments