Spaces:
Running
on
Zero
Running
on
Zero
File size: 1,784 Bytes
2ed725b d61ceaa 2ed725b d61ceaa 2ed725b 1cad434 2ed725b 1cad434 d61ceaa |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
---
title: LLM Forest Orchestra
emoji: π
colorFrom: green
colorTo: green
sdk: gradio
sdk_version: 5.44.1
app_file: app.py
pinned: true
---
---
title: Locutusque Models
emoji: π²
colorFrom: green
colorTo: blue
sdk: gradio
sdk_version: 4.29.0
app_file: app.py
pinned: false
license: apache-2.0
---
# LLM Forest Orchestra β Hugging Face Space (Gradio)
This Space turns transformer **hidden states** and **attentions** into a layered **MIDI composition**.
## Features
- Two compute modes:
- **Full model**: loads a base HF model (default: `unsloth/Qwen3-14B-Base`) and extracts internals.
- **Mock latents**: fast CPU-friendly demo mode that synthesizes tensors to preview the music system.
- Musical controls: scale selection (with custom notes), ticks-per-beat grid, velocity range, and instrument/role presets.
- Exports a `.mid` file you can drop into any DAW.
## Files
- `app.py` β Gradio app entry.
- `requirements.txt` β Python deps.
- `README.md` β You are here.
## Hardware / tips
- `unsloth/Qwen3-14B-Base` is **large**. On CPU-only Spaces, use **Mock latents**. For Full model, pick a smaller base or provision a GPU Space.
- Models must support `output_hidden_states=True` and `output_attentions=True`.
- MIDI channels are limited to 16; the UI caps layers at 6 for headroom.
## Inspiration
This project is inspired by the way **mushrooms and mycelial networks in forests**
connect plants and trees, forming a living web of communication and resource sharing.
These connections, can be turned into ethereal music.
Just as signals move through these hidden connections, transformer models also
pass hidden states and attentions across their layers. Here, those hidden
connections are translated into **music**, analogous to the forest's secret orchestra. |