mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
Add poetry-plugin-export
and fix indentation
Manually install the plugin to avoid issues with future `poetry` versions as of the warning messages recommend: ``` WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv Warning: poetry-plugin-export will not be installed by default in a future version of Poetry. In order to avoid a breaking change and make your automation forward-compatible, please install poetry-plugin-export explicitly. See https://python-poetry.org/docs/plugins/#using-plugins for details on how to install a plugin. To disable this warning run 'poetry config warnings.export false'. ```
This commit is contained in:
parent
bbde434c40
commit
63b8c59d9f
@ -204,7 +204,9 @@ FROM conda-install AS poetry-requirements
|
|||||||
COPY server/poetry.lock poetry.lock
|
COPY server/poetry.lock poetry.lock
|
||||||
COPY server/pyproject.toml pyproject.toml
|
COPY server/pyproject.toml pyproject.toml
|
||||||
|
|
||||||
RUN pip install poetry && poetry export -f requirements.txt \
|
RUN pip install poetry && \
|
||||||
|
poetry self add poetry-plugin-export && \
|
||||||
|
poetry export -f requirements.txt \
|
||||||
--extras "attention bnb accelerate compressed-tensors marlin moe quantize peft outlines" \
|
--extras "attention bnb accelerate compressed-tensors marlin moe quantize peft outlines" \
|
||||||
--output requirements_poetry.txt
|
--output requirements_poetry.txt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user