Skip to content

Commit b1b28fa

Browse files
committed
feat(tgi): temporarily use beta servers
In order to create the neuronx-tgi image, type: BETA_CREDENTIALS=<BETA_USER>:<BETA_PWD> make neuronx-tgi
1 parent e6de0b9 commit b1b28fa

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ $(PACKAGE_DIST) $(PACKAGE_WHEEL): $(PACKAGE_FILES)
4343
neuronx-tgi: $(PACKAGE_DIST)
4444
docker build --rm -f text-generation-inference/Dockerfile \
4545
--build-arg VERSION=$(VERSION) \
46+
--build-arg BETA_CREDENTIALS=$(BETA_CREDENTIALS) \
4647
-t neuronx-tgi:$(VERSION) .
4748
docker tag neuronx-tgi:$(VERSION) neuronx-tgi:latest
4849

text-generation-inference/Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ RUN test -n ${VERSION:?} && apt-get update -y \
107107
&& rm -rf /var/lib/apt/lists/* \
108108
&& apt-get clean
109109

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
111113
RUN wget -qO - https://apt.repos.neuron.amazonaws.com/GPG-PUB-KEY-AMAZON-AWS-NEURON.PUB | apt-key add -
112114

113115
# Install neuronx packages
@@ -128,7 +130,7 @@ RUN pip3 install \
128130
torch-neuronx==2.5.1.2.4.0 \
129131
transformers-neuronx==0.13.322 \
130132
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
132134

133135
# Install HuggingFace packages
134136
RUN pip3 install \

0 commit comments

Comments
 (0)