--- title: LARQL Explorer emoji: ๐Ÿง  colorFrom: purple colorTo: blue sdk: docker pinned: false license: apache-2.0 short_description: Query neural network weights like a knowledge graph --- # LARQL Explorer **The model IS the database.** Browse transformer weight space as a knowledge graph โ€” no terminal, no LQL syntax needed. Original LARQL system by **Chris Hayuk** โ€” [chrishayuk/larql](https://github.com/chrishayuk/larql) This UI + Windows/Linux/CUDA port by **Gregor Koch** โ€” [cronos3k/larql](https://github.com/cronos3k/larql) > The original was a command-line tool for macOS only. > This fork opens it up: any platform, any hardware, any browser. ## Features | Tab | What it does | |---|---| | ๐Ÿ” Walk Explorer | See which FFN features fire for any prompt, layer by layer | | ๐Ÿงช Knowledge Probe | Compare three prompts side-by-side at the same layer | | ๐Ÿ’ป LQL Console | Full LQL query interface with example buttons | | ๐Ÿ“Š Vindex Info | Model metadata + SHA256 checksum verification | | โฌ‡๏ธ Extract | Download + extract a model from HuggingFace Hub | | โ„น๏ธ Setup | Build instructions and environment info | ## Running locally ```bash git clone https://github.com/cronos3k/larql cd larql cargo build --release # or --features cuda for NVIDIA GPU pip install -r demo/requirements.txt python demo/app.py ``` ## Known Issues ### Tab navigation stops working after running Walk Explorer **What happens:** After running a query in the Walk Explorer tab and results appear in the feature table, clicking other tabs (Knowledge Probe, LQL Console, etc.) may silently fail โ€” the tab appears not to switch. **Root cause:** Gradio 6.12 bug. A `TypeError` in the internal Dataframe component (`Index-BGETwOir.js: Cannot read properties of undefined (reading '0')`) fires during the Svelte reactive re-render triggered by the tab switch. The error is swallowed silently, leaving the UI stuck on Walk Explorer. **Workaround:** Refresh the page (F5 / โŒ˜R) and navigate to the desired tab *before* running Walk. All tabs function correctly on a fresh page load. The bug only appears after Walk results populate the feature table. **Affected version:** Gradio 6.12.0 (pinned in `requirements.txt`). Upgrading Gradio may resolve it once the upstream issue is fixed. ## Credits - **LARQL / LQL / vindex format:** Chris Hayuk ([@chrishayuk](https://github.com/chrishayuk)) - **Gradio UI + cross-platform port:** Gregor Koch ([@cronos3k](https://github.com/cronos3k)) - License: Apache-2.0