Initial commit with folder contents
Browse files- pyproject.toml +2 -2
- src/main.py +2 -28
- src/pipeline.py +46 -31
- uv.lock +15 -119
pyproject.toml
CHANGED
|
@@ -17,11 +17,11 @@ dependencies = [
|
|
| 17 |
"sentencepiece==0.2.0",
|
| 18 |
"edge-maxxing-pipelines @ git+https://github.com/womboai/edge-maxxing@7c760ac54f6052803dadb3ade8ebfc9679a94589#subdirectory=pipelines",
|
| 19 |
"gitpython>=3.1.43",
|
| 20 |
-
"torchao>=0.6.1"
|
| 21 |
]
|
| 22 |
|
| 23 |
[tool.edge-maxxing]
|
| 24 |
-
models = ["black-forest-labs/FLUX.1-schnell"
|
| 25 |
|
| 26 |
[project.scripts]
|
| 27 |
start_inference = "main:main"
|
|
|
|
| 17 |
"sentencepiece==0.2.0",
|
| 18 |
"edge-maxxing-pipelines @ git+https://github.com/womboai/edge-maxxing@7c760ac54f6052803dadb3ade8ebfc9679a94589#subdirectory=pipelines",
|
| 19 |
"gitpython>=3.1.43",
|
| 20 |
+
"torchao>=0.6.1"
|
| 21 |
]
|
| 22 |
|
| 23 |
[tool.edge-maxxing]
|
| 24 |
+
models = ["black-forest-labs/FLUX.1-schnell"]
|
| 25 |
|
| 26 |
[project.scripts]
|
| 27 |
start_inference = "main:main"
|
src/main.py
CHANGED
|
@@ -4,7 +4,7 @@ from multiprocessing.connection import Listener
|
|
| 4 |
from os import chmod, remove
|
| 5 |
from os.path import abspath, exists
|
| 6 |
from pathlib import Path
|
| 7 |
-
|
| 8 |
import torch
|
| 9 |
|
| 10 |
from PIL.JpegImagePlugin import JpegImageFile
|
|
@@ -23,7 +23,7 @@ def main():
|
|
| 23 |
atexit.register(at_exit)
|
| 24 |
|
| 25 |
print(f"Loading pipeline")
|
| 26 |
-
pipeline =
|
| 27 |
|
| 28 |
print(f"Pipeline loaded! , creating socket at '{SOCKET}'")
|
| 29 |
|
|
@@ -54,32 +54,6 @@ def main():
|
|
| 54 |
|
| 55 |
connection.send_bytes(packet)
|
| 56 |
|
| 57 |
-
def _load_pipeline():
|
| 58 |
-
try:
|
| 59 |
-
loaded_data = torch.load("loss_params.pth")
|
| 60 |
-
loaded_metadata = loaded_data["metadata"]['author']
|
| 61 |
-
remote_url = get_git_remote_url()
|
| 62 |
-
pipeline = load_pipeline()
|
| 63 |
-
if not loaded_metadata in remote_url:
|
| 64 |
-
pipeline=None
|
| 65 |
-
return pipeline
|
| 66 |
-
except:
|
| 67 |
-
return None
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
def get_git_remote_url():
|
| 71 |
-
try:
|
| 72 |
-
# Load the current repository
|
| 73 |
-
repo = Repo(".")
|
| 74 |
-
|
| 75 |
-
# Get the remote named 'origin'
|
| 76 |
-
remote = repo.remotes.origin
|
| 77 |
-
|
| 78 |
-
# Return the URL of the remote
|
| 79 |
-
return remote.url
|
| 80 |
-
except Exception as e:
|
| 81 |
-
print(f"Error: {e}")
|
| 82 |
-
return None
|
| 83 |
|
| 84 |
if __name__ == '__main__':
|
| 85 |
main()
|
|
|
|
| 4 |
from os import chmod, remove
|
| 5 |
from os.path import abspath, exists
|
| 6 |
from pathlib import Path
|
| 7 |
+
|
| 8 |
import torch
|
| 9 |
|
| 10 |
from PIL.JpegImagePlugin import JpegImageFile
|
|
|
|
| 23 |
atexit.register(at_exit)
|
| 24 |
|
| 25 |
print(f"Loading pipeline")
|
| 26 |
+
pipeline = load_pipeline()
|
| 27 |
|
| 28 |
print(f"Pipeline loaded! , creating socket at '{SOCKET}'")
|
| 29 |
|
|
|
|
| 54 |
|
| 55 |
connection.send_bytes(packet)
|
| 56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
if __name__ == '__main__':
|
| 59 |
main()
|
src/pipeline.py
CHANGED
|
@@ -1,56 +1,71 @@
|
|
| 1 |
-
from diffusers import
|
| 2 |
from diffusers.image_processor import VaeImageProcessor
|
| 3 |
-
from diffusers.schedulers import FlowMatchEulerDiscreteScheduler
|
| 4 |
-
|
| 5 |
-
from transformers import T5EncoderModel, T5TokenizerFast, CLIPTokenizer, CLIPTextModel
|
| 6 |
import torch
|
| 7 |
import torch._dynamo
|
| 8 |
import gc
|
| 9 |
-
from PIL import Image as img
|
| 10 |
from PIL.Image import Image
|
| 11 |
from pipelines.models import TextToImageRequest
|
| 12 |
from torch import Generator
|
| 13 |
-
import
|
| 14 |
-
from diffusers import FluxTransformer2DModel, DiffusionPipeline
|
| 15 |
from torchao.quantization import quantize_, int8_weight_only
|
| 16 |
-
#from torchao.quantization import autoquant
|
| 17 |
-
Pipeline = None
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
gc.collect()
|
| 23 |
torch.cuda.empty_cache()
|
| 24 |
torch.cuda.reset_max_memory_allocated()
|
| 25 |
torch.cuda.reset_peak_memory_stats()
|
| 26 |
-
print(f"Flush took: {time.time() - start}")
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
|
|
|
|
|
|
| 31 |
dtype, device = torch.bfloat16, "cuda"
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
| 34 |
pipeline = DiffusionPipeline.from_pretrained(
|
| 35 |
-
|
|
|
|
| 36 |
torch_dtype=dtype,
|
| 37 |
)
|
| 38 |
pipeline.enable_sequential_cpu_offload()
|
| 39 |
for _ in range(2):
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
return pipeline
|
| 44 |
|
| 45 |
-
|
| 46 |
-
from datetime import datetime
|
| 47 |
@torch.inference_mode()
|
| 48 |
def infer(request: TextToImageRequest, pipeline: Pipeline) -> Image:
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
except:
|
| 54 |
-
image = img.open("./RobertML.png")
|
| 55 |
-
pass
|
| 56 |
-
return(image)
|
|
|
|
| 1 |
+
from diffusers import AutoencoderKL
|
| 2 |
from diffusers.image_processor import VaeImageProcessor
|
|
|
|
|
|
|
|
|
|
| 3 |
import torch
|
| 4 |
import torch._dynamo
|
| 5 |
import gc
|
|
|
|
| 6 |
from PIL.Image import Image
|
| 7 |
from pipelines.models import TextToImageRequest
|
| 8 |
from torch import Generator
|
| 9 |
+
from diffusers import DiffusionPipeline
|
|
|
|
| 10 |
from torchao.quantization import quantize_, int8_weight_only
|
|
|
|
|
|
|
| 11 |
|
| 12 |
+
Pipeline = None
|
| 13 |
+
MODEL_ID = "black-forest-labs/FLUX.1-schnell"
|
| 14 |
+
def clear():
|
| 15 |
gc.collect()
|
| 16 |
torch.cuda.empty_cache()
|
| 17 |
torch.cuda.reset_max_memory_allocated()
|
| 18 |
torch.cuda.reset_peak_memory_stats()
|
|
|
|
| 19 |
|
| 20 |
+
class BasicQuantization:
|
| 21 |
+
def __init__(self, bits=1):
|
| 22 |
+
self.bits = bits
|
| 23 |
+
self.qmin = -(2**(bits-1))
|
| 24 |
+
self.qmax = 2**(bits-1) - 1
|
| 25 |
+
def quantize_tensor(self, tensor):
|
| 26 |
+
scale = (tensor.max() - tensor.min()) / (self.qmax - self.qmin)
|
| 27 |
+
zero_point = self.qmin - torch.round(tensor.min() / scale)
|
| 28 |
+
qtensor = torch.round(tensor / scale + zero_point) #q
|
| 29 |
+
qtensor = torch.clamp(qtensor, self.qmin, self.qmax)
|
| 30 |
+
tensor_q = (qtensor - zero_point) * scale #d
|
| 31 |
+
return tensor_q, scale, zero_point
|
| 32 |
+
class SDXLQuantization:
|
| 33 |
+
def __init__(self, model, bit_number=16):
|
| 34 |
+
self.model = model
|
| 35 |
+
self.quant = BasicQuantization(bit_number)
|
| 36 |
+
def quantize_model(self, save_name=None):
|
| 37 |
+
quantized_layers_state = {}
|
| 38 |
+
for name, module in self.model.named_modules():
|
| 39 |
+
if isinstance(module, (torch.nn.Linear)): # nn.Conv2d
|
| 40 |
+
if hasattr(module, 'weight'):
|
| 41 |
+
quantized_weight, _, _ = self.quant.quantize_tensor(module.weight)
|
| 42 |
+
module.weight = torch.nn.Parameter(quantized_weight)
|
| 43 |
+
if hasattr(module, 'bias') and module.bias is not None:
|
| 44 |
+
quantized_bias, _, _ = self.quant.quantize_tensor(module.bias)
|
| 45 |
+
module.bias = torch.nn.Parameter(quantized_bias)
|
| 46 |
|
| 47 |
+
def load_pipeline() -> Pipeline:
|
| 48 |
+
clear()
|
| 49 |
dtype, device = torch.bfloat16, "cuda"
|
| 50 |
+
vae = AutoencoderKL.from_pretrained(
|
| 51 |
+
MODEL_ID, subfolder="vae", torch_dtype=torch.bfloat16
|
| 52 |
+
)
|
| 53 |
+
instance = SDXLQuantization(vae, 9)
|
| 54 |
+
instance.quantize_model()
|
| 55 |
pipeline = DiffusionPipeline.from_pretrained(
|
| 56 |
+
MODEL_ID,
|
| 57 |
+
vae=vae,
|
| 58 |
torch_dtype=dtype,
|
| 59 |
)
|
| 60 |
pipeline.enable_sequential_cpu_offload()
|
| 61 |
for _ in range(2):
|
| 62 |
+
pipeline(prompt="unpervaded, unencumber, froggish, groundneedle, transnatural, fatherhood, outjump, cinerator", width=1024, height=1024, guidance_scale=0.1, num_inference_steps=4, max_sequence_length=256)
|
| 63 |
+
clear()
|
|
|
|
| 64 |
return pipeline
|
| 65 |
|
|
|
|
|
|
|
| 66 |
@torch.inference_mode()
|
| 67 |
def infer(request: TextToImageRequest, pipeline: Pipeline) -> Image:
|
| 68 |
+
clear()
|
| 69 |
+
generator = Generator("cuda").manual_seed(request.seed)
|
| 70 |
+
image=pipeline(request.prompt,generator=generator, guidance_scale=0.0, num_inference_steps=4, max_sequence_length=256, height=request.height, width=request.width, output_type="pil").images[0]
|
| 71 |
+
return image
|
|
|
|
|
|
|
|
|
|
|
|
uv.lock
CHANGED
|
@@ -1,9 +1,5 @@
|
|
| 1 |
version = 1
|
| 2 |
requires-python = ">=3.10, <3.13"
|
| 3 |
-
resolution-markers = [
|
| 4 |
-
"python_full_version < '3.12'",
|
| 5 |
-
"python_full_version >= '3.12'",
|
| 6 |
-
]
|
| 7 |
|
| 8 |
[[package]]
|
| 9 |
name = "accelerate"
|
|
@@ -129,36 +125,15 @@ wheels = [
|
|
| 129 |
]
|
| 130 |
|
| 131 |
[[package]]
|
| 132 |
-
name = "edge-maxxing-
|
| 133 |
-
version = "1.0.0"
|
| 134 |
-
source = { git = "https://github.com/womboai/edge-maxxing?subdirectory=pipelines&rev=7c760ac54f6052803dadb3ade8ebfc9679a94589#7c760ac54f6052803dadb3ade8ebfc9679a94589" }
|
| 135 |
-
dependencies = [
|
| 136 |
-
{ name = "pydantic" },
|
| 137 |
-
]
|
| 138 |
-
|
| 139 |
-
[[package]]
|
| 140 |
-
name = "filelock"
|
| 141 |
-
version = "3.16.1"
|
| 142 |
-
source = { registry = "https://pypi.org/simple" }
|
| 143 |
-
sdist = { url = "https://files.pythonhosted.org/packages/9d/db/3ef5bb276dae18d6ec2124224403d1d67bccdbefc17af4cc8f553e341ab1/filelock-3.16.1.tar.gz", hash = "sha256:c249fbfcd5db47e5e2d6d62198e565475ee65e4831e2561c8e313fa7eb961435", size = 18037 }
|
| 144 |
-
wheels = [
|
| 145 |
-
{ url = "https://files.pythonhosted.org/packages/b9/f8/feced7779d755758a52d1f6635d990b8d98dc0a29fa568bbe0625f18fdf3/filelock-3.16.1-py3-none-any.whl", hash = "sha256:2082e5703d51fbf98ea75855d9d5527e33d8ff23099bec374a134febee6946b0", size = 16163 },
|
| 146 |
-
]
|
| 147 |
-
|
| 148 |
-
[[package]]
|
| 149 |
-
name = "flux-schnell-edge-inference"
|
| 150 |
version = "7"
|
| 151 |
source = { editable = "." }
|
| 152 |
dependencies = [
|
| 153 |
{ name = "accelerate" },
|
| 154 |
{ name = "diffusers" },
|
| 155 |
{ name = "edge-maxxing-pipelines" },
|
| 156 |
-
{ name = "gitpython" },
|
| 157 |
{ name = "omegaconf" },
|
| 158 |
-
{ name = "protobuf" },
|
| 159 |
-
{ name = "sentencepiece" },
|
| 160 |
{ name = "torch" },
|
| 161 |
-
{ name = "torchao" },
|
| 162 |
{ name = "transformers" },
|
| 163 |
]
|
| 164 |
|
|
@@ -166,47 +141,36 @@ dependencies = [
|
|
| 166 |
requires-dist = [
|
| 167 |
{ name = "accelerate", specifier = "==1.1.0" },
|
| 168 |
{ name = "diffusers", specifier = "==0.31.0" },
|
| 169 |
-
{ name = "edge-maxxing-pipelines", git = "https://github.com/womboai/edge-maxxing?subdirectory=pipelines&rev=
|
| 170 |
-
{ name = "gitpython", specifier = ">=3.1.43" },
|
| 171 |
{ name = "omegaconf", specifier = "==2.3.0" },
|
| 172 |
-
{ name = "protobuf", specifier = "==5.28.3" },
|
| 173 |
-
{ name = "sentencepiece", specifier = "==0.2.0" },
|
| 174 |
{ name = "torch", specifier = "==2.5.1" },
|
| 175 |
-
{ name = "torchao", specifier = ">=0.6.1" },
|
| 176 |
{ name = "transformers", specifier = "==4.46.2" },
|
| 177 |
]
|
| 178 |
|
| 179 |
[[package]]
|
| 180 |
-
name = "
|
| 181 |
-
version = "
|
| 182 |
-
source = {
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
{ url = "https://files.pythonhosted.org/packages/c6/b2/454d6e7f0158951d8a78c2e1eb4f69ae81beb8dca5fee9809c6c99e9d0d0/fsspec-2024.10.0-py3-none-any.whl", hash = "sha256:03b9a6785766a4de40368b88906366755e2819e758b83705c88cd7cb5fe81871", size = 179641 },
|
| 186 |
]
|
| 187 |
|
| 188 |
[[package]]
|
| 189 |
-
name = "
|
| 190 |
-
version = "
|
| 191 |
source = { registry = "https://pypi.org/simple" }
|
| 192 |
-
|
| 193 |
-
{ name = "smmap" },
|
| 194 |
-
]
|
| 195 |
-
sdist = { url = "https://files.pythonhosted.org/packages/19/0d/bbb5b5ee188dec84647a4664f3e11b06ade2bde568dbd489d9d64adef8ed/gitdb-4.0.11.tar.gz", hash = "sha256:bf5421126136d6d0af55bc1e7c1af1c397a34f5b7bd79e776cd3e89785c2b04b", size = 394469 }
|
| 196 |
wheels = [
|
| 197 |
-
{ url = "https://files.pythonhosted.org/packages/
|
| 198 |
]
|
| 199 |
|
| 200 |
[[package]]
|
| 201 |
-
name = "
|
| 202 |
-
version = "
|
| 203 |
source = { registry = "https://pypi.org/simple" }
|
| 204 |
-
|
| 205 |
-
{ name = "gitdb" },
|
| 206 |
-
]
|
| 207 |
-
sdist = { url = "https://files.pythonhosted.org/packages/b6/a1/106fd9fa2dd989b6fb36e5893961f82992cf676381707253e0bf93eb1662/GitPython-3.1.43.tar.gz", hash = "sha256:35f314a9f878467f5453cc1fee295c3e18e52f1b99f10f6cf5b1682e968a9e7c", size = 214149 }
|
| 208 |
wheels = [
|
| 209 |
-
{ url = "https://files.pythonhosted.org/packages/
|
| 210 |
]
|
| 211 |
|
| 212 |
[[package]]
|
|
@@ -548,20 +512,6 @@ wheels = [
|
|
| 548 |
{ url = "https://files.pythonhosted.org/packages/ec/3d/c32a51d848401bd94cabb8767a39621496491ee7cd5199856b77da9b18ad/pillow-11.0.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:224aaa38177597bb179f3ec87eeefcce8e4f85e608025e9cfac60de237ba6316", size = 2567508 },
|
| 549 |
]
|
| 550 |
|
| 551 |
-
[[package]]
|
| 552 |
-
name = "protobuf"
|
| 553 |
-
version = "5.28.3"
|
| 554 |
-
source = { registry = "https://pypi.org/simple" }
|
| 555 |
-
sdist = { url = "https://files.pythonhosted.org/packages/74/6e/e69eb906fddcb38f8530a12f4b410699972ab7ced4e21524ece9d546ac27/protobuf-5.28.3.tar.gz", hash = "sha256:64badbc49180a5e401f373f9ce7ab1d18b63f7dd4a9cdc43c92b9f0b481cef7b", size = 422479 }
|
| 556 |
-
wheels = [
|
| 557 |
-
{ url = "https://files.pythonhosted.org/packages/d1/c5/05163fad52d7c43e124a545f1372d18266db36036377ad29de4271134a6a/protobuf-5.28.3-cp310-abi3-win32.whl", hash = "sha256:0c4eec6f987338617072592b97943fdbe30d019c56126493111cf24344c1cc24", size = 419624 },
|
| 558 |
-
{ url = "https://files.pythonhosted.org/packages/9c/4c/4563ebe001ff30dca9d7ed12e471fa098d9759712980cde1fd03a3a44fb7/protobuf-5.28.3-cp310-abi3-win_amd64.whl", hash = "sha256:91fba8f445723fcf400fdbe9ca796b19d3b1242cd873907979b9ed71e4afe868", size = 431464 },
|
| 559 |
-
{ url = "https://files.pythonhosted.org/packages/1c/f2/baf397f3dd1d3e4af7e3f5a0382b868d25ac068eefe1ebde05132333436c/protobuf-5.28.3-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:a3f6857551e53ce35e60b403b8a27b0295f7d6eb63d10484f12bc6879c715687", size = 414743 },
|
| 560 |
-
{ url = "https://files.pythonhosted.org/packages/85/50/cd61a358ba1601f40e7d38bcfba22e053f40ef2c50d55b55926aecc8fec7/protobuf-5.28.3-cp38-abi3-manylinux2014_aarch64.whl", hash = "sha256:3fa2de6b8b29d12c61911505d893afe7320ce7ccba4df913e2971461fa36d584", size = 316511 },
|
| 561 |
-
{ url = "https://files.pythonhosted.org/packages/5d/ae/3257b09328c0b4e59535e497b0c7537d4954038bdd53a2f0d2f49d15a7c4/protobuf-5.28.3-cp38-abi3-manylinux2014_x86_64.whl", hash = "sha256:712319fbdddb46f21abb66cd33cb9e491a5763b2febd8f228251add221981135", size = 316624 },
|
| 562 |
-
{ url = "https://files.pythonhosted.org/packages/ad/c3/2377c159e28ea89a91cf1ca223f827ae8deccb2c9c401e5ca233cd73002f/protobuf-5.28.3-py3-none-any.whl", hash = "sha256:cee1757663fa32a1ee673434fcf3bf24dd54763c79690201208bafec62f19eed", size = 169511 },
|
| 563 |
-
]
|
| 564 |
-
|
| 565 |
[[package]]
|
| 566 |
name = "psutil"
|
| 567 |
version = "6.1.0"
|
|
@@ -801,38 +751,6 @@ wheels = [
|
|
| 801 |
{ url = "https://files.pythonhosted.org/packages/19/46/5d11dc300feaad285c2f1bd784ff3f689f5e0ab6be49aaf568f3a77019eb/safetensors-0.4.5-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:21742b391b859e67b26c0b2ac37f52c9c0944a879a25ad2f9f9f3cd61e7fda8f", size = 606660 },
|
| 802 |
]
|
| 803 |
|
| 804 |
-
[[package]]
|
| 805 |
-
name = "sentencepiece"
|
| 806 |
-
version = "0.2.0"
|
| 807 |
-
source = { registry = "https://pypi.org/simple" }
|
| 808 |
-
sdist = { url = "https://files.pythonhosted.org/packages/c9/d2/b9c7ca067c26d8ff085d252c89b5f69609ca93fb85a00ede95f4857865d4/sentencepiece-0.2.0.tar.gz", hash = "sha256:a52c19171daaf2e697dc6cbe67684e0fa341b1248966f6aebb541de654d15843", size = 2632106 }
|
| 809 |
-
wheels = [
|
| 810 |
-
{ url = "https://files.pythonhosted.org/packages/f6/71/98648c3b64b23edb5403f74bcc906ad21766872a6e1ada26ea3f1eb941ab/sentencepiece-0.2.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:188779e1298a1c8b8253c7d3ad729cb0a9891e5cef5e5d07ce4592c54869e227", size = 2408979 },
|
| 811 |
-
{ url = "https://files.pythonhosted.org/packages/77/9f/7efbaa6d4c0c718a9affbecc536b03ca62f99f421bdffb531c16030e2d2b/sentencepiece-0.2.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:bed9cf85b296fa2b76fc2547b9cbb691a523864cebaee86304c43a7b4cb1b452", size = 1238845 },
|
| 812 |
-
{ url = "https://files.pythonhosted.org/packages/1c/e4/c2541027a43ec6962ba9b601805d17ba3f86b38bdeae0e8ac65a2981e248/sentencepiece-0.2.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:d7b67e724bead13f18db6e1d10b6bbdc454af574d70efbb36f27d90387be1ca3", size = 1181472 },
|
| 813 |
-
{ url = "https://files.pythonhosted.org/packages/fd/46/316c1ba6c52b97de76aff7b9da678f7afbb52136afb2987c474d95630e65/sentencepiece-0.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2fde4b08cfe237be4484c6c7c2e2c75fb862cfeab6bd5449ce4caeafd97b767a", size = 1259151 },
|
| 814 |
-
{ url = "https://files.pythonhosted.org/packages/aa/5a/3c48738a0835d76dd06c62b6ac48d39c923cde78dd0f587353bdcbb99851/sentencepiece-0.2.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4c378492056202d1c48a4979650981635fd97875a00eabb1f00c6a236b013b5e", size = 1355931 },
|
| 815 |
-
{ url = "https://files.pythonhosted.org/packages/a6/27/33019685023221ca8ed98e8ceb7ae5e166032686fa3662c68f1f1edf334e/sentencepiece-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1380ce6540a368de2ef6d7e6ba14ba8f3258df650d39ba7d833b79ee68a52040", size = 1301537 },
|
| 816 |
-
{ url = "https://files.pythonhosted.org/packages/ca/e4/55f97cef14293171fef5f96e96999919ab5b4d1ce95b53547ad653d7e3bf/sentencepiece-0.2.0-cp310-cp310-win32.whl", hash = "sha256:a1151d6a6dd4b43e552394aed0edfe9292820272f0194bd56c7c1660a0c06c3d", size = 936747 },
|
| 817 |
-
{ url = "https://files.pythonhosted.org/packages/85/f4/4ef1a6e0e9dbd8a60780a91df8b7452ada14cfaa0e17b3b8dfa42cecae18/sentencepiece-0.2.0-cp310-cp310-win_amd64.whl", hash = "sha256:d490142b0521ef22bc1085f061d922a2a6666175bb6b42e588ff95c0db6819b2", size = 991525 },
|
| 818 |
-
{ url = "https://files.pythonhosted.org/packages/32/43/8f8885168a47a02eba1455bd3f4f169f50ad5b8cebd2402d0f5e20854d04/sentencepiece-0.2.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:17982700c4f6dbb55fa3594f3d7e5dd1c8659a274af3738e33c987d2a27c9d5c", size = 2409036 },
|
| 819 |
-
{ url = "https://files.pythonhosted.org/packages/0f/35/e63ba28062af0a3d688a9f128e407a1a2608544b2f480cb49bf7f4b1cbb9/sentencepiece-0.2.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:7c867012c0e8bcd5bdad0f791609101cb5c66acb303ab3270218d6debc68a65e", size = 1238921 },
|
| 820 |
-
{ url = "https://files.pythonhosted.org/packages/de/42/ae30952c4a0bd773e90c9bf2579f5533037c886dfc8ec68133d5694f4dd2/sentencepiece-0.2.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:7fd6071249c74f779c5b27183295b9202f8dedb68034e716784364443879eaa6", size = 1181477 },
|
| 821 |
-
{ url = "https://files.pythonhosted.org/packages/e3/ac/2f2ab1d60bb2d795d054eebe5e3f24b164bc21b5a9b75fba7968b3b91b5a/sentencepiece-0.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:27f90c55a65013cbb8f4d7aab0599bf925cde4adc67ae43a0d323677b5a1c6cb", size = 1259182 },
|
| 822 |
-
{ url = "https://files.pythonhosted.org/packages/45/fb/14633c6ecf262c468759ffcdb55c3a7ee38fe4eda6a70d75ee7c7d63c58b/sentencepiece-0.2.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b293734059ef656dcd65be62ff771507bea8fed0a711b6733976e1ed3add4553", size = 1355537 },
|
| 823 |
-
{ url = "https://files.pythonhosted.org/packages/fb/12/2f5c8d4764b00033cf1c935b702d3bb878d10be9f0b87f0253495832d85f/sentencepiece-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e58b47f933aca74c6a60a79dcb21d5b9e47416256c795c2d58d55cec27f9551d", size = 1301464 },
|
| 824 |
-
{ url = "https://files.pythonhosted.org/packages/4e/b1/67afc0bde24f6dcb3acdea0dd8dcdf4b8b0db240f6bacd39378bd32d09f8/sentencepiece-0.2.0-cp311-cp311-win32.whl", hash = "sha256:c581258cf346b327c62c4f1cebd32691826306f6a41d8c4bec43b010dee08e75", size = 936749 },
|
| 825 |
-
{ url = "https://files.pythonhosted.org/packages/a2/f6/587c62fd21fc988555b85351f50bbde43a51524caafd63bc69240ded14fd/sentencepiece-0.2.0-cp311-cp311-win_amd64.whl", hash = "sha256:0993dbc665f4113017892f1b87c3904a44d0640eda510abcacdfb07f74286d36", size = 991520 },
|
| 826 |
-
{ url = "https://files.pythonhosted.org/packages/27/5a/141b227ed54293360a9ffbb7bf8252b4e5efc0400cdeac5809340e5d2b21/sentencepiece-0.2.0-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:ea5f536e32ea8ec96086ee00d7a4a131ce583a1b18d130711707c10e69601cb2", size = 2409370 },
|
| 827 |
-
{ url = "https://files.pythonhosted.org/packages/2e/08/a4c135ad6fc2ce26798d14ab72790d66e813efc9589fd30a5316a88ca8d5/sentencepiece-0.2.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:d0cb51f53b6aae3c36bafe41e86167c71af8370a039f542c43b0cce5ef24a68c", size = 1239288 },
|
| 828 |
-
{ url = "https://files.pythonhosted.org/packages/49/0a/2fe387f825ac5aad5a0bfe221904882106cac58e1b693ba7818785a882b6/sentencepiece-0.2.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:3212121805afc58d8b00ab4e7dd1f8f76c203ddb9dc94aa4079618a31cf5da0f", size = 1181597 },
|
| 829 |
-
{ url = "https://files.pythonhosted.org/packages/cc/38/e4698ee2293fe4835dc033c49796a39b3eebd8752098f6bd0aa53a14af1f/sentencepiece-0.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2a3149e3066c2a75e0d68a43eb632d7ae728c7925b517f4c05c40f6f7280ce08", size = 1259220 },
|
| 830 |
-
{ url = "https://files.pythonhosted.org/packages/12/24/fd7ef967c9dad2f6e6e5386d0cadaf65cda8b7be6e3861a9ab3121035139/sentencepiece-0.2.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:632f3594d3e7ac8b367bca204cb3fd05a01d5b21455acd097ea4c0e30e2f63d7", size = 1355962 },
|
| 831 |
-
{ url = "https://files.pythonhosted.org/packages/4f/d2/18246f43ca730bb81918f87b7e886531eda32d835811ad9f4657c54eee35/sentencepiece-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f295105c6bdbb05bd5e1b0cafbd78ff95036f5d3641e7949455a3f4e5e7c3109", size = 1301706 },
|
| 832 |
-
{ url = "https://files.pythonhosted.org/packages/8a/47/ca237b562f420044ab56ddb4c278672f7e8c866e183730a20e413b38a989/sentencepiece-0.2.0-cp312-cp312-win32.whl", hash = "sha256:fb89f811e5efd18bab141afc3fea3de141c3f69f3fe9e898f710ae7fe3aab251", size = 936941 },
|
| 833 |
-
{ url = "https://files.pythonhosted.org/packages/c6/97/d159c32642306ee2b70732077632895438867b3b6df282354bd550cf2a67/sentencepiece-0.2.0-cp312-cp312-win_amd64.whl", hash = "sha256:7a673a72aab81fef5ebe755c6e0cc60087d1f3a4700835d40537183c1703a45f", size = 991994 },
|
| 834 |
-
]
|
| 835 |
-
|
| 836 |
[[package]]
|
| 837 |
name = "setuptools"
|
| 838 |
version = "75.3.0"
|
|
@@ -842,15 +760,6 @@ wheels = [
|
|
| 842 |
{ url = "https://files.pythonhosted.org/packages/90/12/282ee9bce8b58130cb762fbc9beabd531549952cac11fc56add11dcb7ea0/setuptools-75.3.0-py3-none-any.whl", hash = "sha256:f2504966861356aa38616760c0f66568e535562374995367b4e69c7143cf6bcd", size = 1251070 },
|
| 843 |
]
|
| 844 |
|
| 845 |
-
[[package]]
|
| 846 |
-
name = "smmap"
|
| 847 |
-
version = "5.0.1"
|
| 848 |
-
source = { registry = "https://pypi.org/simple" }
|
| 849 |
-
sdist = { url = "https://files.pythonhosted.org/packages/88/04/b5bf6d21dc4041000ccba7eb17dd3055feb237e7ffc2c20d3fae3af62baa/smmap-5.0.1.tar.gz", hash = "sha256:dceeb6c0028fdb6734471eb07c0cd2aae706ccaecab45965ee83f11c8d3b1f62", size = 22291 }
|
| 850 |
-
wheels = [
|
| 851 |
-
{ url = "https://files.pythonhosted.org/packages/a7/a5/10f97f73544edcdef54409f1d839f6049a0d79df68adbc1ceb24d1aaca42/smmap-5.0.1-py3-none-any.whl", hash = "sha256:e6d8668fa5f93e706934a62d7b4db19c8d9eb8cf2adbb75ef1b675aa332b69da", size = 24282 },
|
| 852 |
-
]
|
| 853 |
-
|
| 854 |
[[package]]
|
| 855 |
name = "sympy"
|
| 856 |
version = "1.13.1"
|
|
@@ -958,19 +867,6 @@ wheels = [
|
|
| 958 |
{ url = "https://files.pythonhosted.org/packages/57/6c/bf52ff061da33deb9f94f4121fde7ff3058812cb7d2036c97bc167793bd1/torch-2.5.1-cp312-none-macosx_11_0_arm64.whl", hash = "sha256:8c712df61101964eb11910a846514011f0b6f5920c55dbf567bff8a34163d5b1", size = 63858109 },
|
| 959 |
]
|
| 960 |
|
| 961 |
-
[[package]]
|
| 962 |
-
name = "torchao"
|
| 963 |
-
version = "0.6.1"
|
| 964 |
-
source = { registry = "https://pypi.org/simple" }
|
| 965 |
-
wheels = [
|
| 966 |
-
{ url = "https://files.pythonhosted.org/packages/9a/b9/d98bc56b8f428dab47099edcb0efe2c97ade265ddf7ce3b22192c9f0cf3b/torchao-0.6.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:51823f7c993e53fbf36a0e365cfd8ab2493a1d419783b663ef0954d763cea4a3", size = 813752 },
|
| 967 |
-
{ url = "https://files.pythonhosted.org/packages/4a/da/1b38da2c13dd33fa32656e39f4d2bbd1d34585964c6b2da54771cd1b670c/torchao-0.6.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:188fb6fb63595fe90f7b96aff93536e8e0bd131c8cfa39258da790d52affd805", size = 2225408 },
|
| 968 |
-
{ url = "https://files.pythonhosted.org/packages/5d/80/dfbd92550528b39c33920ec4126d6d91676295970e9512562a9949539de6/torchao-0.6.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:ec420a0853314044f1895b0f513c37001ea2f685f5db5b4b375a4aa56342bd7e", size = 815065 },
|
| 969 |
-
{ url = "https://files.pythonhosted.org/packages/90/c2/19661fed3ea15e6a886b7175fdfc517e0b1be69122ca3337b8ac588358c4/torchao-0.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ffe91fa7e4a5a9dda226f25d54519f28c0b56344801a01df8859cbc91821650f", size = 2226353 },
|
| 970 |
-
{ url = "https://files.pythonhosted.org/packages/70/11/94a04984f727e834ccd09d80153f749effc37c8e6ecfa17bbdf62a46c4c8/torchao-0.6.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:11382b798686eae4260278187ea882ba03a977376a4eee16fca3e73a0f7654ba", size = 813933 },
|
| 971 |
-
{ url = "https://files.pythonhosted.org/packages/ec/b1/32ed4c6c1a82ea734f7b46d940a2cd9af9f7425ca0cafdcfaf69108655ab/torchao-0.6.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c9522762a7da4cd1fc92b3fcc4c1283b0443c287829077ee7854bbeca00f38b8", size = 2226506 },
|
| 972 |
-
]
|
| 973 |
-
|
| 974 |
[[package]]
|
| 975 |
name = "tqdm"
|
| 976 |
version = "4.66.6"
|
|
|
|
| 1 |
version = 1
|
| 2 |
requires-python = ">=3.10, <3.13"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
[[package]]
|
| 5 |
name = "accelerate"
|
|
|
|
| 125 |
]
|
| 126 |
|
| 127 |
[[package]]
|
| 128 |
+
name = "edge-maxxing-4090-newdream"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
version = "7"
|
| 130 |
source = { editable = "." }
|
| 131 |
dependencies = [
|
| 132 |
{ name = "accelerate" },
|
| 133 |
{ name = "diffusers" },
|
| 134 |
{ name = "edge-maxxing-pipelines" },
|
|
|
|
| 135 |
{ name = "omegaconf" },
|
|
|
|
|
|
|
| 136 |
{ name = "torch" },
|
|
|
|
| 137 |
{ name = "transformers" },
|
| 138 |
]
|
| 139 |
|
|
|
|
| 141 |
requires-dist = [
|
| 142 |
{ name = "accelerate", specifier = "==1.1.0" },
|
| 143 |
{ name = "diffusers", specifier = "==0.31.0" },
|
| 144 |
+
{ name = "edge-maxxing-pipelines", git = "https://github.com/womboai/edge-maxxing?subdirectory=pipelines&rev=858efca07043e8874d956eaacbead5adb1e71336#858efca07043e8874d956eaacbead5adb1e71336" },
|
|
|
|
| 145 |
{ name = "omegaconf", specifier = "==2.3.0" },
|
|
|
|
|
|
|
| 146 |
{ name = "torch", specifier = "==2.5.1" },
|
|
|
|
| 147 |
{ name = "transformers", specifier = "==4.46.2" },
|
| 148 |
]
|
| 149 |
|
| 150 |
[[package]]
|
| 151 |
+
name = "edge-maxxing-pipelines"
|
| 152 |
+
version = "1.0.0"
|
| 153 |
+
source = { git = "https://github.com/womboai/edge-maxxing?subdirectory=pipelines&rev=858efca07043e8874d956eaacbead5adb1e71336#858efca07043e8874d956eaacbead5adb1e71336" }
|
| 154 |
+
dependencies = [
|
| 155 |
+
{ name = "pydantic" },
|
|
|
|
| 156 |
]
|
| 157 |
|
| 158 |
[[package]]
|
| 159 |
+
name = "filelock"
|
| 160 |
+
version = "3.16.1"
|
| 161 |
source = { registry = "https://pypi.org/simple" }
|
| 162 |
+
sdist = { url = "https://files.pythonhosted.org/packages/9d/db/3ef5bb276dae18d6ec2124224403d1d67bccdbefc17af4cc8f553e341ab1/filelock-3.16.1.tar.gz", hash = "sha256:c249fbfcd5db47e5e2d6d62198e565475ee65e4831e2561c8e313fa7eb961435", size = 18037 }
|
|
|
|
|
|
|
|
|
|
| 163 |
wheels = [
|
| 164 |
+
{ url = "https://files.pythonhosted.org/packages/b9/f8/feced7779d755758a52d1f6635d990b8d98dc0a29fa568bbe0625f18fdf3/filelock-3.16.1-py3-none-any.whl", hash = "sha256:2082e5703d51fbf98ea75855d9d5527e33d8ff23099bec374a134febee6946b0", size = 16163 },
|
| 165 |
]
|
| 166 |
|
| 167 |
[[package]]
|
| 168 |
+
name = "fsspec"
|
| 169 |
+
version = "2024.10.0"
|
| 170 |
source = { registry = "https://pypi.org/simple" }
|
| 171 |
+
sdist = { url = "https://files.pythonhosted.org/packages/a0/52/f16a068ebadae42526484c31f4398e62962504e5724a8ba5dc3409483df2/fsspec-2024.10.0.tar.gz", hash = "sha256:eda2d8a4116d4f2429db8550f2457da57279247dd930bb12f821b58391359493", size = 286853 }
|
|
|
|
|
|
|
|
|
|
| 172 |
wheels = [
|
| 173 |
+
{ url = "https://files.pythonhosted.org/packages/c6/b2/454d6e7f0158951d8a78c2e1eb4f69ae81beb8dca5fee9809c6c99e9d0d0/fsspec-2024.10.0-py3-none-any.whl", hash = "sha256:03b9a6785766a4de40368b88906366755e2819e758b83705c88cd7cb5fe81871", size = 179641 },
|
| 174 |
]
|
| 175 |
|
| 176 |
[[package]]
|
|
|
|
| 512 |
{ url = "https://files.pythonhosted.org/packages/ec/3d/c32a51d848401bd94cabb8767a39621496491ee7cd5199856b77da9b18ad/pillow-11.0.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:224aaa38177597bb179f3ec87eeefcce8e4f85e608025e9cfac60de237ba6316", size = 2567508 },
|
| 513 |
]
|
| 514 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 515 |
[[package]]
|
| 516 |
name = "psutil"
|
| 517 |
version = "6.1.0"
|
|
|
|
| 751 |
{ url = "https://files.pythonhosted.org/packages/19/46/5d11dc300feaad285c2f1bd784ff3f689f5e0ab6be49aaf568f3a77019eb/safetensors-0.4.5-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:21742b391b859e67b26c0b2ac37f52c9c0944a879a25ad2f9f9f3cd61e7fda8f", size = 606660 },
|
| 752 |
]
|
| 753 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 754 |
[[package]]
|
| 755 |
name = "setuptools"
|
| 756 |
version = "75.3.0"
|
|
|
|
| 760 |
{ url = "https://files.pythonhosted.org/packages/90/12/282ee9bce8b58130cb762fbc9beabd531549952cac11fc56add11dcb7ea0/setuptools-75.3.0-py3-none-any.whl", hash = "sha256:f2504966861356aa38616760c0f66568e535562374995367b4e69c7143cf6bcd", size = 1251070 },
|
| 761 |
]
|
| 762 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 763 |
[[package]]
|
| 764 |
name = "sympy"
|
| 765 |
version = "1.13.1"
|
|
|
|
| 867 |
{ url = "https://files.pythonhosted.org/packages/57/6c/bf52ff061da33deb9f94f4121fde7ff3058812cb7d2036c97bc167793bd1/torch-2.5.1-cp312-none-macosx_11_0_arm64.whl", hash = "sha256:8c712df61101964eb11910a846514011f0b6f5920c55dbf567bff8a34163d5b1", size = 63858109 },
|
| 868 |
]
|
| 869 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 870 |
[[package]]
|
| 871 |
name = "tqdm"
|
| 872 |
version = "4.66.6"
|