Spaces:
Sleeping
Sleeping
Commit ·
ba004e6
1
Parent(s): 20f5235
deps: split into runtime (Path 1) + training (full) requirements files
Browse filesrequirements-hf.txt -> requirements-runtime.txt. The old name pretended
to be HF-Space-specific; in reality it's the slim deploy set anyone
running Path 1 (workstation Ollama + Whisper) wants, regardless of
whether they're on HF Space or local. Renaming makes the README's
Path 1 install instructions honest.
requirements.txt now opens with a docstring noting it's a superset and
explicitly serving section labelled "also in requirements-runtime.txt"
so a reader doesn't accidentally pip-install both.
Dockerfile updated to COPY requirements-runtime.txt (was requirements-hf).
.gitignore: raw_record/ — DaVinci scratch dir for raw screen captures,
not for the repo.
- .gitignore +1 -0
- Dockerfile +2 -2
- requirements-hf.txt → requirements-runtime.txt +3 -3
- requirements.txt +12 -8
.gitignore
CHANGED
|
@@ -35,6 +35,7 @@ env/
|
|
| 35 |
|
| 36 |
# === Demo source captures (raw screen recordings — not for repo) ===
|
| 37 |
*.mkv
|
|
|
|
| 38 |
|
| 39 |
# === Build artifacts ===
|
| 40 |
llama.cpp/
|
|
|
|
| 35 |
|
| 36 |
# === Demo source captures (raw screen recordings — not for repo) ===
|
| 37 |
*.mkv
|
| 38 |
+
raw_record/
|
| 39 |
|
| 40 |
# === Build artifacts ===
|
| 41 |
llama.cpp/
|
Dockerfile
CHANGED
|
@@ -54,8 +54,8 @@ RUN curl -fsSL https://ollama.com/install.sh | sh
|
|
| 54 |
|
| 55 |
# Python dependencies
|
| 56 |
WORKDIR /app
|
| 57 |
-
COPY requirements-
|
| 58 |
-
RUN pip install --no-cache-dir -r requirements-
|
| 59 |
|
| 60 |
# Application code. Keep the COPY granular so the .dockerignore + the
|
| 61 |
# requirements layer above stay cache-friendly across iterations.
|
|
|
|
| 54 |
|
| 55 |
# Python dependencies
|
| 56 |
WORKDIR /app
|
| 57 |
+
COPY requirements-runtime.txt ./
|
| 58 |
+
RUN pip install --no-cache-dir -r requirements-runtime.txt
|
| 59 |
|
| 60 |
# Application code. Keep the COPY granular so the .dockerignore + the
|
| 61 |
# requirements layer above stay cache-friendly across iterations.
|
requirements-hf.txt → requirements-runtime.txt
RENAMED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# ============================================================================
|
| 2 |
-
# Sakhi —
|
| 3 |
-
#
|
| 4 |
-
#
|
| 5 |
# ============================================================================
|
| 6 |
|
| 7 |
# ASR: faster-whisper bundles ctranslate2 with its own CUDA/cuDNN libs (no system PyTorch needed)
|
|
|
|
| 1 |
# ============================================================================
|
| 2 |
+
# Sakhi — runtime requirements (Path 1 workstation deployment)
|
| 3 |
+
# Just enough to run `python api.py`: Ollama + faster-whisper + FastAPI.
|
| 4 |
+
# For training / fine-tuning, use requirements.txt (which is a superset of this).
|
| 5 |
# ============================================================================
|
| 6 |
|
| 7 |
# ASR: faster-whisper bundles ctranslate2 with its own CUDA/cuDNN libs (no system PyTorch needed)
|
requirements.txt
CHANGED
|
@@ -1,6 +1,10 @@
|
|
| 1 |
# ============================================================================
|
| 2 |
-
#
|
| 3 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# ============================================================================
|
| 5 |
|
| 6 |
--extra-index-url https://download.pytorch.org/whl/nightly/cu128
|
|
@@ -25,7 +29,7 @@ datasets>=3.0.0
|
|
| 25 |
# === Quantization ===
|
| 26 |
bitsandbytes>=0.45.0
|
| 27 |
|
| 28 |
-
# === Audio Processing ===
|
| 29 |
librosa>=0.10.1
|
| 30 |
soundfile>=0.12.1
|
| 31 |
|
|
@@ -38,13 +42,13 @@ scipy>=1.14.0
|
|
| 38 |
openai>=1.50.0
|
| 39 |
python-dotenv>=1.0.0
|
| 40 |
|
| 41 |
-
# === Serving ===
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
ollama>=0.4.0
|
| 43 |
|
| 44 |
-
# === UI ===
|
| 45 |
-
# (React frontend is built separately under frontend/ via Vite; FastAPI in
|
| 46 |
-
# api.py serves the dist bundle. No Python-side UI dep.)
|
| 47 |
-
|
| 48 |
# === Utilities ===
|
| 49 |
tqdm>=4.67.0
|
| 50 |
pyyaml>=6.0
|
|
|
|
| 1 |
# ============================================================================
|
| 2 |
+
# Sakhi — comprehensive requirements (training + fine-tuning + runtime)
|
| 3 |
+
# Superset of requirements-runtime.txt. Use this if you intend to retrain or
|
| 4 |
+
# A/B-evaluate the Unsloth fine-tune; use requirements-runtime.txt if you only
|
| 5 |
+
# need to run `python api.py` (Path 1 workstation deployment).
|
| 6 |
+
#
|
| 7 |
+
# PyTorch Nightly (cu128) is pinned for RTX 5070 Ti / Blackwell SM 12.0.
|
| 8 |
# ============================================================================
|
| 9 |
|
| 10 |
--extra-index-url https://download.pytorch.org/whl/nightly/cu128
|
|
|
|
| 29 |
# === Quantization ===
|
| 30 |
bitsandbytes>=0.45.0
|
| 31 |
|
| 32 |
+
# === Audio Processing (training-side) ===
|
| 33 |
librosa>=0.10.1
|
| 34 |
soundfile>=0.12.1
|
| 35 |
|
|
|
|
| 42 |
openai>=1.50.0
|
| 43 |
python-dotenv>=1.0.0
|
| 44 |
|
| 45 |
+
# === Serving (also in requirements-runtime.txt) ===
|
| 46 |
+
faster-whisper>=1.0.0,<2.0.0
|
| 47 |
+
fastapi>=0.110
|
| 48 |
+
uvicorn[standard]>=0.27
|
| 49 |
+
python-multipart>=0.0.9
|
| 50 |
ollama>=0.4.0
|
| 51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
# === Utilities ===
|
| 53 |
tqdm>=4.67.0
|
| 54 |
pyyaml>=6.0
|