dstack is an open-source alternative to Kubernetes, designed to simplify development, training, and deployment of AI across any cloud or on-prem. It supports NVIDIA, AMD, and TPU.
If the user omits the python property in the run configuration, dstack is supposed to use the Python version installed in the user's environment. This allows dstack environments to be more similar to users' local environments.
However, dstack currently detects the Python version in dstack-server. While this works for the simplest setups, in many setups dstack-server runs separately from users' environments, so users actually get the Python version from the dstack-server environment, not their local environment.
Solution
Detect the default Python version in dstack CLI, not in dstack-server.
Problem
If the user omits the
python
property in the run configuration,dstack
is supposed to use the Python version installed in the user's environment. This allowsdstack
environments to be more similar to users' local environments.However, dstack currently detects the Python version in
dstack-server
. While this works for the simplest setups, in many setupsdstack-server
runs separately from users' environments, so users actually get the Python version from thedstack-server
environment, not their local environment.Solution
Detect the default Python version in
dstack
CLI, not indstack-server
.