|
| 1 | +# Diffusion runtime trust anchor. |
| 2 | +# |
| 3 | +# This manifest defines the per-backend wheel sets needed by the diffusion |
| 4 | +# runtime installer (secai-enable-diffusion.sh). It is the sole trust anchor |
| 5 | +# for the on-demand acquisition flow. |
| 6 | +# |
| 7 | +# Two-file trust model per backend: |
| 8 | +# 1. Lockfile (diffusion-<backend>.lock) -- pip-compile --generate-hashes |
| 9 | +# Used at install time: pip install --no-index --require-hashes |
| 10 | +# 2. Wheel manifest (the "wheels" list below) |
| 11 | +# Used at download time: exact filename + SHA256 before promotion. |
| 12 | +# |
| 13 | +# To refresh after a dependency change: |
| 14 | +# scripts/refresh-diffusion-locks.sh (regenerates lockfiles + manifest) |
| 15 | + |
| 16 | +schema_version: 1 |
| 17 | +description: "Diffusion runtime trust anchor — per-backend wheel manifests and lockfiles" |
| 18 | +python_version: "3.12" |
| 19 | +supported_architectures: |
| 20 | + - x86_64 |
| 21 | + |
| 22 | +# --------------------------------------------------------------------------- |
| 23 | +# Allowed download sources (checked against both initial and final URLs) |
| 24 | +# --------------------------------------------------------------------------- |
| 25 | +allowed_sources: |
| 26 | + - "https://download.pytorch.org/whl/*" |
| 27 | + - "https://files.pythonhosted.org/packages/*" |
| 28 | + |
| 29 | +format_policy: wheel_only # reject sdists / tarballs / eggs |
| 30 | + |
| 31 | +# --------------------------------------------------------------------------- |
| 32 | +# Backend definitions |
| 33 | +# --------------------------------------------------------------------------- |
| 34 | +backends: |
| 35 | + cpu: |
| 36 | + lockfile: diffusion-cpu.lock |
| 37 | + torch_index: https://download.pytorch.org/whl/cpu |
| 38 | + estimated_size_mb: 2000 |
| 39 | + wheels: |
| 40 | + # -- PyTorch core (CPU) -- |
| 41 | + - filename: "torch-2.3.1+cpu-cp312-cp312-linux_x86_64.whl" |
| 42 | + sha256: "PLACEHOLDER_HASH_torch_cpu" |
| 43 | + source: "https://download.pytorch.org/whl/cpu/*" |
| 44 | + # -- Diffusers ecosystem -- |
| 45 | + - filename: "diffusers-0.28.0-py3-none-any.whl" |
| 46 | + sha256: "PLACEHOLDER_HASH_diffusers" |
| 47 | + source: "https://files.pythonhosted.org/packages/*" |
| 48 | + - filename: "transformers-4.41.2-py3-none-any.whl" |
| 49 | + sha256: "PLACEHOLDER_HASH_transformers" |
| 50 | + source: "https://files.pythonhosted.org/packages/*" |
| 51 | + - filename: "safetensors-0.4.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" |
| 52 | + sha256: "PLACEHOLDER_HASH_safetensors" |
| 53 | + source: "https://files.pythonhosted.org/packages/*" |
| 54 | + - filename: "accelerate-1.13.0-py3-none-any.whl" |
| 55 | + sha256: "PLACEHOLDER_HASH_accelerate" |
| 56 | + source: "https://files.pythonhosted.org/packages/*" |
| 57 | + # NOTE: Placeholder entries. Run scripts/refresh-diffusion-locks.sh to |
| 58 | + # generate the complete wheel list with real SHA256 hashes. |
| 59 | + |
| 60 | + cuda: |
| 61 | + lockfile: diffusion-cuda.lock |
| 62 | + torch_index: https://download.pytorch.org/whl/cu121 |
| 63 | + estimated_size_mb: 4500 |
| 64 | + wheels: |
| 65 | + # -- PyTorch core (CUDA 12.1) -- |
| 66 | + - filename: "torch-2.3.1+cu121-cp312-cp312-linux_x86_64.whl" |
| 67 | + sha256: "PLACEHOLDER_HASH_torch_cuda" |
| 68 | + source: "https://download.pytorch.org/whl/cu121/*" |
| 69 | + # -- Diffusers ecosystem (same pure-Python wheels as CPU) -- |
| 70 | + - filename: "diffusers-0.28.0-py3-none-any.whl" |
| 71 | + sha256: "PLACEHOLDER_HASH_diffusers" |
| 72 | + source: "https://files.pythonhosted.org/packages/*" |
| 73 | + - filename: "transformers-4.41.2-py3-none-any.whl" |
| 74 | + sha256: "PLACEHOLDER_HASH_transformers" |
| 75 | + source: "https://files.pythonhosted.org/packages/*" |
| 76 | + - filename: "safetensors-0.4.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" |
| 77 | + sha256: "PLACEHOLDER_HASH_safetensors" |
| 78 | + source: "https://files.pythonhosted.org/packages/*" |
| 79 | + - filename: "accelerate-1.13.0-py3-none-any.whl" |
| 80 | + sha256: "PLACEHOLDER_HASH_accelerate" |
| 81 | + source: "https://files.pythonhosted.org/packages/*" |
| 82 | + # NOTE: Placeholder entries. Run scripts/refresh-diffusion-locks.sh to |
| 83 | + # generate the complete wheel list with real SHA256 hashes. |
| 84 | + |
| 85 | + rocm: |
| 86 | + lockfile: diffusion-rocm.lock |
| 87 | + torch_index: https://download.pytorch.org/whl/rocm6.0 |
| 88 | + estimated_size_mb: 4000 |
| 89 | + wheels: |
| 90 | + # -- PyTorch core (ROCm 6.0) -- |
| 91 | + - filename: "torch-2.3.1+rocm6.0-cp312-cp312-linux_x86_64.whl" |
| 92 | + sha256: "PLACEHOLDER_HASH_torch_rocm" |
| 93 | + source: "https://download.pytorch.org/whl/rocm6.0/*" |
| 94 | + # -- Diffusers ecosystem (same pure-Python wheels as CPU) -- |
| 95 | + - filename: "diffusers-0.28.0-py3-none-any.whl" |
| 96 | + sha256: "PLACEHOLDER_HASH_diffusers" |
| 97 | + source: "https://files.pythonhosted.org/packages/*" |
| 98 | + - filename: "transformers-4.41.2-py3-none-any.whl" |
| 99 | + sha256: "PLACEHOLDER_HASH_transformers" |
| 100 | + source: "https://files.pythonhosted.org/packages/*" |
| 101 | + - filename: "safetensors-0.4.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" |
| 102 | + sha256: "PLACEHOLDER_HASH_safetensors" |
| 103 | + source: "https://files.pythonhosted.org/packages/*" |
| 104 | + - filename: "accelerate-1.13.0-py3-none-any.whl" |
| 105 | + sha256: "PLACEHOLDER_HASH_accelerate" |
| 106 | + source: "https://files.pythonhosted.org/packages/*" |
| 107 | + # NOTE: Placeholder entries. Run scripts/refresh-diffusion-locks.sh to |
| 108 | + # generate the complete wheel list with real SHA256 hashes. |
0 commit comments