File size: 1,085 Bytes
2706625
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[project]
name = "flux"
version = "0.1.0"
description = "Inference codebase for FLUX.2"
readme = "README.md"
requires-python = ">=3.10,<3.13"
authors = [
  { name = "Black Forest Labs", email = "support@blackforestlabs.ai" }
]
license = { file = "LICENSE.md" }

dependencies = [
  "torch==2.8.0",
  "torchvision==0.23.0",
  "einops==0.8.1",
  "transformers==4.57.3",
  "safetensors==0.4.5",
  "fire==0.7.1",
  "openai==2.8.1",
  "bitsandbytes>=0.48.2",
  "jupyter>=1.1.1",
  "diffusers>=0.35.2",
  "accelerate>=1.12.0",
  "matplotlib>=3.10.7",
  "gradio>=6.2.0",
  "googletrans>=4.0.2",
]

[project.optional-dependencies]
dev = [
  "ruff==0.6.8",
]

[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"

[tool.ruff]
line-length = 110
target-version = "py312"

[tool.ruff.lint]
ignore = [
  "E501",  # line too long (handled by formatter)
]

[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
docstring-code-format = true

[tool.uv.sources]
diffusers = { git = "https://github.com/huggingface/diffusers.git" }