yutoAb commited on
Commit
514ce1b
·
1 Parent(s): 569e7e4

Add application file

Browse files
Files changed (2) hide show
  1. Dockerfile +31 -0
  2. README.md +2 -2
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Triton/Inductor の JIT に必要(gcc等)
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ build-essential \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ RUN pip install --no-cache-dir uv
11
+ RUN uv pip install --system --no-cache-dir moshi
12
+
13
+ # 安定化
14
+ ENV OMP_NUM_THREADS=1
15
+ ENV MKL_NUM_THREADS=1
16
+ ENV PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
17
+
18
+ # ✅ ログが止まって見える問題を解消
19
+ ENV PYTHONUNBUFFERED=1
20
+
21
+ # ✅ 起動を軽くする(コンパイル無効)
22
+ ENV TORCHDYNAMO_DISABLE=1
23
+ ENV TORCHINDUCTOR_DISABLE=1
24
+
25
+ ENV GRADIO_SERVER_NAME=0.0.0.0
26
+ ENV GRADIO_SERVER_PORT=8998
27
+
28
+ EXPOSE 8998
29
+
30
+ CMD ["uv","run","-m","moshi.server","--hf-repo","nu-dialogue/j-moshi","--host","0.0.0.0","--port","8998"]
31
+
README.md CHANGED
@@ -6,6 +6,6 @@ colorTo: blue
6
  sdk: docker
7
  pinned: false
8
  license: cc-by-nc-4.0
 
 
9
  ---
10
-
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
6
  sdk: docker
7
  pinned: false
8
  license: cc-by-nc-4.0
9
+ short_description: For demonstration purposes
10
+ app_port: 8998
11
  ---