feat(p1): scaffolding + Device Manager / VRAM probe + CLI detect

- pyproject (uv, src layout) + extras: engine/gpu/api/diarize/llm
- config.py (pydantic-settings, SCRIBE_ env)
- devices/: vram_probe (NVML/psutil/disk) + DeviceManager →
  capability tier T0–T3, precision by cc/VRAM, worker estimate (계획 §3.6, AC-2/3)
- cli.py (typer): detect (구현) + transcribe/bench/serve (스텁)
- run.sh, .env.example, README

Verified on GTX 1050/2GB: detect → T0_CPU (turbo doesn't fit → explicit
downgrade, fail-explicit). Overrides (--device/--workers) work. 7 unit tests
cover T0–T3 + overrides via synthetic VRAM. ruff clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-07 12:56:07 +09:00
parent 612b353105
commit 5d2604105b
13 changed files with 4389 additions and 0 deletions
Executable
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
# 개발/Colab 실행 래퍼 — Docker 없이 순수 Python (계획 §3.10d).
set -euo pipefail
cd "$(dirname "$0")"
exec uv run luke-scribe "$@"