Favlo
Favlo: Your AI, the Whole Stable.
This app is directly inspired by oMLX and ComfyUI. These are amazing apps - I recommend trying them first before using my more specialized, opinionated runtime.
Favlo runs locally or in the cloud. One process serves language models, embeddings, and media: image, video, music, and voice. One model is one pipeline. When the pipelines share a machine, chat and embeddings take the device. A media job yields at its next safe point, checkpoints, and resumes when that queue has drained. Each pipeline owns its forward, its weight records, and its Metal kernels. favlo serve is the entry point. A client selects a registered language model with the OpenAI model field. A language row answers POST /v1/responses. POST /v1/chat/completions translates into that request and translates the Response back. That translation is not under active development. An embeddings row answers POST /v1/embeddings. Agents reach the content-generation models through MCP at POST /mcp. The tool catalog is MCP.md.
The process contract is ARCHITECTURE.md. The papers are REFERENCES.md. Measured research claims are RESEARCH.md. Cite this software from CITATION.cff. Agents start at AGENTS.md. AI-assisted features are docs/ai-assistance.
Requirements
- Apple Silicon
- Metal 4.1
- 16 GB of memory
- Python 3.12 or newer
- uv
Shaders compile at Metal 4.1. A machine that cannot compile that version cannot run a pipeline. 8 GB is not enough to run a model capable of real-world agentic workflows.
Install
From a checkout of this repository:
uv sync --extra dev
This installs the favlo package and the dev extra, including pytest. Release 0.3.0 is also on PyPI as favlo. That upload is the runtime under src/favlo. The pipelines, the shaders, and the web app stay in this checkout, so a working install is the checkout above.
Usage
uv run favlo serve
On a terminal with an empty registry, this downloads Qwen3.5-4B and packs it before the daemon listens. Wait until that finishes, and leave this process running.
The web app needs its packages. From the repository root:
npm install --prefix web-spa
In another terminal:
uv run favlo web
When the app is ready, open the printed link in a browser. That address is http://127.0.0.1:8012.
Gallery
A Gallery is a workspace on an agent's channel. New workspace offers Gallery. Bind a local folder once. Favlo captions every image in that folder, then shows a preview and a filmstrip beside the chat. The agent places those views; the browser does not invent the layout. Find, search, select, and generate work through that chat. A generate call writes a plain file name into the folder. On a wide window the chat is a resizable column beside the preview. On a narrow window the preview, the filmstrip, and the chat share one column, and the chat dock has three modes: fullscreen, peek, and expanded.
The app note is web-spa/README.md. The API note is web-api/README.md. The tool and greeting contract is docs/ai-assistance/README.md.
Supported Models
| Pipeline | Note | 16 GB | 24 GB | 48 GB |
|---|---|---|---|---|
qwen35-4b |
Qwen3.5-4B | ✅ | ✅ | ✅ |
qwen36-35b-a3b |
Qwen3.6-35B-A3B | ⚠️ | ⚠️ | ✅ |
gemma4-26b-a4b |
Gemma 4 26B-A4B | ⚠️ | ⚠️ | ✅ |
qwen38-27b |
Qwen3.8-27B | ⚠️ | ⚠️ | ✅ |
z-image-turbo |
Z-Image-Turbo | ✅ | ✅ | ✅ |
wan22-i2v |
Wan 2.2 I2V | ❌ | ⚠️ | ✅ |
wan22-ti2v-5b |
Wan2.2 TI2V-5B | ✅ | ✅ | ✅ |
ace-step-15-turbo |
ACE-Step 1.5 XL Turbo | ✅ | ✅ | ✅ |
bge-m3 |
BGE-M3 | ✅ | ✅ | ✅ |
voxcpm2 |
VoxCPM2 | ✅ | ✅ | ✅ |
⚠️ is degraded mode. The pipeline still runs the request, and it shrinks the one knob it owns until that request fits. The request keeps the resolution, the frame count, and the duration it named. ✅ keeps that knob at its full size.
Methodology
A pipeline equation comes from a public document, then maps onto a Metal operation. Another application's source is not a reference. The process citations are REFERENCES.md. A pipeline's own citations are in that pipeline's note.
The prompt and the generated tokens are separate phases. The key/value cache is what crosses the boundary. A prompt is computed in chunks. Prefill and decode are Metal shaders. A missing kernel stays missing.
Weights follow the Open Compute Project Microscaling Formats (MX) Specification: a block of 32 values and an E8M0 scale. Apple's Metal tensor documents name matmul2d and that scale plane. WWDC26 session 330 is the tensor-op session. The Metal shading-language specification is the unpack and storage reference.
Memory management
src/favlo/memory.py is the allocator for every device span. The serve process keeps the ledger. A pipeline child allocates its own Metal buffers and reports each span. budget() is reclaimable pages plus the live, pending, and returning bytes of every child of this daemon. --max-memory caps that answer. A pipeline receives a handle, and the heap stays with the owner of that opening. close frees that owner's spans. The next request stays queued while an allocation or a release is still open. The reclaim wait ends when those pages are reclaimable, or when the reclaimable count stops rising. Bytes still held stay in the budget as returning. At open, the pipeline reads the budget and shrinks the one knob it owns until the request fits. The request keeps the resolution, the frame count, and the duration it named. When the minimum working set does not fit, the pipeline refuses to open.
Pipeline architecture
Pipeline in src/favlo/pipeline.py is the call the daemon makes. Three classes extend it. Each one writes the reply its route already returns. The forward, the sampler, and the kernels stay in the pipeline package.
| Class | Route | What the class owns |
|---|---|---|
LanguagePipeline |
POST /v1/responses |
The disconnect shell around one response |
EmbeddingsPipeline |
POST /v1/embeddings |
The embeddings list object |
MediaPipeline |
POST /mcp |
Shared job, pause, and host checkpoint |
ImagePipeline / VideoPipeline / MusicPipeline / VoicePipeline |
POST /mcp |
Kind constants; subclass implements parse / generate / pack |
A served language model inherits LanguagePipeline and binds handle_responses. The listener translates POST /v1/chat/completions into that request and translates the Response back. A served embedding model inherits EmbeddingsPipeline and binds handle_embed. A served image, video, music, or voice pipeline inherits the matching kind class and binds handle_image, handle_video, handle_music, or handle_voice. A pipeline that is not served inherits none of them. The map is ARCHITECTURE.md.
The daemon records the resident pipeline process. That process loads the registry row the request named and creates the device. The row stores the packed record, the pipeline entry, and the sampling card. One chat or media process stays resident. A different chat or media row halts that process. The next open waits until its pages are reclaimable, or until the reclaimable count stops rising and the bytes stay as returning. An embeddings request opens its own process beside the resident model and closes that process when the request returns. It does not halt the resident model. A crash fails the job that was running. The daemon stays up, drops that process from the ledger, and listens for the next request.
Queueing
src/favlo/schedule.py admits one request to the device. An embeddings request waits until a chat already on the device returns, and a chat that has not started waits while an embeddings request is queued or running. Image, video, music, and voice run when that foreground queue is empty. A chat pauses the media job at its next safe point and closes the device. The same job resumes after the chat queue has drained. An embeddings request leaves the resident model loaded and closes its own process when the request returns. One media job runs at a time. A chat whose client has gone leaves the queue. The listener is docs/serve.md.
Prefix cache
src/favlo/prefix.py stores token ids and named regions on SSD, under ~/.favlo/prefix/. Each pipeline packs its own buffers into those regions and copies a matching file back. A prompt that extends the live tokens keeps the device. Any other prompt loads the longest stored prefix that pipeline accepts. One model and one checkpoint stay within 32 GiB. The note is docs/prefix.md.
Development
Favlo is an AI-First application. Agentic software delivery is how this repository is built: agents design the change, write the code, and land it. The author directs the work.
Problems
Report a problem in this repository's issue tracker.
License
Copyright 2026 Noriel Mallari
Favlo is licensed under the Apache License, Version 2.0. The terms are in LICENSE.md. A checkpoint keeps the license named in its note.
| Checkpoint | License | Note |
|---|---|---|
| Qwen3.5-4B | Apache License, Version 2.0 | note |
| Qwen3.6-35B-A3B | Apache License, Version 2.0 | note |
| Gemma 4 26B-A4B | Apache License, Version 2.0 | note |
| Qwen3.8-27B | Apache License, Version 2.0 | note |
| Z-Image-Turbo | Apache License, Version 2.0 | note |
| Wan 2.2 I2V | Apache License, Version 2.0 | note |
| umT5-XXL | Apache License, Version 2.0 | note |
| Wan 2.2 TI2V-5B | Apache License, Version 2.0 on the base card. The source checkpoint's license is unset. | note |
| ACE-Step 1.5 XL Turbo | MIT License | note |
| bge-m3 | MIT License | note |
| VoxCPM2 | Apache License, Version 2.0 | note |
Metadata
Release files for favlo 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| favlo-0.5.0.tar.gz | 3.4 MB | With provenance | Details for favlo-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| favlo-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for favlo-0.5.0-py3-none-any.whl |
Total release size: 3.6 MB
Release files / favlo-0.5.0.tar.gz
| Download URL | favlo-0.5.0.tar.gz |
|---|---|
| Size | 3.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e4c4986c9308e322163406547ddc08db65f7040db226705d71663e714354f6fb
|
|
BLAKE2b-256 checksum How to use checksums |
3a98ab02eddd89a1503d133185eb7502efac39cce2509ea9428db5937e7999f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logRelease files / favlo-0.5.0-py3-none-any.whl
| Download URL | favlo-0.5.0-py3-none-any.whl |
|---|---|
| Size | 164.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c898cd7fdb409606b046971f4bc54569a3d7f2f419f1c552d85f33bba602a2a
|
|
BLAKE2b-256 checksum How to use checksums |
48e0af24a52a0a85b1cdcee2f8bc5370ec4480a3c1276b850846a27ebf06dfa5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logSecurity for favlo 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for favlo-0.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.