This commit is contained in:
parent
349a56ac77
commit
ad93b283a5
17
Dockerfile
17
Dockerfile
|
|
@ -187,12 +187,19 @@ RUN mkdir -p /wheels && \
|
|||
pip wheel filelock typing-extensions sympy fsspec jinja2 networkx -w /wheels
|
||||
|
||||
# ── ✅ 再打包 runtime 阶段必需依赖 ────────────────────────────────────────────
|
||||
RUN pip wheel \
|
||||
pydantic orjson psutil pyzmq pynvml \
|
||||
transformers==4.56.0 uvicorn fastapi IPython aiohttp \
|
||||
setproctitle uvloop sentencepiece triton pillow cachetools msgspec blake3 cloudpickle compressed-tensors einops openai py-cpuinfo dill partial_json_parser python-multipart torchao \
|
||||
-w /wheels
|
||||
# RUN pip wheel \
|
||||
# pydantic orjson psutil pyzmq pynvml \
|
||||
# transformers==4.56.0 uvicorn fastapi IPython aiohttp \
|
||||
# setproctitle uvloop sentencepiece triton pillow cachetools msgspec blake3 cloudpickle compressed-tensors einops openai py-cpuinfo dill partial_json_parser python-multipart torchao \
|
||||
# -w /wheels
|
||||
|
||||
# ── ✅ 再打包 runtime 阶段必需依赖(本地优先;缺了再联网) ────────────────────────
|
||||
RUN bash -lc '\
|
||||
set -euo pipefail; \
|
||||
PKGS="pydantic orjson psutil pyzmq pynvml transformers==4.56.0 uvicorn fastapi IPython aiohttp setproctitle uvloop sentencepiece triton pillow cachetools msgspec blake3 cloudpickle compressed-tensors einops openai py-cpuinfo dill partial_json_parser python-multipart torchao"; \
|
||||
pip wheel --no-index --find-links=/wheels -w /wheels $PKGS || true; \
|
||||
pip wheel -c /tmp/local_constraints_build.txt --find-links=/wheels --prefer-binary -w /wheels $PKGS \
|
||||
'
|
||||
|
||||
# 产出 openai-harmony 的离线 wheel
|
||||
RUN pip wheel --no-deps openai-harmony==0.0.4 -w /wheels
|
||||
|
|
|
|||
Loading…
Reference in New Issue