-
Notifications
You must be signed in to change notification settings - Fork 168
environments acft hf nlp gpu
github-actions[bot] edited this page Dec 30, 2025
·
187 revisions
Environment used by Hugging Face NLP Finetune components
Version: 110
Preview
View in Studio: https://ml.azure.com/registries/azureml/environments/acft-hf-nlp-gpu/version/110
Docker image: mcr.microsoft.com/azureml/curated/acft-hf-nlp-gpu:110
#PTCA image
FROM mcr.microsoft.com/aifx/acpt/stable-ubuntu2204-cu126-py310-torch280:biweekly.202512.3
USER root
RUN apt-get update && apt-get -y upgrade
COPY requirements.txt .
# The below 2 files are required for baking the code into the environment
COPY data_import_run.py /azureml/data_import/run.py
COPY finetune_run.py /azureml/finetune/run.py
RUN pip install -r requirements.txt --no-cache-dir
RUN pip install mlflow==3.1.0
RUN python -m nltk.downloader punkt
RUN python -m nltk.downloader punkt_tab
RUN MAX_JOBS=$(nproc) pip install --no-cache-dir --upgrade flash-attn==2.8.3 --no-build-isolation
RUN pip install nltk==3.9.1 # Pinning to fix the unsafe deserialization vulnerability
# vulnerabilities, cannot be added to requirements.txt as it causes pip dependency resolver to break
RUN pip install --upgrade --no-cache-dir 'mcp>=1.23.0'
# vulnerability in base conda env
RUN conda run -n base python -m pip install --upgrade urllib3>=2.6.0
# clean conda and pip caches
RUN rm -rf ~/.cache/pip