Skip to content

Commit

Permalink
Vast: template cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kristopolous committed Jan 16, 2025
1 parent f2745d4 commit 7183fb3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions sky/templates/vast-ray.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ initialization_commands: []
# Increment the following for catching performance bugs easier:
# current num items (num SSH connections): 1
setup_commands:
# Disable `unattended-upgrades` to prevent apt-get from hanging. It should be called at the beginning before the process started to avoid being blocked. (This is a temporary fix.)
# Create ~/.ssh/config file in case the file does not exist in the image.
# Line 'rm ..': there is another installation of pip.
# Line 'sudo bash ..': set the ulimit as suggested by ray docs for performance. https://docs.ray.io/en/latest/cluster/vms/user-guides/large-cluster-best-practices.html#system-configuration
Expand All @@ -59,14 +58,7 @@ setup_commands:
- {%- for initial_setup_command in initial_setup_commands %}
{{ initial_setup_command }}
{%- endfor %}
sudo systemctl stop unattended-upgrades || true;
sudo systemctl disable unattended-upgrades || true;
sudo sed -i 's/Unattended-Upgrade "1"/Unattended-Upgrade "0"/g' /etc/apt/apt.conf.d/20auto-upgrades || true;
sudo kill -9 `sudo lsof /var/lib/dpkg/lock-frontend | awk '{print $2}' | tail -n 1` || true;
sudo pkill -9 apt-get;
sudo pkill -9 dpkg;
sudo dpkg --configure -a;
mkdir -p ~/.ssh; touch ~/.ssh/config;
mkdir -p ~/.ssh; touch ~/.ssh/config; sudo apt install -y patch;
{{ conda_installation_commands }}
{{ ray_skypilot_installation_commands }}
sudo bash -c 'rm -rf /etc/security/limits.d; echo "* soft nofile 1048576" >> /etc/security/limits.conf; echo "* hard nofile 1048576" >> /etc/security/limits.conf';
Expand Down

0 comments on commit 7183fb3

Please sign in to comment.