Commit 路
6f17d6e
1
Parent(s): 81ff557
Se agrego un dockerfile
Browse files- Dockerfile +26 -0
Dockerfile
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Usa una imagen base de Python con PyTorch si es posible, para un entorno ML robusto
|
| 2 |
+
FROM python:3.11
|
| 3 |
+
|
| 4 |
+
# Instala librer铆as de sistema necesarias (por ejemplo, para soundfile)
|
| 5 |
+
RUN apt-get update && apt-get install -y \
|
| 6 |
+
libsndfile1 \
|
| 7 |
+
git \
|
| 8 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
+
|
| 10 |
+
# Configura variables de entorno para una instalaci贸n limpia
|
| 11 |
+
ENV PIP_NO_CACHE_DIR=off
|
| 12 |
+
|
| 13 |
+
# Instala todas las dependencias necesarias.
|
| 14 |
+
# CRUCIAL: Instalar transformers desde el c贸digo fuente (git+https)
|
| 15 |
+
# asegura que tienes la definici贸n m谩s reciente del modelo 'qwen3_omni_moe'.
|
| 16 |
+
RUN pip install --no-cache-dir \
|
| 17 |
+
torch \
|
| 18 |
+
soundfile \
|
| 19 |
+
protobuf \
|
| 20 |
+
sentencepiece \
|
| 21 |
+
tiktoken \
|
| 22 |
+
accelerate \
|
| 23 |
+
"transformers[sentencepiece] @ git+https://github.com/huggingface/transformers.git"
|
| 24 |
+
|
| 25 |
+
# El handler.py debe ser copiado al directorio /repository
|
| 26 |
+
# En un despliegue normal de HF, esto ocurre autom谩ticamente si el handler.py est谩 en la ra铆z del repositorio.
|