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/chat/completions. 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. The package is not published to PyPI.
Usage
uv run favlo serve
On a terminal with an empty registry, this downloads the first model and packs it before the daemon listens. Wait until that finishes, and leave this process running.
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.
Supported Models
| Pipeline | Note |
|---|---|
qwen36-35b-a3b |
Qwen3.6-35B-A3B |
gemma4-26b-a4b |
Gemma 4 26B-A4B |
qwen38-27b |
Qwen3.8-27B |
qwen38-flash-next |
Qwen3.8-Flash-Next |
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 |
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. A pipeline receives a handle, and the heap stays with the owner of that opening. close frees that owner's spans. The next request waits until those pages are reclaimable, and stays queued while an allocation or a release is still open. 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/chat/completions |
The disconnect shell around one chat completion |
EmbeddingsPipeline |
POST /v1/embeddings |
The embeddings list object |
MediaPipeline |
POST /mcp |
The job, the pause, and the host checkpoint |
A served language model inherits LanguagePipeline and binds handle_chat. A served embedding model inherits EmbeddingsPipeline and binds handle_embed. A served image, video, music, or voice pipeline inherits MediaPipeline 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 one 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. A different row halts the process and waits until its pages are reclaimable. 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.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 |
| Qwen3.8-Flash-Next | Qwen Community License 1.0 | note |
Metadata
Release files for favlo 0.3.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.3.0.tar.gz | 2.7 MB | With provenance | Details for favlo-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| favlo-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for favlo-0.3.0-py3-none-any.whl |
Total release size: 2.8 MB
Release files / favlo-0.3.0.tar.gz
| Download URL | favlo-0.3.0.tar.gz |
|---|---|
| Size | 2.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
460b8ef93f25f1cb0cf445b0b979a45d4f2054c4b9e955c181f4d825467ae007
|
|
BLAKE2b-256 checksum How to use checksums |
78bed8837520a24b7452ce2ee7ab15fa83398a7b525f74a6ee6bac42e81e59aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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 Oct 31, 2026.
Transparency logRelease files / favlo-0.3.0-py3-none-any.whl
| Download URL | favlo-0.3.0-py3-none-any.whl |
|---|---|
| Size | 124.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
529c6a5782825962e2afa92b972329bf23e3e6a605fc7a2bf15ddbfb73516d0f
|
|
BLAKE2b-256 checksum How to use checksums |
0498b16ef13f532ebd5dad8dc348ae38b30708f540b5c93c1fdbe2b8012f669b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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 Oct 31, 2026.
Transparency logSecurity for favlo 0.3.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.3.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 Oct 31, 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.