Instructions to use Montey/lua-edge with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Montey/lua-edge with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Montey/lua-edge", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
File size: 983 Bytes
732e5cc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | [build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "edge-maxxing-4090-newdream"
description = "An edge-maxxing model submission for the 4090 newdream contest"
requires-python = ">=3.10,<3.11"
version = "6"
dependencies = [
"diffusers==0.28.2",
"onediff==1.2.0",
"onediffx==1.2.0",
"oneflow",
"numpy==1.26.4",
"xformers==0.0.25.post1",
"triton==2.2.0",
"transformers==4.41.2",
"accelerate==0.31.0",
"omegaconf==2.3.0",
"torch==2.2.2",
"torchvision==0.17.2",
"huggingface_hub==0.24.7",
"setuptools==75.2.0",
"edge-maxxing-pipelines @ git+https://github.com/womboai/edge-maxxing#subdirectory=pipelines",
]
[tool.uv.sources]
oneflow = { url = "https://github.com/siliconflow/oneflow_releases/releases/download/community_cu118/oneflow-0.9.1.dev20240802%2Bcu118-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" }
[project.scripts]
start_inference = "main:main" |