Skip to main content

Termux-Diffusion

PyPI Python npm npm downloads License

디바이스 리소스를 활용한 Android Termux 네이티브 온디바이스 Stable Diffusion 런타임
Native On-Device Stable Diffusion Runtime Utilizing Device Resources for Android Termux


📌 Architecture & Overview

안드로이드 순정 Bionic libc 상에서 디바이스 리소스를 활용하여 ARMv8.2-A DotProd/FP16 SIMD 벡터 연산(Cortex-A78 x4: 61초)을 통해 이미지를 생성하고 삼성 갤러리에 자동 반영합니다.

Executes quantized Stable Diffusion models utilizing device resources with ARMv8.2-A DotProd/FP16 SIMD vector execution (Cortex-A78 x4 61s) and direct Samsung Gallery indexing.


🚀 Installation & Quickstart

Python (PyPI)

pip install termux-diffusion
import termux_diffusion as td

# 1. Generate image on Android hardware
image_path = td.generate(
    prompt="Cyberpunk Seoul city at night, neon lights, 8k",
    model="sd-turbo",
    steps=4
)
print(f"Generated and saved to Gallery: {image_path}")

Node.js / TypeScript (npm)

npm install termux-diffusion
import { generate } from "termux-diffusion";

const result = await generate({
  prompt: "Cyberpunk Seoul city at night, neon lights, 8k",
  model: "sd-turbo",
  steps: 4
});
console.log("Image created:", result.outputPath);

📖 Official Documentation & Benchmarks


📄 License

Licensed under the Apache-2.0 License. Copyright (c) 2026 Eunho Kim (@uno-km).

Metadata

Release files for termux-diffusion 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for termux-diffusion 1.4.1
File Size Uploaded
termux_diffusion-1.4.1.tar.gz 65.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for termux-diffusion 1.4.1
File Interpreter ABI Platform
termux_diffusion-1.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 127.9 kB

Release files / termux_diffusion-1.4.1.tar.gz

Download URL termux_diffusion-1.4.1.tar.gz
Size 65.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ca23da0ebac52e2cd19bcab574f981394aa2f53c7b6a0ebd994c47a2752969a7
BLAKE2b-256 checksum
How to use checksums
8cb4e72c23eee80a8c61bfc5f26d219b0aa7c987982ad43de81d169e7bbc96c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.0

Release files / termux_diffusion-1.4.1-py3-none-any.whl

Download URL termux_diffusion-1.4.1-py3-none-any.whl
Size 62.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7da4a13e0cfe0b19d3ae624147675c3fa8c9fb6613faebedff1b28e2e928c79
BLAKE2b-256 checksum
How to use checksums
e5d898b49803caaed50a043202fb9192c19feace74aea8c9180a3870ccbfd08b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.0

Release history Release notifications | RSS feed

2.0.1

2 release files

2.0.0

2 release files

1.9.0

2 release files

1.8.1

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.9

2 release files

1.6.8

2 release files

1.6.7

2 release files

1.6.6

2 release files

1.6.5

2 release files

1.6.4

2 release files

1.6.3

2 release files

1.6.2

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.3

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.5

2 release files

1.4.3

2 release files

This release

1.4.1 This release

2 release files

1.4.0

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

1 release file

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page