Code Monkey home page Code Monkey logo

Comments (4)

B-Step62 avatar B-Step62 commented on June 10, 2024 1

Yuki, is there any specific reason why we set local here?

The original motivation was multiple requests saying the docker image doesn't need additional virtualization (virtualenv/conda). But I think we shouldn't override what user specifies, so the better way would be default to local and let users to pass either (note that if the base image is not python, we should default to virtualenv because direct python installation to ubuntu image is troublesome). How does that sound?

from mlflow.

serena-ruan avatar serena-ruan commented on June 10, 2024

Seems it's updated here

# We don't need virtualenv or conda if base image is python
env_manager = (
_EnvManager.LOCAL if base_image.startswith("python") else self._env_manager
)
@B-Step62 Yuki, is there any specific reason why we set local here? If it's not consistent with the env_manager user set then maybe we should emit a warning at least 🤔

from mlflow.

menno4000 avatar menno4000 commented on June 10, 2024

Passing the input would definitely be appreciated, though the newest python base image might not be inherently equipped to facilitate a conda environment yaml file. Looking at the code of models.docker_utils, the step of the conda installation itself are not applied to the python base images.

if base_image.startswith("python:"):
setup_python_venv_steps = (
"RUN apt-get -y update && apt-get install -y --no-install-recommends nginx"
)
setup_java_steps = ""
install_mlflow_steps = _pip_mlflow_install_step(output_dir, mlflow_home)
elif base_image == UBUNTU_BASE_IMAGE:
setup_python_venv_steps = (
"RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y "
"--no-install-recommends wget curl nginx ca-certificates bzip2 build-essential cmake "
"git-core\n\n"
)
setup_python_venv_steps += (
SETUP_MINICONDA if env_manager == em.CONDA else SETUP_PYENV_AND_VIRTUALENV
)

In any case, adding the conda installation back would be huge as it allows us for working with the generated dockerfiles in combination with the conda environment management.

from mlflow.

serena-ruan avatar serena-ruan commented on June 10, 2024

Close as the PR is merged, pls feel free to test against the latest master :)

from mlflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.