mirror of
https://github.com/lemonade-sdk/diffusers-rocm.git
synced 2026-11-23 17:49:24 -10:00
Mirrors the lemonade-sdk/vllm-rocm pattern to publish self-contained
diffusers + PyTorch ROCm + diffusers-server tarballs for AMD GPUs.
Targets integration with Lemonade as the `diffusers` backend recipe.
Contents:
- diffusers-server: FastAPI HTTP service exposing OpenAI-compatible
/v1/images/generations. Falls through AutoPipelineForText2Image
for unknown models; FLUX GGUF handled explicitly via
FluxTransformer2DModel.from_single_file + GGUFQuantizationConfig.
- CI workflow: matrix over gfx targets (v1 ships gfx1151 only),
downloads python-build-standalone CPython 3.12, installs torch
from repo.amd.com/rocm/whl/<target>/, installs diffusers stack
from PyPI, packages into a relocatable tarball, splits at 1.9 GB
and publishes to GitHub Releases as
diffusers{V}-rocm{V}-{gfx_target}-x64.tar.gz.
- pyproject.toml + src/diffusers_server/: small Python package
installed into the bundled site-packages.
Validated on gfx1151 (Strix Halo) with SDXL-Turbo: 4.7s pipeline
load, 0.5s warm generation. FLUX.1-schnell-GGUF code path written
but unvalidated (HF repo is gated, awaits auth).
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
37 lines
836 B
TOML
37 lines
836 B
TOML
[build-system]
|
|
requires = ["setuptools>=61.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "diffusers-server"
|
|
version = "0.1.0"
|
|
description = "OpenAI-compatible HTTP server for HuggingFace diffusers (ROCm)"
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
license = { text = "MIT" }
|
|
authors = [{ name = "Lemonade SDK Contributors" }]
|
|
dependencies = [
|
|
"fastapi>=0.110",
|
|
"uvicorn[standard]>=0.27",
|
|
"diffusers>=0.35.0",
|
|
"transformers>=4.45",
|
|
"accelerate>=0.30",
|
|
"peft>=0.11",
|
|
"safetensors>=0.4",
|
|
"huggingface_hub>=0.24",
|
|
"gguf>=0.10",
|
|
"Pillow>=10",
|
|
"sentencepiece>=0.2",
|
|
"protobuf>=4",
|
|
"pydantic>=2",
|
|
]
|
|
|
|
[project.scripts]
|
|
diffusers-server = "diffusers_server.__main__:main"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
|
|
[tool.setuptools.package-dir]
|
|
"" = "src"
|