Work /

NULLFUNK: an offline AI radio-synth

A hackathon radio-synth that composes endless music in safe Rust, steered by a 378 MB distilled language model that runs fully offline on web, desktop and Android.

Role
Hackathon project, team of two
Organisation
Big Berlin Hack 2026
Period
Nov 2026 · Berlin
Result
A 378 MB distilled model turned 24 of 24 test prompts into valid music directives in 2.8 s on a laptop CPU, fully offline
Stack
Rust, WebAssembly, Distil Labs, Qwen3, llama.cpp, Gemini, Three.js, Android NDK
Poster of the NULLFUNK NF-01: a brushed gunmetal radio-synth with six white keys, two knobs and a screen showing Berlin Techno, under the title NULL FUNK NF-01 and the line The airwaves are dead. The radio plays on.

Context

Big Berlin Hack ran on 28–29 November 2026 in Berlin, organised by {Tech: Europe} with Google DeepMind, CODE and The Delta Campus. In just over a day, 171 projects were submitted. Victor Diaz and I entered as the team techno-oligarchs, on the Distil Labs track Going Offline, with the Gemini, Tavily and Aikido side challenges.

The idea: a weathered, battery-powered radio-synth for a world where the cloud has gone dark. Turn the dial, or type a mood such as "3 AM ash rain, I can't sleep", and the NF-01 invents a station on the spot: endless music across 28 genres, with no internet connection.

The problem

Cloud music models stop working without a signal. Asking a local language model to write raw MIDI is slow (800–1,500 tokens for four bars), fragile, and loops. And the same thing had to run in a browser, on a laptop and on an Android phone.

We split taste from synthesis. A small distilled model only decides the direction (genre, tempo, key, mood, effects) as a JSON directive of about 100 tokens. A deterministic Rust engine turns that into music in real time, clamping every value so the output always stays in key and can't blow up, whatever the model returns.

What I did

  • Audio engine in safe Rust (#![forbid(unsafe_code)]): 28 genres with their own grooves, scales and instrument racks, SoundFont2 instruments, virtual-analog synths, and a studio effects and mastering chain.
  • Distillation pipeline: generated the teacher dataset with Gemini (3,500 rows for the final version, balanced across genres), trained three student models with Distil Labs (Qwen3-0.6B, Qwen3.5-0.8B and LFM2.5-1.2B), and designed a compact JSON format that cut the output tokens.
  • Benchmarks and export: measured all students on my laptop's CPU and GPU, exported the chosen model to GGUF and WebGPU ONNX, and published it on Hugging Face.
  • Radio director controlled over MCP, desktop launchers with GPU offload, a hardened llama.cpp bridge for Android, and fixes for the Aikido security scan.

Victor built the 3D web studio and its narrated film, in which holograms of the two of us present the device, the Blender model of the NF-01, the Android app and the in-browser inference.

The NF-01 on a dark studio floor in the 3D web studio, with holographic Victor and Imanol presenting it
The 3D web studio: the live Rust synth drives the screen, and Victor and I present it as holograms.

Outcome

One Rust workspace compiles to WebAssembly, an Android arm64 library and a desktop app. The final model, Qwen3-0.6B at 378 MB, produced valid directives for all 24 test prompts at 2.80 s (median) on a laptop CPU and under 1 s on its GPU. Compared with the previous version, the compact format used 26–29 % fewer output tokens, ran 2.2× faster on CPU and passed 7 of 8 constraint checks instead of 4. Without the model, a rule-based director built into the Rust core takes over instantly.

Stack & notes

Rust (edition 2024) · rustysynth · cpal · wasm-bindgen · Distil Labs · Qwen3 · llama.cpp · Transformers.js (WebGPU ONNX) · Gemini · Tavily · Aikido · React, Three.js and Blender · Kotlin and the Android NDK.

The benchmarks ran on one laptop (Intel Core i7-10710U, NVIDIA GTX 1650) with 24 prompts, so they show the trade-offs between our models rather than a general ranking. Method and raw results are in the repository.