Hardware-aware install, per-step LLM profiles, tuned llama.cpp for 4 GB VRAM
Benchmarked on RTX 500 Ada 4 GB (~3.2 GB usable on Windows) + Core Ultra 7 155H.
- install.js: log GPU/VRAM/RAM, abort without NVIDIA >= 4 GB VRAM; always
install Qwen3.5-4B Q4_K_S, Qwen3.6-35B-A3B only with >= 48 GB RAM.
- llama.py: model registry with vision (shots) and text (report/ask)
profiles; KV q8, image tokens 1024-1536.
- 35B: vision encoder on GPU, -ngl 30 (shot 142 -> ~50 s); text: -ub 2048.
- 4B: vision encoder on GPU, FFN of layers 19-31 in RAM (shot 36 -> 22 s);
text fully on GPU (~30 tok/s, report 4.5 min).
- Per-step choice in out/llm.txt: default 4B for shots, biggest for report.
- flow.py: restart llama in text profile after shots (no mmproj for report).
- shots.py: prompt v3 (inline template + defined fields, Italian summary
rules) and bounded json_schema; stops 4B loops, title 1/38 -> 36/38.
- server.py: shots/report model selects, POST /cancel + stop button, reaper
thread that honours Prefect "Cancel" and closes runs whose process died.
- diarize.py: cut same-speaker paragraphs every 60 s (one 11-min paragraph
truncated every report at 28:52); 8 threads; CUDA provider with CPU
fallback via sherpa-onnx cuda12.cudnn9 wheel (CUDA path not yet verified).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
4ff3e6fe14
commit
a64d3fb275
@@ -6,6 +6,21 @@ audio cleanup (ffmpeg) → transcription (faster-whisper CUDA, or OpenVINO NPU)
|
||||
|
||||
Orchestrated by Prefect; everything runs locally. Windows + NVIDIA GPU (fits 4 GB VRAM: MoE experts run on CPU).
|
||||
|
||||
## Requirements
|
||||
|
||||
| | Minimum | Recommended |
|
||||
|---|---|---|
|
||||
| OS | Windows 10/11 x64 | |
|
||||
| GPU | NVIDIA, 4 GB VRAM, driver R580+ (CUDA 13) | 8–12 GB VRAM |
|
||||
| RAM | 32 GB: installs only Qwen3.5 4B (fully in VRAM) | 48+ GB: also Qwen3.6 35B-A3B (MoE experts in RAM); pick the LLM in the Web UI header |
|
||||
| CPU | x64, 6–8 cores (runs the MoE experts) | more cores = faster reports |
|
||||
| Disk | ~10 GB free (32 GB RAM) / ~35 GB (48+ GB RAM), SSD | NVMe |
|
||||
| Browser | Chrome or Edge (extension); Edge for PDF export | |
|
||||
|
||||
Install logs the detected GPU/VRAM/RAM and aborts without an NVIDIA GPU with 4+ GB VRAM.
|
||||
|
||||
Optional: Intel NPU (Core Ultra) for OpenVINO Whisper; `twg` + company proxy for the docs step. Not supported: AMD/Intel-only GPUs, macOS, Linux.
|
||||
|
||||
## Install
|
||||
|
||||
Click **Install**. It downloads ffmpeg, llama.cpp (CUDA 13), the diarization models, bge-m3 and the Qwen GGUF (~23 GB) into `app/bin` and `app/models`, and pre-builds the `uv` script environments.
|
||||
@@ -15,6 +30,7 @@ Click **Install**. It downloads ffmpeg, llama.cpp (CUDA 13), the diarization mod
|
||||
1. Click **Start**: GUI on http://127.0.0.1:18765/, Prefect dashboard on http://127.0.0.1:4200.
|
||||
2. Click **Extension** to open `app/ext`, then in Chrome/Edge: `chrome://extensions` → Developer mode → **Load unpacked** → select that folder (once).
|
||||
3. In a Teams web call, click the extension icon → record. On stop, the pipeline runs and the report appears in the GUI.
|
||||
4. **Rielabora** on a row reruns that meeting from scratch; **Rielabora tutte** (top right of the GUI) reruns every recording sequentially: *da zero* (full pipeline), *da report* (new summaries), *solo render* (restyle reports only).
|
||||
|
||||
Alternative without the extension (desktop Teams, system loopback + mic): `cd app && uv run meet.py [--screen]`, Ctrl+C to stop.
|
||||
|
||||
@@ -42,6 +58,7 @@ Base URL `http://127.0.0.1:18765`.
|
||||
| POST | `/events` | `name`, body = JSON array of Teams call events |
|
||||
| POST | `/stop` | `name` → finalize recording, start pipeline |
|
||||
| POST | `/run` | `name`, `from`, `speakers` → rerun pipeline |
|
||||
| POST | `/run_all` | `from` → rerun every recording one at a time, oldest first (GUI: **Rielabora tutte**) |
|
||||
| POST | `/speaker_map` | `name`, body = `{"Speaker 1": "Mario Rossi"}` → re-render |
|
||||
|
||||
### curl
|
||||
|
||||
Reference in New Issue
Block a user