Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing neuron bug in automate script #532

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Changes from all 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
12 changes: 12 additions & 0 deletions 1.architectures/5.sagemaker-hyperpod/automate-smhp-slurm/automate-cluster-creation.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,18 @@ setup_lifecycle_scripts() {

cd awsome-distributed-training/1.architectures/5.sagemaker-hyperpod/LifecycleScripts/

echo -e "${YELLOW}Are you using Neuron-based instances (Trainium/Inferentia)? (yes/no)${NC}"
read -e USING_NEURON

if [ "$USING_NEURON" == "yes" ]; then
echo -e "${BLUE}Enabling Neuron in LCS...${NC}"
sed -i.bak 's/enable_update_neuron_sdk = False/enable_update_neuron_sdk = True/' base-config/config.py
rm base-config/config.py.bak
echo -e "${GREEN}✅ Lifecycle Scripts modified successfully! Neuron enabled in config.py${NC}"
else
echo -e "${BLUE}Continuing with Neuron disabled in LCS...${NC}"
fi

echo -e "${YELLOW}Did you deploy the optional hyperpod-observability CloudFormation stack? (yes/no)${NC}"
read -e DEPLOYED_OBSERVABILITY

Expand Down