Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
FROM 763104351884.dkr.ecr.us-east-2.amazonaws.com/pytorch-training-neuronx:2.1.2-neuronx-py310-sdk2.19.1-ubuntu20.04
FROM 763104351884.dkr.ecr.us-east-2.amazonaws.com/pytorch-training-neuronx:2.7.0-neuronx-py310-sdk2.24.1-ubuntu22.04

RUN git clone https://github.com/aws-neuron/neuronx-distributed.git
COPY ./src /workspace
RUN cp -r neuronx-distributed/examples/training/llama/* workspace/
RUN cp -r neuronx-distributed/examples/training/llama/tp_zero1_llama_hf_pretrain/* workspace/
RUN cp -r neuronx-distributed/examples/training/llama/tp_zero1_llama_hf_pretrain/8B_config_llama3.1 workspace/config_8b_llama3.1
RUN cp -r neuronx-distributed/examples/training/llama/tp_zero1_llama_hf_pretrain/8B_config_llama3 workspace/config_8b_llama3
RUN mv workspace/tp_zero1_llama_hf_pretrain.py workspace/train.py

WORKDIR /workspace

RUN pip install -r requirements.txt
RUN pip install -r requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ region=us-east-2
dlc_account_id=763104351884
aws ecr get-login-password --region $region | docker login --username AWS --password-stdin $dlc_account_id.dkr.ecr.$region.amazonaws.com

docker pull ${dlc_account_id}.dkr.ecr.${region}.amazonaws.com/pytorch-training-neuronx:2.1.2-neuronx-py310-sdk2.19.1-ubuntu20.04
docker pull 763104351884.dkr.ecr.us-east-2.amazonaws.com/pytorch-training-neuronx:2.7.0-neuronx-py310-sdk2.24.1-ubuntu22.04
```

### Build Docker Image and push to ECR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: v1
kind: Service
metadata:
name: etcd
namespace: kubeflow
spec:
ports:
- name: etcd-client-port
Expand All @@ -19,7 +18,6 @@ metadata:
labels:
app: etcd
name: etcd
namespace: kubeflow
spec:
replicas: 1
selector:
Expand Down Expand Up @@ -57,7 +55,6 @@ apiVersion: "kubeflow.org/v1"
kind: PyTorchJob
metadata:
name: trn1-llama3
namespace: kubeflow
spec:
elasticPolicy:
rdzvBackend: etcd
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading