Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .github/media/chat.mp4
Binary file not shown.
Binary file modified .github/media/chat.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/media/image.mp4
Binary file not shown.
Binary file modified .github/media/image.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/media/mindmap.mp4
Binary file not shown.
Binary file modified .github/media/mindmap.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/media/monitor.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/media/ocr.mp4
Binary file not shown.
Binary file modified .github/media/ocr.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/media/phone.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/media/preset.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/media/setup.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/media/song.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/media/theme.mp4
Binary file not shown.
Binary file modified .github/media/theme.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/media/tour.mp4
Binary file not shown.
Binary file modified .github/media/tour.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/media/transcript.mp4
Binary file not shown.
Binary file modified .github/media/transcript.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/media/translate.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/media/video.mp4
Binary file not shown.
Binary file modified .github/media/video.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/media/websearch.mp4
Binary file not shown.
Binary file modified .github/media/websearch.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/media/workbench.mp4
Binary file not shown.
Binary file modified .github/media/workbench.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/media/workflow-editor.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/media/workflow-run.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ Without a Spark, give the API a stack address so it skips setup (the services th
profile remains for its id.
- **Speech** picks its request from the model id (`asrProfile`): with a Parakeet id the app asks for word
timestamps and `src/server/transcript-timing.ts` builds one transcript line per sentence and subtitle cues
(at most 7 s and 84 characters) from them, and the chunk target is capped at 30 s. Any other id keeps
Qwen3-ASR's plain request and one line per chunk. The Parakeet adapter takes WAV only.
(at most 7 s and 84 characters) from them, and the chunk target is capped at 30 s. Any other id gets the
plain request and one line per chunk. The Parakeet adapter takes WAV only.
- **Image generation** asks the service for `/v1/capabilities` (sizes, default and maximum steps) and
validates requests against it.
- **Music generation** reads `/v1/capabilities` (lyrics and style limits, the license line) and gets a
Expand Down
25 changes: 21 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Every source and every result stays an ordinary file with its history, so one re

Every use case below has its own model, and they all run on the same Spark at the same time: a recording can be transcribed while an image renders and a conversation gets its answer. Only heavy jobs, videos and songs, take turns ([Heavy jobs take turns](#heavy-jobs-take-turns)).

Each clip is the real app on a DGX Spark with demo files. Only the time spent waiting for a model is fast-forwarded. Click a clip for the full-quality MP4.
Each clip and screenshot is the real app on a DGX Spark with demo files. Only the time spent waiting for a model is fast-forwarded. Click a clip for the full-quality MP4.

### The Workbench

Expand All @@ -55,14 +55,16 @@ Drop a PDF or a scan and get Markdown that keeps headings, tables and reading or

#### Transcribe recordings

Parakeet-TDT-0.6B-v3 turns audio and video into a transcript with one line per sentence, and into subtitles (SRT and WebVTT) cut to a readable size from its word timestamps. Click a line and the player jumps there. On long files it runs 10 to 16 times faster than Qwen3-ASR, the model it replaced, in 1.7 GiB instead of 16.5 GiB. It covers 25 European languages.
Parakeet-TDT-0.6B-v3 turns audio and video into a transcript with one line per sentence, and into subtitles (SRT and WebVTT) cut to a readable size from its word timestamps. Click a line and the player jumps there. It needs 1.7 GiB and transcribes long files about 145 times faster than realtime. It covers 25 European languages.

[![A transcript with one timed line per sentence; clicking a line moves the audio player (click for the MP4)](.github/media/transcript.webp)](.github/media/transcript.mp4)

#### Translate

Hy-MT2-1.8B-FP8 translates between 38 languages. Paste text and the translation follows as you type; the live preview covers the first 2,000 characters, and **Save** starts a job that translates the whole text and keeps it. Documents, transcripts and dropped text files translate into a new document in the same job, linked to the original.

![Translating a paragraph into Italian as it is typed, with the live preview beside it](.github/media/translate.webp)

### Create

#### Generate images
Expand All @@ -85,6 +87,8 @@ Write lyrics, mark the parts with `[Verse]`, `[Chorus]` and `[Bridge]`, describe

YuE2's weights are non-commercial with a creator permission: you may publish and sell the songs you make, but a company needs a license from the authors ([model licenses](#model-licenses)). [YuE2](https://github.com/multimodal-art-projection/YuE) is made by the Multimodal Art Projection team (m-a-p).

![A finished song on its job page: the player, the song and its score in the file list, and the license line](.github/media/song.webp)

### Ask and research

#### Chat with your files
Expand All @@ -111,18 +115,29 @@ Turn a typed topic, a document, a transcript or an image into an interactive map

Run a saved instruction on a finished job's text. **Run a preset** on the job page sends it to the language model and saves the answer in the job as `summary.<preset>.md`. Sparkfire comes with Meeting minutes, Clean document and Executive summary; edit them or add your own in **Settings → Prompts**.

![The Executive summary preset's result on the recognised report's job page](.github/media/preset.webp)

### Automate

#### Workflows

Connect the same modules in a node editor and run the result again on a new file. Inputs are typed by artifact kind. The nodes are **Select**, **If** and **Switch** branches, **Merge** (all or any), **Save to file**, **End** and **Fail**, plus a node for every module, video, music, LLM prompts and **Create chat** included. Enabled workflows appear on the Workbench and under **Continue with**. Definitions are JSON files, each workflow run keeps a snapshot of the workflow it ran, and the run view shows which nodes ran, were skipped or failed. A video or song node waits in the GPU lane like any heavy job, but its workflow run keeps one of the queue's workers while it waits ([Heavy jobs take turns](#heavy-jobs-take-turns)). See [Workflow design and JSON contracts](docs/workflows.md).

![The Scan and translate workflow in the node editor: input, OCR, translation and Save](.github/media/workflow-editor.webp)

![A finished run of the workflow on its job page, every node done](.github/media/workflow-run.webp)

### Interface

Pick dark, light or system in **Settings → General**; the whole interface follows, at any screen width, with a tab bar on phones. The sidebar shows the AI services' status and a compact Spark monitor.

[![Switching the interface between dark and light in Settings (click for the MP4)](.github/media/theme.webp)](.github/media/theme.mp4)

<p>
<img src=".github/media/phone.webp" width="300" alt="The Workbench on a phone, with the tab bar at the bottom">
<img src=".github/media/monitor.webp" width="300" alt="The sidebar's Spark monitor opened: memory, GPU, CUDA allocations and models online, above the AI services chip">
</p>

* * *

## Quick start
Expand Down Expand Up @@ -173,6 +188,8 @@ Sparkfire has two layers that can run apart: the **models** (the stack and its s

With `./scripts/start-sparkfire.sh --configure-later`, the first visit asks where the stack runs: **Run models locally** or **Run models remotely** (it checks the stack's ports 8330–8339 on the Spark; video on 8337 is optional). Reopen it from **Settings → General → Deployment**; it keeps your jobs, chats, workflows and files. In split mode, keep the Spark's ports 8330–8339 behind a firewall, LAN or VPN.

![The deployment setup page: run the models on this machine or on a Spark elsewhere](.github/media/setup.webp)

Each release also publishes a multi-platform image, `ghcr.io/moviemaker93/sparkfire`, for your own Compose file. To build from source instead:

```bash
Expand Down Expand Up @@ -203,7 +220,7 @@ git pull

The script rebuilds what changed and leaves `data/` alone. Every start points the services at the stack's models, so no setting needs changing after an upgrade, whatever was chosen before.

- **From the six-model stack or an earlier model set:** the start script removes the retired Qwen3.6 LLM, Qwen3-ASR, LocateAnything and Unlimited-OCR containers, and downloads the models the stack now uses. Earlier model files stay in `data/dgx-models` until you delete them; see [Upgrading from the six-model stack](docs/dgx-spark.md#upgrading-from-the-six-model-stack).
- **From the six-model stack or an earlier model set:** the start script removes the retired services' containers and downloads the models the stack now uses. Earlier model files stay in `data/dgx-models` until you delete them; see [Upgrading from the six-model stack](docs/dgx-spark.md#upgrading-from-the-six-model-stack).
- **An install configured by hand:** the stack replaces services set up in Settings or with **Configure manually**, which is gone. A workspace that is not on the stack goes through setup in the browser again.
- **From an install made before the rename to Sparkfire:** point your checkout at this repository and run the start script again. It removes the old containers and starts the `sparkfire-` ones, reusing your jobs, settings and downloaded models; only `SPARKFIRE_*` variables in `.env` are read.

Expand Down Expand Up @@ -262,7 +279,7 @@ Parakeet grows to 1.6–1.8 GiB of GPU memory and up to 1.5 GiB of RAM while it
| A video job (on top of the above) | +35–39 GiB for Fast at 480p, +41–48 GiB for Fast at 720p or longer, +44–57 GiB for Sharp; the weights stay loaded until 10 minutes without a job |
| A song (on top of the above) | about +20 GiB at its peak, short or long; about 15 GiB stays loaded until 10 minutes without a song |

These are the measured figures from [docs/validation.md](docs/validation.md) minus the removed Qwen3.6 LLM (31 GiB) and LocateAnything (10.9 GiB); the Parakeet idle figure was measured on the full stack. The older 84–96 GiB figures in that file were measured with the Qwen3.6 LLM and Qwen3-ASR resident, before Sparkfire removed them.
These are the measured figures from [docs/validation.md](docs/validation.md) minus the removed Qwen3.6 LLM (31 GiB) and LocateAnything (10.9 GiB); the Parakeet idle figure was measured on the full stack. The older 84–96 GiB figures in that file were measured with the Qwen3.6 LLM and an earlier speech model resident, before Sparkfire removed them.

Saluki's row was measured on its own next to the stack (docs/validation.md). Measured together with Saluki, the largest video job (Sharp, 1344 × 768, 10 s) brought the Spark to 106.6 of 121 GiB.

Expand Down
10 changes: 4 additions & 6 deletions docs/dgx-spark.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ The script:
1. verifies Linux ARM64, Docker Compose and NVIDIA GPU access;
2. builds Sparkfire and the thin model API adapters;
3. downloads the stack's models from their publishers into `data/dgx-models/`, at pinned revisions except Saluki's for now;
4. removes the containers left from before the rename to Sparkfire, retired services among them (the Qwen3.6
LLM, Qwen3-ASR, LocateAnything, Unlimited-OCR);
4. removes the containers left from before the rename to Sparkfire, retired services among them;
5. on a fresh start, checks that about 64 GiB are free, which the stack needs while its models load, and stops otherwise (`--skip-memory-check` overrides it);
6. starts the model servers one at a time, Saluki first, and waits for each health endpoint;
7. starts SearXNG and the read-only system monitor; and
Expand Down Expand Up @@ -85,7 +84,7 @@ Port 54321 is present only in an all-in-one deployment. The ports and co-residen

### Speech recognition backend

Port 8333 serves Parakeet; it replaced the earlier Qwen3-ASR backend (16.5 GiB, 52 languages).
Port 8333 serves Parakeet, the stack's only speech model.

| Model | Container | Memory | Languages |
| --- | --- | --- | --- |
Expand All @@ -94,8 +93,7 @@ Port 8333 serves Parakeet; it replaced the earlier Qwen3-ASR backend (16.5 GiB,
Parakeet downloads one 1.4 GB GGUF file at a pinned revision, and its image builds parakeet.cpp from pinned
source for the GB10. The adapter accepts WAV only, which is what Sparkfire sends, and serves one request
at a time. Parakeet returns word timestamps, from which
Sparkfire builds one transcript line per sentence and subtitle-sized cues; Qwen3-ASR gave one line per
chunk.
Sparkfire builds one transcript line per sentence and subtitle-sized cues.

### Video generation

Expand Down Expand Up @@ -194,4 +192,4 @@ Sparkfire runs on this stack only: users do not pick models, URLs or keys, and S

### Upgrading from the six-model stack

`./scripts/start-dgx-spark.sh` removes the containers of the retired Qwen3.6 LLM, Qwen3-ASR, LocateAnything and Unlimited-OCR services, which would otherwise keep restarting and hold memory the stack's budget assumes is free. It downloads and starts the models the stack now uses, Saluki among them, and the app points its services at them on its next start, whatever the settings held. Their images and earlier model files stay on disk until you delete them.
`./scripts/start-dgx-spark.sh` removes the containers of retired services, which would otherwise keep restarting and hold memory the stack's budget assumes is free. It downloads and starts the models the stack now uses, Saluki among them, and the app points its services at them on its next start, whatever the settings held. Their images and earlier model files stay on disk until you delete them.
8 changes: 3 additions & 5 deletions docs/fork.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,9 @@ only video can be left out, where its license does not apply.

Parakeet TDT 0.6B v3 is the default speech model, run by [parakeet.cpp](https://github.com/mudler/parakeet.cpp)
(MIT) from the f16 GGUF in `mudler/parakeet-cpp-gguf`. The weights are NVIDIA's, under CC BY 4.0, which allows
commercial use with credit. It replaced this stack's earlier Qwen3-ASR backend: 1.7 GiB instead of
16.5 GiB, 10 to 16 times faster through the app on long files, and as accurate on short clips (3.6%
against 3.7% word error rate in English, 3.9% against 4.4% in Italian). Its limit is language: 25
European languages against Qwen3-ASR's 52. Qwen3-ASR was removed from the stack; the app keeps its request
profile for that model id.
commercial use with credit. It takes 1.7 GiB, transcribes long files about 145 times faster than realtime
through the app, and scores 3.6% word error rate in English and 3.9% in Italian on short clips. Its limit is
language: 25 European languages.

- **Service.**
- `sparkfire-parakeet` (image `sparkfire/parakeet:parakeet.cpp-v0.5.0`) builds the engine from
Expand Down
29 changes: 29 additions & 0 deletions docs/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,35 @@ was only ever estimated. The 92.4 GiB peak belongs to the pass that ran before H
Known issues): the LLM spent its whole 8192-token budget on a reasoning trace while every translation
request hung.

## Fresh install (2026-10-13)

A from-scratch install on a DGX Spark, done as the README's Quick start says: the previous install's
containers, images and model files removed and the Docker build cache pruned, then `git clone` and
`./scripts/start-dgx-spark.sh --accept-model-licenses` with the default video backend (FastH3) and no
Hugging Face token.

- **Commit installed:** `c4604f5` (0.3.0).
- **Wall time:** 20 minutes from the start of the script to `Sparkfire is ready`, building every image
and downloading every model; `status` then showed all ten endpoints `ready`, video and music included.
- **Disk:** 106 GB, from 259 GB to 153 GB free.
- **Idle memory after start:** 51 GiB used and 70 GiB available (`free -g`), within the README's figure of
about 29 GiB for the stack plus 13–21.5 GiB for Saluki. GPU memory per process (`nvidia-smi`):

| Container | GPU |
| --- | --- |
| `sparkfire-image-generation` | 17.5 GiB |
| `sparkfire-saluki` | 12.7 GiB |
| `sparkfire-paddleocr-vlm` | 5.4 GiB |
| `sparkfire-hy-mt2` | 2.1 GiB |
| `sparkfire-parakeet` | 1.5 GiB |
| `sparkfire-video-generation` (idle, no weights loaded) | 0.2 GiB |
| `sparkfire-music-generation` (idle, no weights loaded) | — |

- **Problems:** the install itself needed no fix. Two problems turned up around it:
- The services chip had no row for music, so it read "6/6 online" while YuE2 ran; fixed in `7ae427f`.
- `scripts/media/populate-demo.sh` was committed without its executable bit, so the media README's
step 2 stopped with *Permission denied*; fixed in `61d590e`.

## Known issues

- **The stock LLM could crash on long generations** (historical: Saluki in llama.cpp replaced it, and the
Expand Down
14 changes: 8 additions & 6 deletions scripts/media/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ them, and its own monitor and SearXNG.
| `demo-pdf.py`, `demo-audio.py` | Build the demo inputs: a fictional three-page report and about a minute of read speech from LibriSpeech (CC BY 4.0) |
| `demo.env`, `status-proxy.py` | An isolated demo copy of the app, so no real jobs, chats or host names appear on screen |
| `test_status_proxy.py` | Checks that the status proxy only ever forwards the status route; CI runs it |
| `populate-demo.sh` | Fills the demo copy with real jobs on the real models (OCR, transcription, images, a video, translation, mind map) |
| `record-demo.mjs` | Playwright: Chromium's own screencast frames for each scene, with a visible pointer, plus screenshots and the moments spent waiting for a model. Playwright's built-in video recording is not used, because it compresses to about 1 Mbit/s and blurs text |
| `make-media.mjs` | ffmpeg: plays the frames back at their recorded times, fast-forwards the waits, writes an MP4 (1440 × 900) and an animated WebP (1280 px, 15 fps) per scene, and stitches the tour |
| `populate-demo.sh` | Fills the demo copy with real jobs on the real models (OCR, transcription, images, a video, translation, mind map), plus a song, a workflow run and a prompt preset result |
| `demo-workflow.json` | The *Scan and translate* workflow that `populate-demo.sh` creates and runs, for the Workflows stills |
| `record-demo.mjs` | Playwright: Chromium's own screencast frames for each clip, with a visible pointer, plus screenshots, the moments spent waiting for a model, and the README's stills. Playwright's built-in video recording is not used, because it compresses to about 1 Mbit/s and blurs text |
| `make-media.mjs` | ffmpeg: plays the frames back at their recorded times, fast-forwards the waits, writes an MP4 (1440 × 900) and an animated WebP (1280 px, 15 fps) per clip, turns each still into a WebP, and stitches the tour |

## Steps

Expand Down Expand Up @@ -44,7 +45,8 @@ them, and its own monitor and SearXNG.
./scripts/media/populate-demo.sh
```

3. **Record** every scene, or name some: `workbench ocr transcript image video websearch chat mindmap theme`.
3. **Record** every scene, or name some: the clips `workbench ocr transcript image video websearch chat mindmap theme`
and the stills `translate song preset workflow-editor workflow-run monitor setup phone`.

```bash
docker run --rm --network host -v "$PWD/scripts/media:/m" -w /m mcr.microsoft.com/playwright:v1.64.0-noble \
Expand All @@ -70,8 +72,8 @@ Scenes wait for real model output, so the timings depend on the models running.
first video through the API before it types its own, so the recording shows the second one *Waiting for the
GPU*; it renders two videos and waits up to 15 minutes. The web search scene asks
about something current, so its sources and answer change from one recording to the next. To change
the tour, edit `TOUR` in `make-media.mjs`. The README loads every WebP, so keep the tour around 4 MB and each
clip under 2 MB; a clip with a generated video in it is the largest, because its frames all change.
the tour, edit `TOUR` in `make-media.mjs`. The README loads every WebP, so keep the tour around 4 MB, each
clip under 2 MB and each still under 1 MB; a clip with a generated video in it is the largest, because its frames all change.

Generated videos can come back with a made-up broadcaster logo in a corner when the prompt reads like a
nature documentary, so the demo prompts avoid that style. Check the videos before publishing a recording.
Loading
Loading