Offline anime image generation on the Snapdragon 8 Gen 1 NPU (Hexagon V69), no root. Android app.
Repo ayanoby/hexanima, read from GitHub 2 h ago. ayanoby has not joined Take My Repo.
Model management (offline list, export / import, a smaller MiniMax-H3 Ref2VA download), a real-time estimate that learns from the phone, and a few fixes.
Models: export and import to a folder (SD card, USB drive, backup), the model list and Delete without internet, MiniMax-H3 Ref2VA fetches only the 26 GB text encoder it needs instead of the whole MiniMax-H3-Image (63 GB in all instead of 85), new RIFE and WD Tagger cards, confirmation before deleting a model and before stopping a generation.
Pictures: choose where the Download button saves (the phone gallery or any folder) and turn on saving right after every generation; swipe down closes a picture or a video in the viewer.
Time: the estimate on the Generate button learns from your phone and follows the picture size; Time calibration in the menu measures three sizes for the selected model; Anima and Klein runs show text / DiT / decode seconds in the viewer.
Fixed: changing "pictures per run" during a batch lengthened the running batch; a model that fails to load now shows why instead of loading forever.
Snapdragon 8 Elite (Galaxy S25) is still not supported: the Hexagon V73+ kernel work is in the tree, detection stays off until the noise on big pictures is fixed. Thanks to the testers in issues #6, #7, #8 and #9.
Install: download HexAnima-1.8.3.apk (it updates 1.8.2, 1.8.1, 1.8.0 and 1.7.1, same signature), allow installs from unknown sources, open it. Verify with sha256sum -c SHA256SUMS.txt.
HexAnima-<id>/ with hexanima-model.json: relative paths, sizes, sha256, written last, so an unfinished export is refused and removed). Import a model from a folder puts them back: every file is checked (size and sha256), the sparse safetensors stub of an Anima model is rebuilt from hdr.bin, the model is marked installed. Ref2VA takes the MiniMax-H3 text encoder along; the 4 step Qwen / MOSS add-ons travel with their base pack. Weights are not run from the external folder (the NPU streams them from the phone's own storage). Asked in issue #9.files/catalog.cache); offline the saved copy is shown, so installed models can still be managed and deleted (asked in issue #9). The first start of this version has no saved copy yet: open Models once online.te/, tokenizer, licence, 26 GB) are fetched from the H3-Image pack together with the video model (the list row and the button show the total, 63 GB instead of 37 GB; deleting Ref2VA removes them again unless MiniMax-H3-Image owns them). Asked in issue #9.files/timings.json, the last 20 with the size, steps, frames and the formula's estimate); the estimate is the median of the runs with the same settings, otherwise the formula corrected by the measured / estimated ratio interpolated between the measured sizes (fading to the plain formula far from every measurement; the first run after the app started is ignored). Time calibration (menu): short runs at the smallest, a middle and the largest size of the selected model (estimate up to 150 s each). Anima and Klein runs also keep the text / DiT / decode seconds, shown in the viewer.hexagon/mega/hmxv73.c, a v73 branch in hmxacc.S, hmx_bias_setup, build_hyb.sh builds a skel for V73+ with the kernel code for v69 and only the drain for v73; verified in hexagon-sim on v73 / v75 / v79 cores) is in the tree but chip detection for the Snapdragon 8 Elite stays off (Compat.V79_ENABLED = false): the Anima blocks run correctly on a Galaxy S25 in tests, big pictures still show noise there. Snapdragon 8 Gen 3 (V75) was reported to work with V73 kernels in issue #7; a build for it needs V75 QNN contexts and a worker count for its five DSP sessions.MiniMax-H3 Ref2VA video is in the download catalog. Models → MiniMax-H3 → "MiniMax H3 Ref2VA Video" (text or reference photo to video, 37 GB). The download asks for the MiniMax-H3 Community License first; MiniMax-H3-Image has to be installed before it (the video model uses its text encoder), and the app says so. Copying the files by hand still works.
SeedVR2 card on the Models screen. The Upscaler section now lists SeedVR2 next to Real-ESRGAN (3.53 GB, Download / Delete, progress and cancel).
Everything from 1.8.0 and 1.8.1 is included: the Upscale screen with a before / after slider and pinch zoom, RIFE frame interpolation for video, picture-to-tags, SeedVR2 downloading itself on first use. New strings are translated into the 11 other languages.
Install: download HexAnima-1.8.2.apk (it updates 1.8.1, 1.8.0 and 1.7.1, same signature), allow installs from unknown sources, open it. Verify with sha256sum -c SHA256SUMS.txt.
catalog10.json, read by apps from 1.8.2; older apps keep catalog9.json; tools/make_catalog10.py builds it). It is listed under MiniMax-H3 on the Models screen, the pack (221 files, 37 GB, with LICENSE and NOTICE) is in ayanoby/hexanima-r2v-packs with a manifest of sizes and hashes, and the download asks for the MiniMax-H3 Community License first. MiniMax-H3-Image has to be installed before it (the video model uses its text encoder); the app says so. Copying the files by hand still works.SeedVR2 downloads itself. The first time you pick SeedVR2 in Upscale, the app asks and downloads the model (about 3.6 GB, Apache 2.0) from Hugging Face: resumable, verified by size and hash, with a free-space check; the upscale starts by itself when the download is done. No more copying files by hand (1.8.0 still said so).
Everything from 1.8.0 is included: the Upscale screen with a before / after slider and pinch zoom, RIFE frame interpolation for video, picture-to-tags, prompt formats per model. The 3 new strings are translated into the 11 other languages.
Install: download HexAnima-1.8.1.apk (it updates 1.8.0 and 1.7.1, same signature), allow installs from unknown sources, open it. Verify with sha256sum -c SHA256SUMS.txt.
ayanoby/hexanima-upscale (seedvr2/manifest.json lists sizes and hashes): resumable, verified, a free-space check first.Upscale screen. Menu ⋮ → Upscale: pick your own picture or one from the app gallery, choose the method (Real-ESRGAN photo / anime, or the new SeedVR2 diffusion upscaler) and the scale. The result appears right where the picture was, with a before / after slider you drag with a finger and pinch to zoom into small details.
More frames in a video (RIFE). Upscale → Video: ×2 or ×4 frames per second for a clip from the phone or the gallery, drawn on the NPU, the sound is kept, up to 1280×768 (720p). A small network (12–40 MB) is downloaded once per size.
Picture to tags. A photo button above the prompt finds the Danbooru tags of a picture (WD EVA02 Tagger v3 on the NPU, about 3 seconds) for Anima. Templates now also show the prompt format of the selected model with examples.
Smaller things. Negative prompt for Turbo (NAG, experiment), history thumbnails no longer go black after the viewer, new strings translated into the 11 other languages. SeedVR2 files are put on the phone by hand for now (download from the Models screen comes later).
Install: download HexAnima-1.8.0.apk (it updates 1.7.1, same signature), allow installs from unknown sources, open it. Verify with sha256sum -c SHA256SUMS.txt.
A new Upscale screen (main menu ⋮ → Upscale) with pictures and video, a picture-to-tags button for Anima, more frames per second in a video (RIFE), and the SeedVR2 diffusion upscaler on the NPU.
ayanoby/hexanima-upscale, seedvr2/) but are put on the phone by hand for now; the download from the Models screen comes later. Results up to about 4 megapixels.ayanoby/hexanima-rife. Hard cuts are not interpolated.ayanoby/hexanima-tagger); the tags replace the prompt or are added to it.hexagon/mega/blk.c (scalar for now, about twice as slow as plain Turbo).seedvr2/ (reference, export, the svsr driver, notes), flux3/hexagon/mega/svrun.cpp (the DiT runner), phone/svr.sh; the RIFE and tagger conversion tools live in the research tree.THIRD_PARTY.md.Mage-Flow edits with up to three pictures. Put several photos into one edit: "the fox from picture 1 sits in the car from picture 2". The "Pictures to edit" block now works for Mage-Flow, and the DiT runs in windows, so big edits fit (up to 24576 image tokens in all, e.g. 2048x2048 in about 3.5 minutes, or 1024x768 with three pictures in 2.3 minutes).
Anima 2B and 2.9B pictures of any size. The limit of 6912 patches is gone: the attention streams its keys through VTCM, and big pictures run in windows. Up to 4096x4096 (65536 patches) in the app; for example 1536x1536 in 99 s and 2560x2048 in 5.5 minutes on the 2B model. Models are trained at about 1 Mpx, so very large pictures get soft and hazy, but they work, and the time estimate on the button now grows with the square of the size.
Smaller things. The picture area on the main screen takes exactly the shape of the picture. Mage kernels moved into the shared flux3 kernel tree (contributors: build from there). New strings are translated into the 11 other languages.
Two pictures of the same kind: Mage-Flow edits with several photos and Anima pictures of any size (up to 4096×4096) on the phone NPU.
Image k: <|vision_start|>..., interleaved mrope positions that continue after each picture), its own reference latent after the target tokens, and RoPE frame index k + 1. mage/mk_edit_in.py writes the same inputs for magerun edit on the command line.flux3/hexagon/mega (which also fixes a profiling array that was too small there); mage/hexagon/mega is now a README. The runner retries a call when the HMX self-test fails (rc -77) instead of stopping the picture.hexagon/mega/blk.c (attn_chunked, window meta M_W0/M_WN/M_PASS), megarun.cpp.catalog9.json, read by apps from 1.7.0; older apps keep catalog8.json). Klein (Black Forest Labs, 5.6B, Qwen3-VL-4B text encoder): photorealism and legible text, 16 steps without CFG, sizes 256 to 1536, about a minute for 512x512; a 9 GB pack in ayanoby/hexanima-klein-packs. LTX-2.5 (Lightricks, 22B distilled, Gemma 4 12B text encoder): text to video and image to video, 8 steps without CFG, 17-97 frames, no sound; a 31 GB pack in ayanoby/hexanima-ltx-packs. Each pack has manifest.json (size and sha256 of every file), LICENSE and NOTICE.md; the download asks for consent first (FLUX Kommunity License, non-commercial; LTX-2 Community License, Gemma terms). tools/make_catalog9.py builds the catalog. The Klein pack on Hugging Face used to lack 15 files of glue/ (the model failed with "missing glue/x_img.f32"): they are uploaded and listed in the manifest.files/r2v by hand (phone/install_r2v.sh), the text encoder is the one of MiniMax-H3-Image. MiniMax-H3 Community License.app/build.sh backup: the copy of the in-app gallery and settings now goes to /data/local/tmp/HexAnimaBackup instead of /sdcard: the media scanner listed every backed-up picture and video in the phone's gallery.flux3/ (the newest Hexagon kernel tree, shared by Klein, LTX and Ref2VA; the Klein runner and VAE; pack conversion), ltx/ (runner, VAE, conversion, notes) and the Ref2VA runner, VAE and conversion in h3/, with READMEs and the paths of the build scripts relative to the repository, so that anyone can build the kernels (see flux3/README.md, ltx/README.md, h3/NOTES_REF2VA.md). tools/stage_jnilibs.sh stages the new binaries.THIRD_PARTY.md.