npuforge PC kit 1

npuforge-pc-kit-1.zip (109,115,236 bytes, SHA-256 40b855f45f5360203ee3c41c1dcff02ca39bfe232e95e7088058f8d171e990c2, 606.7 MB unpacked, 124 files) is the x86_64 Linux kit for npuforge's PC conversion (pc/ and docs/PC.md in https://github.com/AbrahamPaulJ/npuforge). Built by pc/build_kit.sh; the licences below are also in the zip's README.md, manifest.json and licenses/ folder, and in the npuforge repository's NOTICE (section 7, "PC kit").

Converts Stable Diffusion 1.5 and SDXL single-file checkpoints into Nightmare Mobile exports on an x86_64 Linux PC (WSL works), for any Snapdragon HTP target, without a phone. It is the npuforge Android app's conversion (https://github.com/AbrahamPaulJ/npuforge, docs/PC.md) with the phone's compiler replaced by QAIRT's x86_64 compiler.

unzip npuforge-pc-kit-1.zip
./npuforge-pc-kit-1/npuforge-pc targets
./npuforge-pc-kit-1/npuforge-pc convert model.safetensors --target v79 --out exports/
./npuforge-pc-kit-1/npuforge-pc inspect exports/model_v79.zip

Requirements: an x86_64 Linux (any distribution; the kit carries its own glibc and C++ runtime), Python 3.8 or later, enough disk for about three times the checkpoint, and RAM for QAIRT's compiler (see the measured figures in docs/PC.md). Nothing is installed system-wide; the kit runs from its folder.

Contents

Path What Licence
npuforge_pc.py, npuforge-pc The command-line tool MIT (npuforge)
x86/tplconv, x86/componentconv The app's checkpoint weight writers, built for x86_64 from the same source with the same flags (-O2 -ffp-contract=off) MIT (npuforge)
bin/tplconv, bin/componentconv, qairt/bin/* sh launchers: run the x86/ program through qairt/lib/ld-linux-x86-64.so.2 --library-path qairt/lib MIT (npuforge)
arm/graphrec_record, arm/aload_run Static aarch64 Android executables (NDK r27c): run the app's ARM template libraries and record their graphs MIT (npuforge); statically linked Android bionic libc (BSD-style) and LLVM libc++ (Apache-2.0 with LLVM exception)
bin/qemu-aarch64 QEMU 8.2.2 user-mode emulator, Ubuntu package qemu-user-static 1:8.2.2+ds-0ubuntu1.18, unmodified GPL-2.0; see below
x86/qnn-context-binary-generator, x86/qnn-context-binary-utility, qairt/lib/libQnnHtp.so, libQnnHtpNetRunExtensions.so, libQnnSystem.so Qualcomm AI Runtime (QAIRT) 2.50.0.260828 x86_64 files, unmodified Qualcomm's licence, licenses/QAIRT-LICENSE.pdf
qairt/lib/ld-linux-x86-64.so.2, libc.so.6, libm.so.6 and the other glibc libraries GNU C Library 2.39 (Ubuntu 24.04 package libc6, unmodified) LGPL-2.1 or later; see below
qairt/lib/libc++.so.1, libc++abi.so.1, libunwind.so.1 LLVM 18.1.3 runtime (Ubuntu 24.04 packages) Apache-2.0 with LLVM exception
qairt/lib/libstdc++.so.6, libgcc_s.so.1, libatomic.so.1 (as present) GCC 14 runtime (Ubuntu 24.04 packages) GPL-3.0 with the GCC Runtime Library Exception
qairt/lib/libgraphrec_replay_x86.so npuforge's graph replay model library (native/graphrec) MIT (npuforge), built against QAIRT headers
assets/ The npuforge APK's template and component assets, byte-identical to the app's Non-commercial provenance; see licenses/template-provenance.md and licenses/npuforge-NOTICE
licenses/ Every licence and copyright file above
manifest.json Every file with its size and SHA-256, and the package versions

The UNet templates were derived through Local Dream's modified diffusers exporter (CC BY-NC 4.0), so the templates, and therefore the exports this kit makes, carry non-commercial provenance (licenses/npuforge-NOTICE, section 2). Checkpoints and LoRAs keep their own licences. The SD1.5 and SDXL inpainting differences the tool downloads on demand are CreativeML OpenRAIL-M; the SDXL VAE it downloads (madebyollin/sdxl-vae-fp16-fix) is MIT.

QEMU (GPL-2.0) and the GNU C Library (LGPL-2.1 or later): the corresponding sources are Ubuntu's qemu source package 1:8.2.2+ds-0ubuntu1.18 (https://launchpad.net/ubuntu/+source/qemu) and its glibc source package of the version in manifest.json (https://launchpad.net/ubuntu/+source/glibc). Both are unmodified. On request the npuforge maintainer will provide those sources for at least three years from distribution.

QAIRT files are Qualcomm's and are redistributed here by the maintainer's decision; this project has not established permission from Qualcomm (licenses/npuforge-NOTICE, section 1).

How it works

Per checkpoint, as in the app: componentconv writes the text encoder(s); tplconv writes a weight pack per graph with the app's recipes. The app's own aarch64 template library composes each graph from its pack under qemu-aarch64 (through aload, a small loader for Android libraries in a static bionic process) and graphrec_record writes that graph, weights included, to a recording. QAIRT's x86_64 qnn-context-binary-generator compiles the recording through libgraphrec_replay_x86.so for the chosen target's dsp_arch, soc_model and VTCM, with the template's own graph options. The zip has the app's file names and markers, and its swap_features.json names npuforge-pc as the producer and carries a target block.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support