Spaces:
Running
Running
Commit History
-
feat(db+ui): add modality dimension & migrate legacy data
Alex W.Introduce `modality` (language/vision/audio) as a first-class dimension alongside the existing `layer_type` (standard/global), fixing misleading total_layers display for multi-modal models (Gemma-4 series). --- 1. `total_layers` mixed audio+vision+language into one number — meaningless for multi-modal models like gemma-4-31b-it. 2. Layer-type dropdown showed "standard/global" (structural concept) where users expected "language/vision/audio" (modality concept). 3. These two concepts (structure vs modality) were conflated in one field. --- - Add `modality TEXT DEFAULT 'language'` to `layer_head_metrics` - Add `modality TEXT DEFAULT 'language'` to `components` - Add `_migrate_add_modality()`: idempotent ALTER TABLE migration - Runs on every `init_db()` startup - Detects missing column via `PRAGMA table_info()` - Backfills legacy rows via keyword matching on `prefix` - vision: LIKE '%vision%' OR '%visual%' OR '%image%' - audio: LIKE '%audio%' OR '%speech%' OR '%acoust…0ff8a89
-
feat:write 5 laws's data into sqlite.
Alex W.38fc6ed