/
githubmirror
/
text-generation-webui
Обзор
Документация
Войти
/
githubmirror
/
text-generation-webui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docker/TensorRT-LLM/Dockerfile
24 строки
862 B
oobabooga
Rename project from text-generation-webui to textgen
13 апр 2026, 23:03
13 апр 2026, 23:03
65cef2c
Код
Авторство
О чём код?
FROM nvidia/cuda:13.0.1-cudnn-runtime-ubuntu24.04 # Install Python 3.12, Git, and OpenMPI RUN apt update && apt install -y python3.12 python3-pip git build-essential openmpi-bin libopenmpi-dev # Set the working directory WORKDIR /app # This is needed to avoid an error about "Failed to build mpi4py" in the next command ENV LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH # Install textgen RUN git clone https://github.com/oobabooga/textgen WORKDIR /app/textgen RUN pip install --break-system-packages -r requirements/full/requirements.txt # Install TensorRT-LLM RUN pip3 install --break-system-packages tensorrt_llm==1.1.0 --extra-index-url https://pypi.nvidia.com # Expose the necessary port for the Python server EXPOSE 7860 5000 # Run the Python server.py script with the specified command CMD ["python3", "server.py", "--api", "--listen"]