Skip to content

Commit

Permalink
env upgrade for transformers bump 4.43.3 (#3206)
Browse files Browse the repository at this point in the history
Co-authored-by: Anubha Jain <[email protected]>
  • Loading branch information
Anubha98 and Anubha Jain authored Jul 30, 2024
1 parent 23f4a4e commit 166a6cf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1,689 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,10 @@ COPY finetune_run.py /azureml/finetune/run.py

RUN pip install -r requirements.txt --no-cache-dir

RUN pip uninstall transformers -y

COPY ./transformers.patch ./transformers.patch
RUN git clone https://github.com/huggingface/transformers.git && \
cd transformers && \
git checkout fc35907f95459d7a6c5281dfadd680b6f7b620e3 && \
# git apply ../transformers.patch && \
python setup.py bdist_wheel && \
pip install dist/*.whl

COPY modeling_llama /opt/conda/envs/ptca/lib/python3.8/site-packages/transformers/models/llama/modeling_llama.py

# clean conda and pip caches
RUN rm -rf ~/.cache/pip

RUN pip install mlflow==2.14.3
RUN python -m nltk.downloader punkt
RUN MAX_JOBS=4 pip install flash-attn==2.5.5 --no-build-isolation

Expand Down
Loading

0 comments on commit 166a6cf

Please sign in to comment.