@@ -29,12 +29,6 @@ ARG WORKDIR=/app
2929ARG SOURCE_DIR=${WORKDIR}/fms-hf-tuning
3030
3131ARG ENABLE_FMS_ACCELERATION=true
32- ARG ENABLE_AIM=false
33- ARG ENABLE_MLFLOW=false
34- ARG ENABLE_SCANNER=false
35- ARG ENABLE_CLEARML=true
36- ARG ENABLE_TRITON_KERNELS=true
37- ARG ENABLE_RECOMMENDER=true
3832
3933# Ensures to always build mamba_ssm from source
4034ENV PIP_NO_BINARY=mamba-ssm,mamba_ssm
@@ -44,41 +38,27 @@ RUN python -m pip install --upgrade pip && \
4438 pip install --upgrade setuptools && \
4539 pip install --upgrade --force-reinstall torch torchaudio torchvision --index-url https://download.pytorch.org/whl/cu128
4640
41+
42+ RUN pip install --no-cache-dir "git+https://github.com/triton-lang/triton.git@main#subdirectory=python/triton_kernels"
43+
44+
4745# Install main package + flash attention
4846COPY . ${SOURCE_DIR}
4947RUN cd ${SOURCE_DIR}
5048
51- RUN pip install --no-cache-dir ${SOURCE_DIR} && \
52- pip install --no-cache-dir --no-build-isolation ${SOURCE_DIR}[flash-attn] && \
53- pip install --no-cache-dir --no-build-isolation ${SOURCE_DIR}[mamba]
49+ RUN pip install --no-cache-dir ${SOURCE_DIR}[tuning_config_recommender,clearml]
50+ # && \
51+ # pip install --no-cache-dir --no-build-isolation ${SOURCE_DIR}[flash-attn] && \
52+ # pip install --no-cache-dir --no-build-isolation ${SOURCE_DIR}[mamba]
5453
5554# Optional extras
5655RUN if [[ "${ENABLE_FMS_ACCELERATION}" == "true" ]]; then \
5756 pip install --no-cache-dir ${SOURCE_DIR}[fms-accel] && \
58- python -m fms_acceleration.cli install fms_acceleration_peft && \
59- python -m fms_acceleration.cli install fms_acceleration_foak && \
57+ # python -m fms_acceleration.cli install fms_acceleration_peft && \
58+ # python -m fms_acceleration.cli install fms_acceleration_foak && \
6059 python -m fms_acceleration.cli install fms_acceleration_aadp && \
61- python -m fms_acceleration.cli install fms_acceleration_moe && \
62- python -m fms_acceleration.cli install fms_acceleration_odm; \
63- fi
64-
65- RUN if [[ "${ENABLE_TRITON_KERNELS}" == "true" ]]; then \
66- pip install --no-cache-dir "git+https://github.com/triton-lang/triton.git@main#subdirectory=python/triton_kernels" ; \
67- fi
68- RUN if [[ "${ENABLE_CLEARML}" == "true" ]]; then \
69- pip install --no-cache-dir ${SOURCE_DIR}[clearml]; \
70- fi
71- RUN if [[ "${ENABLE_AIM}" == "true" ]]; then \
72- pip install --no-cache-dir ${SOURCE_DIR}[aim]; \
73- fi
74- RUN if [[ "${ENABLE_MLFLOW}" == "true" ]]; then \
75- pip install --no-cache-dir ${SOURCE_DIR}[mlflow]; \
76- fi
77- RUN if [[ "${ENABLE_SCANNER}" == "true" ]]; then \
78- pip install --no-cache-dir ${SOURCE_DIR}[scanner-dev]; \
79- fi
80- RUN if [[ "${ENABLE_RECOMMENDER}" == "true" ]]; then \
81- pip install --no-cache-dir ${SOURCE_DIR}[tuning_config_recommender]; \
60+ # python -m fms_acceleration.cli install fms_acceleration_moe && \
61+ # python -m fms_acceleration.cli install fms_acceleration_odm; \
8262 fi
8363
8464# cleanup build artifacts and caches
0 commit comments