Actions
Epic #3794
openPhase 2: M40 Guardrails & First AI Model (HiVG-3B)
Start date:
2026-11-30
Due date:
% Done:
0%
Estimated time:
Description
Add the first AI vectorization engine (HiVG-3B) running on the Tesla M40 with full VRAM guardrails.
Acceptance criteria:
- Implement ollama_guard.py: query Ollama /api/ps, send keep_alive:0 eviction
- Implement telemetry.py: background nvidia-smi poller every 3s, live status pill in Vue header
- Implement preprocess.py: alpha matte flattening, square letterboxing for VLM inputs
- Create hivg-venv: pinned CUDA 12.x PyTorch + HiVG-3B deps, FP32 + SDPA
- Implement workers/run_hivg.py: standardized CLI contract, JSON-lines progress, 180s timeout
- GPU lock: asyncio.Semaphore(1), asyncio.wait_for(..., timeout=180) with proc.kill()
- Enable NVIDIA persistence mode at boot (nvidia-smi -pm 1)
- Benchmark HiVG-3B on M40: latency, VRAM, temperature, valid SVG rate
Story Points: 8
Priority: Must
No data to display
Actions