Release Kelix-AEDIT DiT weights and inference demo
Browse files- .gitattributes +1 -0
- README.md +117 -0
- config.json +42 -0
- example.png +3 -0
- infer.py +199 -0
- model-00000-of-00003.safetensors +3 -0
- model-00001-of-00003.safetensors +3 -0
- model-00002-of-00003.safetensors +3 -0
- model.safetensors.index.json +485 -0
- requirements.txt +14 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
example.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
tags:
|
| 5 |
+
- kelix
|
| 6 |
+
- image-reconstruction
|
| 7 |
+
- image-tokenizer
|
| 8 |
+
- diffusion
|
| 9 |
+
- flow-matching
|
| 10 |
+
- safetensors
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Kelix-AEDIT
|
| 14 |
+
|
| 15 |
+
[Paper](https://arxiv.org/abs/2602.09843) | [GitHub](https://github.com/Kuaishou-OneRec/Kelix) | [Kelix-DiT](https://huggingface.co/OpenOneRec/Kelix-DiT)
|
| 16 |
+
|
| 17 |
+
## Introduction
|
| 18 |
+
|
| 19 |
+
Kelix-AEDIT reconstructs images from discrete visual tokens using a customized SANA diffusion transformer. This repository releases the DiT weights, an inference script, and its dependencies.
|
| 20 |
+
|
| 21 |
+
The inference pipeline reuses the image tokenizer from [Kelix-SFT](https://huggingface.co/OpenOneRec/Kelix-SFT) and the [DC-AE VAE from SANA1.5](https://huggingface.co/Efficient-Large-Model/SANA1.5_1.6B_1024px_diffusers/tree/main/vae). These components are loaded separately and are not duplicated in this repository.
|
| 22 |
+
|
| 23 |
+
Unlike Kelix-DiT, which takes Kelix-LLM hidden states as its condition, Kelix-AEDIT operates on quantized image features and supports image reconstruction without the LLM.
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
|
| 27 |
+
*An example reconstruction produced by Kelix-AEDIT.*
|
| 28 |
+
|
| 29 |
+
## Model Overview
|
| 30 |
+
|
| 31 |
+
| Item | Value |
|
| 32 |
+
|---|---|
|
| 33 |
+
| Released weights | Customized SANA-DiT |
|
| 34 |
+
| Image tokenizer | Reused from Kelix-SFT |
|
| 35 |
+
| Latent VAE | DC-AE from SANA1.5 |
|
| 36 |
+
| Condition | Quantized image features with mean fusion |
|
| 37 |
+
| Codebooks | 8 × 8,192 entries |
|
| 38 |
+
| Default condition grid | 18 × 18 |
|
| 39 |
+
| Default output resolution | 512 × 512 |
|
| 40 |
+
| Sampling | 20-step Euler |
|
| 41 |
+
| Guidance scale | 4.5 |
|
| 42 |
+
| Flow shift | 3.0 |
|
| 43 |
+
| Inference precision | BF16 |
|
| 44 |
+
|
| 45 |
+
## Usage
|
| 46 |
+
|
| 47 |
+
Requires an NVIDIA CUDA GPU and a FlashAttention build compatible with your PyTorch and CUDA environment. The inference script uses the model implementations in the Kelix code repository.
|
| 48 |
+
|
| 49 |
+
### Installation
|
| 50 |
+
|
| 51 |
+
```bash
|
| 52 |
+
git clone https://github.com/Kuaishou-OneRec/Kelix.git
|
| 53 |
+
cd Kelix
|
| 54 |
+
pip install huggingface-hub==0.36.0
|
| 55 |
+
hf download OpenOneRec/Kelix-AEDIT --local-dir checkpoints/Kelix-AEDIT
|
| 56 |
+
pip install -r checkpoints/Kelix-AEDIT/requirements.txt
|
| 57 |
+
pip install flash-attn==2.7.4.post1 --no-build-isolation
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
### Image Reconstruction
|
| 61 |
+
|
| 62 |
+
Run from the Kelix repository root. The tokenizer and VAE are downloaded automatically on first use. Only the Kelix-SFT shards containing the visual tokenizer are needed; the LLM is not loaded.
|
| 63 |
+
|
| 64 |
+
```bash
|
| 65 |
+
PYTHONPATH=. python checkpoints/Kelix-AEDIT/infer.py \
|
| 66 |
+
--ckpt checkpoints/Kelix-AEDIT \
|
| 67 |
+
--image input.jpg \
|
| 68 |
+
--output reconstruction.png
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
To use existing local checkpoints:
|
| 72 |
+
|
| 73 |
+
```bash
|
| 74 |
+
PYTHONPATH=. python checkpoints/Kelix-AEDIT/infer.py \
|
| 75 |
+
--ckpt checkpoints/Kelix-AEDIT \
|
| 76 |
+
--tokenizer /path/to/Kelix-SFT \
|
| 77 |
+
--vae /path/to/vae \
|
| 78 |
+
--image input.jpg \
|
| 79 |
+
--output reconstruction.png
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
### Decode Image Tokens
|
| 83 |
+
|
| 84 |
+
```bash
|
| 85 |
+
PYTHONPATH=. python checkpoints/Kelix-AEDIT/infer.py \
|
| 86 |
+
--ckpt checkpoints/Kelix-AEDIT \
|
| 87 |
+
--tokens tokens.pt \
|
| 88 |
+
--grid 18 \
|
| 89 |
+
--output generated.png
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
`tokens.pt` must contain an integer tensor saved with `torch.save`:
|
| 93 |
+
|
| 94 |
+
- Shape: `[324, 8]` for an 18 × 18 grid.
|
| 95 |
+
- Values: local indices in `[0, 8192)` for each codebook.
|
| 96 |
+
- Spatial order: row-major.
|
| 97 |
+
- Dtype: `torch.int32` or `torch.int64`.
|
| 98 |
+
|
| 99 |
+
Tokens must use the matching image tokenizer and codebooks. Raw autoregressive vocabulary IDs must be converted to local codebook indices before decoding.
|
| 100 |
+
|
| 101 |
+
This model does not accept text prompts directly. Text-to-image generation requires a compatible autoregressive model to generate image tokens first.
|
| 102 |
+
|
| 103 |
+
## Citation
|
| 104 |
+
|
| 105 |
+
```bibtex
|
| 106 |
+
@article{kelix2026,
|
| 107 |
+
title = {Kelix Technique Report: Closing the Understanding Gap of Discrete Tokens in Unified Multimodal Models},
|
| 108 |
+
author = {Kuaishou Technology},
|
| 109 |
+
journal = {arXiv preprint arXiv:2602.09843},
|
| 110 |
+
year = {2026},
|
| 111 |
+
url = {https://arxiv.org/abs/2602.09843}
|
| 112 |
+
}
|
| 113 |
+
```
|
| 114 |
+
|
| 115 |
+
## License
|
| 116 |
+
|
| 117 |
+
Please contact the OneRec Team for the license of the Kelix series. The base SANA-DiT, DC-AE, and Keye vision components are subject to their respective original licenses.
|
config.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_class": "SanaModel",
|
| 3 |
+
"input_size": 32,
|
| 4 |
+
"patch_size": 1,
|
| 5 |
+
"in_channels": 32,
|
| 6 |
+
"hidden_size": 2240,
|
| 7 |
+
"depth": 20,
|
| 8 |
+
"num_heads": 20,
|
| 9 |
+
"mlp_ratio": 2.5,
|
| 10 |
+
"caption_channels": 1024,
|
| 11 |
+
"model_max_length": 2560,
|
| 12 |
+
"attn_type": "linear",
|
| 13 |
+
"cross_attn_type": "flash",
|
| 14 |
+
"linear_head_dim": 32,
|
| 15 |
+
"qk_norm": true,
|
| 16 |
+
"cross_norm": true,
|
| 17 |
+
"use_cross_attn_rope": true,
|
| 18 |
+
"use_position_scale": false,
|
| 19 |
+
"cross_attn_x_norm": true,
|
| 20 |
+
"ffn_type": "glumbconv",
|
| 21 |
+
"mlp_acts": [
|
| 22 |
+
"silu",
|
| 23 |
+
"silu",
|
| 24 |
+
null
|
| 25 |
+
],
|
| 26 |
+
"pred_sigma": false,
|
| 27 |
+
"learn_sigma": false,
|
| 28 |
+
"use_pe": false,
|
| 29 |
+
"pe_interpolation": 1.0,
|
| 30 |
+
"y_norm": true,
|
| 31 |
+
"y_norm_scale_factor": 1.0,
|
| 32 |
+
"norm_eps": 1e-06,
|
| 33 |
+
"class_dropout_prob": 0.1,
|
| 34 |
+
"drop_path": 0.0,
|
| 35 |
+
"vae_type": "AutoencoderDC",
|
| 36 |
+
"vae_pretrained": "mit-han-lab/dc-ae-f32c32-sana-1.1-diffusers",
|
| 37 |
+
"vae_downsample_rate": 32,
|
| 38 |
+
"text_encoder_name": "google/gemma-2-2b-it",
|
| 39 |
+
"y_embedding_init_method": "randn",
|
| 40 |
+
"use_connector": false,
|
| 41 |
+
"__class__": "SanaConfig"
|
| 42 |
+
}
|
example.png
ADDED
|
Git LFS Details
|
infer.py
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Single-GPU Kelix-AEDIT inference: an image or local VQ indices -> PNG."""
|
| 2 |
+
import argparse
|
| 3 |
+
import json
|
| 4 |
+
import sys
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
|
| 7 |
+
ROOT = Path(__file__).resolve().parent
|
| 8 |
+
# Support running the demo or a downloaded HF script inside a Kelix checkout.
|
| 9 |
+
for parent in (ROOT, *ROOT.parents):
|
| 10 |
+
if (parent / 'muse' / '__init__.py').is_file():
|
| 11 |
+
sys.path.insert(0, str(parent))
|
| 12 |
+
break
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
def parse_args():
|
| 16 |
+
p = argparse.ArgumentParser(description=__doc__)
|
| 17 |
+
p.add_argument('--ckpt', default=str(ROOT) if (ROOT / 'config.json').is_file() else 'OpenOneRec/Kelix-AEDIT', help='Local DiT directory or HF repo ID')
|
| 18 |
+
p.add_argument('--tokenizer', default='OpenOneRec/Kelix-SFT', help='Kelix-SFT repo/directory or a standalone image tokenizer directory')
|
| 19 |
+
p.add_argument('--vae', default='Efficient-Large-Model/SANA1.5_1.6B_1024px_diffusers/vae', help='Local DC-AE directory or HF repo/subfolder')
|
| 20 |
+
inputs = p.add_mutually_exclusive_group(required=True)
|
| 21 |
+
inputs.add_argument('--image', help='Image to encode and reconstruct')
|
| 22 |
+
inputs.add_argument('--tokens', help='Safely loaded .pt LongTensor [H*W,8], local codebook indices')
|
| 23 |
+
p.add_argument('--grid', type=int, default=18, help='Condition grid width/height; 18 means 324 tokens')
|
| 24 |
+
p.add_argument('--output', default='output.png')
|
| 25 |
+
p.add_argument('--image-size', type=int, default=512)
|
| 26 |
+
p.add_argument('--steps', type=int, default=20)
|
| 27 |
+
p.add_argument('--cfg', type=float, default=4.5)
|
| 28 |
+
p.add_argument('--flow-shift', type=float, default=3.0)
|
| 29 |
+
p.add_argument('--seed', type=int, default=42)
|
| 30 |
+
p.add_argument('--device', default='cuda:0')
|
| 31 |
+
p.add_argument('--dtype', choices=['bfloat16', 'float16', 'float32'], default='bfloat16')
|
| 32 |
+
return p.parse_args()
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def positions(h, w, device):
|
| 36 |
+
import torch
|
| 37 |
+
ids = torch.arange(h * w, device=device)
|
| 38 |
+
return {'height': ids // w, 'width': ids % w}
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
def resolve_directory(source, allow_patterns=None):
|
| 42 |
+
path = Path(source)
|
| 43 |
+
if path.is_dir():
|
| 44 |
+
return path
|
| 45 |
+
from huggingface_hub import snapshot_download
|
| 46 |
+
parts = str(source).split('/')
|
| 47 |
+
repo_id = '/'.join(parts[:2])
|
| 48 |
+
subfolder = '/'.join(parts[2:])
|
| 49 |
+
patterns = [f'{subfolder}/*'] if subfolder else allow_patterns
|
| 50 |
+
root = Path(snapshot_download(repo_id, allow_patterns=patterns))
|
| 51 |
+
return root / subfolder if subfolder else root
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
def load_image_tokenizer(source, device, dtype):
|
| 55 |
+
"""Load the visual tokenizer without instantiating or downloading the LLM."""
|
| 56 |
+
import torch
|
| 57 |
+
from accelerate import init_empty_weights
|
| 58 |
+
from safetensors import safe_open
|
| 59 |
+
from muse.config.model_config import KeyeTokenizerConfig
|
| 60 |
+
from muse.models.keye_tokenizer import KeyeImageTokenizer
|
| 61 |
+
|
| 62 |
+
folder = resolve_directory(source, ['*.json', '*.txt', '*.py', '*.jinja'])
|
| 63 |
+
config = json.loads((folder / 'config.json').read_text())
|
| 64 |
+
if 'tokenizer_config' not in config:
|
| 65 |
+
tokenizer = KeyeImageTokenizer.from_pretrained(
|
| 66 |
+
str(folder), strict=True, fusion_type='mean'
|
| 67 |
+
).to(device=device, dtype=dtype).eval()
|
| 68 |
+
return tokenizer, folder
|
| 69 |
+
|
| 70 |
+
tokenizer_config = KeyeTokenizerConfig(**config['tokenizer_config'])
|
| 71 |
+
tokenizer_config.fusion_type = 'mean'
|
| 72 |
+
with init_empty_weights():
|
| 73 |
+
tokenizer = KeyeImageTokenizer(tokenizer_config)
|
| 74 |
+
index = json.loads((folder / 'model.safetensors.index.json').read_text())
|
| 75 |
+
prefix = 'visual_tokenizer.'
|
| 76 |
+
selected = {k: v for k, v in index['weight_map'].items() if k.startswith(prefix)}
|
| 77 |
+
if not selected:
|
| 78 |
+
raise ValueError('No visual_tokenizer weights found in the checkpoint index')
|
| 79 |
+
state = {}
|
| 80 |
+
for shard in sorted(set(selected.values())):
|
| 81 |
+
path = folder / shard
|
| 82 |
+
if not path.is_file():
|
| 83 |
+
if Path(source).is_dir():
|
| 84 |
+
raise FileNotFoundError(f'Missing tokenizer shard: {shard}')
|
| 85 |
+
from huggingface_hub import hf_hub_download
|
| 86 |
+
path = Path(hf_hub_download(source, shard, revision=folder.name))
|
| 87 |
+
with safe_open(str(path), framework='pt', device='cpu') as weights:
|
| 88 |
+
for key, filename in selected.items():
|
| 89 |
+
if filename == shard:
|
| 90 |
+
state[key[len(prefix):]] = weights.get_tensor(key)
|
| 91 |
+
tokenizer.load_state_dict(state, strict=True, assign=True)
|
| 92 |
+
tokenizer = tokenizer.to(device=device, dtype=dtype).eval()
|
| 93 |
+
return tokenizer, folder
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
def main(args):
|
| 97 |
+
import torch
|
| 98 |
+
import torch.nn.functional as F
|
| 99 |
+
from PIL import Image
|
| 100 |
+
from diffusers import AutoencoderDC, FlowMatchEulerDiscreteScheduler
|
| 101 |
+
from transformers import AutoProcessor
|
| 102 |
+
from muse.models.base import Model
|
| 103 |
+
from muse.training.common import set_default_dtype
|
| 104 |
+
|
| 105 |
+
if args.grid < 1 or args.steps < 1 or args.image_size < 32 or args.image_size % 32:
|
| 106 |
+
raise ValueError('grid and steps must be positive; image-size must be a positive multiple of 32')
|
| 107 |
+
ckpt = resolve_directory(args.ckpt, ['config.json', '*.safetensors', '*.index.json'])
|
| 108 |
+
dit_dir = ckpt / 'dit' if (ckpt / 'dit').is_dir() else ckpt
|
| 109 |
+
device, dtype = torch.device(args.device), getattr(torch, args.dtype)
|
| 110 |
+
if device.type == 'cuda' and not torch.cuda.is_available():
|
| 111 |
+
raise RuntimeError('CUDA is required for the FlashAttention vision encoder')
|
| 112 |
+
torch.manual_seed(args.seed)
|
| 113 |
+
with torch.inference_mode(), set_default_dtype(dtype):
|
| 114 |
+
print('Loading DiT (strict=True)...', flush=True)
|
| 115 |
+
model = Model.from_pretrained(str(dit_dir), strict=True).to(device=device, dtype=dtype).eval()
|
| 116 |
+
print('Loading image tokenizer (strict=True)...', flush=True)
|
| 117 |
+
tokenizer, tokenizer_dir = load_image_tokenizer(args.tokenizer, device, dtype)
|
| 118 |
+
vae_dir = resolve_directory(args.vae, ['config.json', '*.safetensors'])
|
| 119 |
+
vae = AutoencoderDC.from_pretrained(str(vae_dir), torch_dtype=dtype).to(device).eval()
|
| 120 |
+
length = args.grid ** 2
|
| 121 |
+
if args.tokens:
|
| 122 |
+
indices = torch.load(args.tokens, map_location='cpu', weights_only=True)
|
| 123 |
+
if not isinstance(indices, torch.Tensor) or tuple(indices.shape) != (length, tokenizer.n_q_tokens):
|
| 124 |
+
raise ValueError(f'Expected integer tensor [{length}, {tokenizer.n_q_tokens}]')
|
| 125 |
+
if indices.dtype not in (torch.int32, torch.int64):
|
| 126 |
+
raise ValueError('Token indices must have integer dtype')
|
| 127 |
+
limit = tokenizer.config.codebook_size // tokenizer.config.split_voc
|
| 128 |
+
if indices.min() < 0 or indices.max() >= limit:
|
| 129 |
+
raise ValueError(f'Expected per-codebook indices in [0, {limit}) (not AR vocabulary IDs)')
|
| 130 |
+
cond, mask, seq_len = tokenizer.tokenize_indices(
|
| 131 |
+
indices.to(device=device, dtype=torch.long), max_pad_to=length,
|
| 132 |
+
lengths=[length], return_attention_mask=True,
|
| 133 |
+
)
|
| 134 |
+
else:
|
| 135 |
+
processor = AutoProcessor.from_pretrained(
|
| 136 |
+
str(tokenizer_dir), trust_remote_code=True, use_fast=False,
|
| 137 |
+
)
|
| 138 |
+
# Match the original inference's square resize, then use an exact grid.
|
| 139 |
+
# A merged Keye token covers 2*14 pixels; 18*28=504 for 324 tokens.
|
| 140 |
+
image = Image.open(args.image).convert('RGB').resize(
|
| 141 |
+
(args.image_size, args.image_size), Image.Resampling.LANCZOS,
|
| 142 |
+
).resize((args.grid * 28, args.grid * 28), Image.Resampling.BICUBIC)
|
| 143 |
+
inputs = processor(text=[''], images=[image], return_tensors='pt')
|
| 144 |
+
actual_grid = inputs['image_grid_thw'][0, 1:] // 2
|
| 145 |
+
if actual_grid.tolist() != [args.grid, args.grid]:
|
| 146 |
+
raise ValueError(f'Unexpected processor grid: {actual_grid.tolist()}')
|
| 147 |
+
encoded = tokenizer(
|
| 148 |
+
pixel_values=inputs['pixel_values'].to(device=device, dtype=dtype),
|
| 149 |
+
image_grid_thw=inputs['image_grid_thw'].to(device),
|
| 150 |
+
)
|
| 151 |
+
features = encoded.get('token_embeds')
|
| 152 |
+
if features is None:
|
| 153 |
+
# Older Kelix releases compute fused features without returning them.
|
| 154 |
+
features = torch.stack([
|
| 155 |
+
projector(z_q) for projector, z_q in
|
| 156 |
+
zip(tokenizer.up_projectors, encoded['z_q'])
|
| 157 |
+
], dim=1).mean(dim=1)
|
| 158 |
+
if features.shape[0] != length:
|
| 159 |
+
raise ValueError(f'Expected {length} image tokens, got {features.shape[0]}')
|
| 160 |
+
cond, seq_len = features[None], length
|
| 161 |
+
mask = torch.ones((1, 1, 1, length), device=device)
|
| 162 |
+
if cond.shape[-1] != model.config.caption_channels:
|
| 163 |
+
raise ValueError('Tokenizer condition dimension does not match the DiT config')
|
| 164 |
+
null = model.y_embedder.y_embedding[:seq_len].to(device=device, dtype=dtype)
|
| 165 |
+
valid = null.shape[0]
|
| 166 |
+
null = F.pad(null, (0, 0, 0, seq_len - valid))[None]
|
| 167 |
+
null_mask = torch.zeros_like(mask)
|
| 168 |
+
null_mask[..., :valid] = 1
|
| 169 |
+
cond_cfg = torch.cat([null, cond])
|
| 170 |
+
mask_cfg = torch.cat([null_mask, mask])
|
| 171 |
+
latent_size = args.image_size // 32
|
| 172 |
+
generator = torch.Generator(device=device).manual_seed(args.seed)
|
| 173 |
+
latents = torch.randn((1, model.config.in_channels, latent_size, latent_size),
|
| 174 |
+
device=device, dtype=dtype, generator=generator)
|
| 175 |
+
scheduler = FlowMatchEulerDiscreteScheduler(shift=args.flow_shift)
|
| 176 |
+
scheduler.set_timesteps(args.steps, device=device)
|
| 177 |
+
x_pos = positions(latent_size, latent_size, device)
|
| 178 |
+
y_pos = positions(args.grid, args.grid, device)
|
| 179 |
+
print(f'Sampling {args.steps} steps...', flush=True)
|
| 180 |
+
for t in scheduler.timesteps:
|
| 181 |
+
pred = model.forward_with_dpmsolver(
|
| 182 |
+
torch.cat([latents, latents]), t.expand(2), cond_cfg, mask=mask_cfg,
|
| 183 |
+
x_input_pos=x_pos, cond_input_pos=y_pos,
|
| 184 |
+
)
|
| 185 |
+
uncond, conditional = pred.chunk(2)
|
| 186 |
+
pred = uncond + args.cfg * (conditional - uncond)
|
| 187 |
+
latents = scheduler.step(pred, t, latents, return_dict=False)[0]
|
| 188 |
+
image = (vae.decode(latents / vae.config.scaling_factor).sample[0] / 2 + 0.5).clamp(0, 1)
|
| 189 |
+
if not torch.isfinite(image).all():
|
| 190 |
+
raise RuntimeError('Non-finite pixels encountered')
|
| 191 |
+
pixels = (image.float().permute(1, 2, 0).cpu().numpy() * 255).round().astype('uint8')
|
| 192 |
+
output = Path(args.output)
|
| 193 |
+
output.parent.mkdir(parents=True, exist_ok=True)
|
| 194 |
+
Image.fromarray(pixels).save(output)
|
| 195 |
+
print(f'Saved {output.resolve()}')
|
| 196 |
+
|
| 197 |
+
|
| 198 |
+
if __name__ == '__main__':
|
| 199 |
+
main(parse_args())
|
model-00000-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:51b2ef8ae45430b09ab05d033a05636ee74bac5ad30f92ccacff47caaf03be79
|
| 3 |
+
size 2152361104
|
model-00001-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5c7dd590b4c6de6e6cbd542707900b540a307a4411199eb2b2f14a8d699f3bc
|
| 3 |
+
size 2161948144
|
model-00002-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6febcadca7b604e5aa63435cf2a84e3dcd417bc022f9eca9d62c4b878bede5ea
|
| 3 |
+
size 2112500920
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1,485 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata": {
|
| 3 |
+
"total_size": 6426759808
|
| 4 |
+
},
|
| 5 |
+
"weight_map": {
|
| 6 |
+
"pos_embed": "model-00000-of-00003.safetensors",
|
| 7 |
+
"x_embedder.proj.weight": "model-00000-of-00003.safetensors",
|
| 8 |
+
"x_embedder.proj.bias": "model-00000-of-00003.safetensors",
|
| 9 |
+
"t_embedder.mlp.0.weight": "model-00000-of-00003.safetensors",
|
| 10 |
+
"t_embedder.mlp.0.bias": "model-00000-of-00003.safetensors",
|
| 11 |
+
"t_embedder.mlp.2.weight": "model-00000-of-00003.safetensors",
|
| 12 |
+
"t_embedder.mlp.2.bias": "model-00000-of-00003.safetensors",
|
| 13 |
+
"t_block.1.weight": "model-00000-of-00003.safetensors",
|
| 14 |
+
"t_block.1.bias": "model-00000-of-00003.safetensors",
|
| 15 |
+
"y_embedder.y_proj.fc1.weight": "model-00000-of-00003.safetensors",
|
| 16 |
+
"y_embedder.y_proj.fc1.bias": "model-00000-of-00003.safetensors",
|
| 17 |
+
"y_embedder.y_proj.fc2.weight": "model-00000-of-00003.safetensors",
|
| 18 |
+
"y_embedder.y_proj.fc2.bias": "model-00000-of-00003.safetensors",
|
| 19 |
+
"attention_y_norm.weight": "model-00000-of-00003.safetensors",
|
| 20 |
+
"blocks.0.scale_shift_table": "model-00000-of-00003.safetensors",
|
| 21 |
+
"blocks.0.attn.to_q.weight": "model-00000-of-00003.safetensors",
|
| 22 |
+
"blocks.0.attn.to_k.weight": "model-00000-of-00003.safetensors",
|
| 23 |
+
"blocks.0.attn.to_v.weight": "model-00000-of-00003.safetensors",
|
| 24 |
+
"blocks.0.attn.proj.weight": "model-00000-of-00003.safetensors",
|
| 25 |
+
"blocks.0.attn.proj.bias": "model-00000-of-00003.safetensors",
|
| 26 |
+
"blocks.0.attn.q_norm.weight": "model-00000-of-00003.safetensors",
|
| 27 |
+
"blocks.0.attn.k_norm.weight": "model-00000-of-00003.safetensors",
|
| 28 |
+
"blocks.0.cross_attn.q_linear.weight": "model-00000-of-00003.safetensors",
|
| 29 |
+
"blocks.0.cross_attn.q_linear.bias": "model-00000-of-00003.safetensors",
|
| 30 |
+
"blocks.0.cross_attn.to_k.weight": "model-00000-of-00003.safetensors",
|
| 31 |
+
"blocks.0.cross_attn.to_k.bias": "model-00000-of-00003.safetensors",
|
| 32 |
+
"blocks.0.cross_attn.to_v.weight": "model-00000-of-00003.safetensors",
|
| 33 |
+
"blocks.0.cross_attn.to_v.bias": "model-00000-of-00003.safetensors",
|
| 34 |
+
"blocks.0.cross_attn.proj.weight": "model-00000-of-00003.safetensors",
|
| 35 |
+
"blocks.0.cross_attn.proj.bias": "model-00000-of-00003.safetensors",
|
| 36 |
+
"blocks.0.cross_attn.q_norm.weight": "model-00000-of-00003.safetensors",
|
| 37 |
+
"blocks.0.cross_attn.k_norm.weight": "model-00000-of-00003.safetensors",
|
| 38 |
+
"blocks.0.mlp.inverted_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 39 |
+
"blocks.0.mlp.inverted_conv.conv.bias": "model-00000-of-00003.safetensors",
|
| 40 |
+
"blocks.0.mlp.depth_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 41 |
+
"blocks.0.mlp.depth_conv.conv.bias": "model-00000-of-00003.safetensors",
|
| 42 |
+
"blocks.0.mlp.point_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 43 |
+
"blocks.1.scale_shift_table": "model-00000-of-00003.safetensors",
|
| 44 |
+
"blocks.1.attn.to_q.weight": "model-00000-of-00003.safetensors",
|
| 45 |
+
"blocks.1.attn.to_k.weight": "model-00000-of-00003.safetensors",
|
| 46 |
+
"blocks.1.attn.to_v.weight": "model-00000-of-00003.safetensors",
|
| 47 |
+
"blocks.1.attn.proj.weight": "model-00000-of-00003.safetensors",
|
| 48 |
+
"blocks.1.attn.proj.bias": "model-00000-of-00003.safetensors",
|
| 49 |
+
"blocks.1.attn.q_norm.weight": "model-00000-of-00003.safetensors",
|
| 50 |
+
"blocks.1.attn.k_norm.weight": "model-00000-of-00003.safetensors",
|
| 51 |
+
"blocks.1.cross_attn.q_linear.weight": "model-00000-of-00003.safetensors",
|
| 52 |
+
"blocks.1.cross_attn.q_linear.bias": "model-00000-of-00003.safetensors",
|
| 53 |
+
"blocks.1.cross_attn.to_k.weight": "model-00000-of-00003.safetensors",
|
| 54 |
+
"blocks.1.cross_attn.to_k.bias": "model-00000-of-00003.safetensors",
|
| 55 |
+
"blocks.1.cross_attn.to_v.weight": "model-00000-of-00003.safetensors",
|
| 56 |
+
"blocks.1.cross_attn.to_v.bias": "model-00000-of-00003.safetensors",
|
| 57 |
+
"blocks.1.cross_attn.proj.weight": "model-00000-of-00003.safetensors",
|
| 58 |
+
"blocks.1.cross_attn.proj.bias": "model-00000-of-00003.safetensors",
|
| 59 |
+
"blocks.1.cross_attn.q_norm.weight": "model-00000-of-00003.safetensors",
|
| 60 |
+
"blocks.1.cross_attn.k_norm.weight": "model-00000-of-00003.safetensors",
|
| 61 |
+
"blocks.1.mlp.inverted_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 62 |
+
"blocks.1.mlp.inverted_conv.conv.bias": "model-00000-of-00003.safetensors",
|
| 63 |
+
"blocks.1.mlp.depth_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 64 |
+
"blocks.1.mlp.depth_conv.conv.bias": "model-00000-of-00003.safetensors",
|
| 65 |
+
"blocks.1.mlp.point_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 66 |
+
"blocks.2.scale_shift_table": "model-00000-of-00003.safetensors",
|
| 67 |
+
"blocks.2.attn.to_q.weight": "model-00000-of-00003.safetensors",
|
| 68 |
+
"blocks.2.attn.to_k.weight": "model-00000-of-00003.safetensors",
|
| 69 |
+
"blocks.2.attn.to_v.weight": "model-00000-of-00003.safetensors",
|
| 70 |
+
"blocks.2.attn.proj.weight": "model-00000-of-00003.safetensors",
|
| 71 |
+
"blocks.2.attn.proj.bias": "model-00000-of-00003.safetensors",
|
| 72 |
+
"blocks.2.attn.q_norm.weight": "model-00000-of-00003.safetensors",
|
| 73 |
+
"blocks.2.attn.k_norm.weight": "model-00000-of-00003.safetensors",
|
| 74 |
+
"blocks.2.cross_attn.q_linear.weight": "model-00000-of-00003.safetensors",
|
| 75 |
+
"blocks.2.cross_attn.q_linear.bias": "model-00000-of-00003.safetensors",
|
| 76 |
+
"blocks.2.cross_attn.to_k.weight": "model-00000-of-00003.safetensors",
|
| 77 |
+
"blocks.2.cross_attn.to_k.bias": "model-00000-of-00003.safetensors",
|
| 78 |
+
"blocks.2.cross_attn.to_v.weight": "model-00000-of-00003.safetensors",
|
| 79 |
+
"blocks.2.cross_attn.to_v.bias": "model-00000-of-00003.safetensors",
|
| 80 |
+
"blocks.2.cross_attn.proj.weight": "model-00000-of-00003.safetensors",
|
| 81 |
+
"blocks.2.cross_attn.proj.bias": "model-00000-of-00003.safetensors",
|
| 82 |
+
"blocks.2.cross_attn.q_norm.weight": "model-00000-of-00003.safetensors",
|
| 83 |
+
"blocks.2.cross_attn.k_norm.weight": "model-00000-of-00003.safetensors",
|
| 84 |
+
"blocks.2.mlp.inverted_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 85 |
+
"blocks.2.mlp.inverted_conv.conv.bias": "model-00000-of-00003.safetensors",
|
| 86 |
+
"blocks.2.mlp.depth_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 87 |
+
"blocks.2.mlp.depth_conv.conv.bias": "model-00000-of-00003.safetensors",
|
| 88 |
+
"blocks.2.mlp.point_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 89 |
+
"blocks.3.scale_shift_table": "model-00000-of-00003.safetensors",
|
| 90 |
+
"blocks.3.attn.to_q.weight": "model-00000-of-00003.safetensors",
|
| 91 |
+
"blocks.3.attn.to_k.weight": "model-00000-of-00003.safetensors",
|
| 92 |
+
"blocks.3.attn.to_v.weight": "model-00000-of-00003.safetensors",
|
| 93 |
+
"blocks.3.attn.proj.weight": "model-00000-of-00003.safetensors",
|
| 94 |
+
"blocks.3.attn.proj.bias": "model-00000-of-00003.safetensors",
|
| 95 |
+
"blocks.3.attn.q_norm.weight": "model-00000-of-00003.safetensors",
|
| 96 |
+
"blocks.3.attn.k_norm.weight": "model-00000-of-00003.safetensors",
|
| 97 |
+
"blocks.3.cross_attn.q_linear.weight": "model-00000-of-00003.safetensors",
|
| 98 |
+
"blocks.3.cross_attn.q_linear.bias": "model-00000-of-00003.safetensors",
|
| 99 |
+
"blocks.3.cross_attn.to_k.weight": "model-00000-of-00003.safetensors",
|
| 100 |
+
"blocks.3.cross_attn.to_k.bias": "model-00000-of-00003.safetensors",
|
| 101 |
+
"blocks.3.cross_attn.to_v.weight": "model-00000-of-00003.safetensors",
|
| 102 |
+
"blocks.3.cross_attn.to_v.bias": "model-00000-of-00003.safetensors",
|
| 103 |
+
"blocks.3.cross_attn.proj.weight": "model-00000-of-00003.safetensors",
|
| 104 |
+
"blocks.3.cross_attn.proj.bias": "model-00000-of-00003.safetensors",
|
| 105 |
+
"blocks.3.cross_attn.q_norm.weight": "model-00000-of-00003.safetensors",
|
| 106 |
+
"blocks.3.cross_attn.k_norm.weight": "model-00000-of-00003.safetensors",
|
| 107 |
+
"blocks.3.mlp.inverted_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 108 |
+
"blocks.3.mlp.inverted_conv.conv.bias": "model-00000-of-00003.safetensors",
|
| 109 |
+
"blocks.3.mlp.depth_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 110 |
+
"blocks.3.mlp.depth_conv.conv.bias": "model-00000-of-00003.safetensors",
|
| 111 |
+
"blocks.3.mlp.point_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 112 |
+
"blocks.4.scale_shift_table": "model-00000-of-00003.safetensors",
|
| 113 |
+
"blocks.4.attn.to_q.weight": "model-00000-of-00003.safetensors",
|
| 114 |
+
"blocks.4.attn.to_k.weight": "model-00000-of-00003.safetensors",
|
| 115 |
+
"blocks.4.attn.to_v.weight": "model-00000-of-00003.safetensors",
|
| 116 |
+
"blocks.4.attn.proj.weight": "model-00000-of-00003.safetensors",
|
| 117 |
+
"blocks.4.attn.proj.bias": "model-00000-of-00003.safetensors",
|
| 118 |
+
"blocks.4.attn.q_norm.weight": "model-00000-of-00003.safetensors",
|
| 119 |
+
"blocks.4.attn.k_norm.weight": "model-00000-of-00003.safetensors",
|
| 120 |
+
"blocks.4.cross_attn.q_linear.weight": "model-00000-of-00003.safetensors",
|
| 121 |
+
"blocks.4.cross_attn.q_linear.bias": "model-00000-of-00003.safetensors",
|
| 122 |
+
"blocks.4.cross_attn.to_k.weight": "model-00000-of-00003.safetensors",
|
| 123 |
+
"blocks.4.cross_attn.to_k.bias": "model-00000-of-00003.safetensors",
|
| 124 |
+
"blocks.4.cross_attn.to_v.weight": "model-00000-of-00003.safetensors",
|
| 125 |
+
"blocks.4.cross_attn.to_v.bias": "model-00000-of-00003.safetensors",
|
| 126 |
+
"blocks.4.cross_attn.proj.weight": "model-00000-of-00003.safetensors",
|
| 127 |
+
"blocks.4.cross_attn.proj.bias": "model-00000-of-00003.safetensors",
|
| 128 |
+
"blocks.4.cross_attn.q_norm.weight": "model-00000-of-00003.safetensors",
|
| 129 |
+
"blocks.4.cross_attn.k_norm.weight": "model-00000-of-00003.safetensors",
|
| 130 |
+
"blocks.4.mlp.inverted_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 131 |
+
"blocks.4.mlp.inverted_conv.conv.bias": "model-00000-of-00003.safetensors",
|
| 132 |
+
"blocks.4.mlp.depth_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 133 |
+
"blocks.4.mlp.depth_conv.conv.bias": "model-00000-of-00003.safetensors",
|
| 134 |
+
"blocks.4.mlp.point_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 135 |
+
"blocks.5.scale_shift_table": "model-00000-of-00003.safetensors",
|
| 136 |
+
"blocks.5.attn.to_q.weight": "model-00000-of-00003.safetensors",
|
| 137 |
+
"blocks.5.attn.to_k.weight": "model-00000-of-00003.safetensors",
|
| 138 |
+
"blocks.5.attn.to_v.weight": "model-00000-of-00003.safetensors",
|
| 139 |
+
"blocks.5.attn.proj.weight": "model-00000-of-00003.safetensors",
|
| 140 |
+
"blocks.5.attn.proj.bias": "model-00000-of-00003.safetensors",
|
| 141 |
+
"blocks.5.attn.q_norm.weight": "model-00000-of-00003.safetensors",
|
| 142 |
+
"blocks.5.attn.k_norm.weight": "model-00000-of-00003.safetensors",
|
| 143 |
+
"blocks.5.cross_attn.q_linear.weight": "model-00000-of-00003.safetensors",
|
| 144 |
+
"blocks.5.cross_attn.q_linear.bias": "model-00000-of-00003.safetensors",
|
| 145 |
+
"blocks.5.cross_attn.to_k.weight": "model-00000-of-00003.safetensors",
|
| 146 |
+
"blocks.5.cross_attn.to_k.bias": "model-00000-of-00003.safetensors",
|
| 147 |
+
"blocks.5.cross_attn.to_v.weight": "model-00000-of-00003.safetensors",
|
| 148 |
+
"blocks.5.cross_attn.to_v.bias": "model-00000-of-00003.safetensors",
|
| 149 |
+
"blocks.5.cross_attn.proj.weight": "model-00000-of-00003.safetensors",
|
| 150 |
+
"blocks.5.cross_attn.proj.bias": "model-00000-of-00003.safetensors",
|
| 151 |
+
"blocks.5.cross_attn.q_norm.weight": "model-00000-of-00003.safetensors",
|
| 152 |
+
"blocks.5.cross_attn.k_norm.weight": "model-00000-of-00003.safetensors",
|
| 153 |
+
"blocks.5.mlp.inverted_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 154 |
+
"blocks.5.mlp.inverted_conv.conv.bias": "model-00000-of-00003.safetensors",
|
| 155 |
+
"blocks.5.mlp.depth_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 156 |
+
"blocks.5.mlp.depth_conv.conv.bias": "model-00000-of-00003.safetensors",
|
| 157 |
+
"blocks.5.mlp.point_conv.conv.weight": "model-00000-of-00003.safetensors",
|
| 158 |
+
"blocks.6.scale_shift_table": "model-00000-of-00003.safetensors",
|
| 159 |
+
"blocks.6.attn.to_q.weight": "model-00000-of-00003.safetensors",
|
| 160 |
+
"blocks.6.attn.to_k.weight": "model-00000-of-00003.safetensors",
|
| 161 |
+
"blocks.6.attn.to_v.weight": "model-00000-of-00003.safetensors",
|
| 162 |
+
"blocks.6.attn.proj.weight": "model-00000-of-00003.safetensors",
|
| 163 |
+
"blocks.6.attn.proj.bias": "model-00000-of-00003.safetensors",
|
| 164 |
+
"blocks.6.attn.q_norm.weight": "model-00000-of-00003.safetensors",
|
| 165 |
+
"blocks.6.attn.k_norm.weight": "model-00000-of-00003.safetensors",
|
| 166 |
+
"blocks.6.cross_attn.q_linear.weight": "model-00000-of-00003.safetensors",
|
| 167 |
+
"blocks.6.cross_attn.q_linear.bias": "model-00001-of-00003.safetensors",
|
| 168 |
+
"blocks.6.cross_attn.to_k.weight": "model-00001-of-00003.safetensors",
|
| 169 |
+
"blocks.6.cross_attn.to_k.bias": "model-00001-of-00003.safetensors",
|
| 170 |
+
"blocks.6.cross_attn.to_v.weight": "model-00001-of-00003.safetensors",
|
| 171 |
+
"blocks.6.cross_attn.to_v.bias": "model-00001-of-00003.safetensors",
|
| 172 |
+
"blocks.6.cross_attn.proj.weight": "model-00001-of-00003.safetensors",
|
| 173 |
+
"blocks.6.cross_attn.proj.bias": "model-00001-of-00003.safetensors",
|
| 174 |
+
"blocks.6.cross_attn.q_norm.weight": "model-00001-of-00003.safetensors",
|
| 175 |
+
"blocks.6.cross_attn.k_norm.weight": "model-00001-of-00003.safetensors",
|
| 176 |
+
"blocks.6.mlp.inverted_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 177 |
+
"blocks.6.mlp.inverted_conv.conv.bias": "model-00001-of-00003.safetensors",
|
| 178 |
+
"blocks.6.mlp.depth_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 179 |
+
"blocks.6.mlp.depth_conv.conv.bias": "model-00001-of-00003.safetensors",
|
| 180 |
+
"blocks.6.mlp.point_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 181 |
+
"blocks.7.scale_shift_table": "model-00001-of-00003.safetensors",
|
| 182 |
+
"blocks.7.attn.to_q.weight": "model-00001-of-00003.safetensors",
|
| 183 |
+
"blocks.7.attn.to_k.weight": "model-00001-of-00003.safetensors",
|
| 184 |
+
"blocks.7.attn.to_v.weight": "model-00001-of-00003.safetensors",
|
| 185 |
+
"blocks.7.attn.proj.weight": "model-00001-of-00003.safetensors",
|
| 186 |
+
"blocks.7.attn.proj.bias": "model-00001-of-00003.safetensors",
|
| 187 |
+
"blocks.7.attn.q_norm.weight": "model-00001-of-00003.safetensors",
|
| 188 |
+
"blocks.7.attn.k_norm.weight": "model-00001-of-00003.safetensors",
|
| 189 |
+
"blocks.7.cross_attn.q_linear.weight": "model-00001-of-00003.safetensors",
|
| 190 |
+
"blocks.7.cross_attn.q_linear.bias": "model-00001-of-00003.safetensors",
|
| 191 |
+
"blocks.7.cross_attn.to_k.weight": "model-00001-of-00003.safetensors",
|
| 192 |
+
"blocks.7.cross_attn.to_k.bias": "model-00001-of-00003.safetensors",
|
| 193 |
+
"blocks.7.cross_attn.to_v.weight": "model-00001-of-00003.safetensors",
|
| 194 |
+
"blocks.7.cross_attn.to_v.bias": "model-00001-of-00003.safetensors",
|
| 195 |
+
"blocks.7.cross_attn.proj.weight": "model-00001-of-00003.safetensors",
|
| 196 |
+
"blocks.7.cross_attn.proj.bias": "model-00001-of-00003.safetensors",
|
| 197 |
+
"blocks.7.cross_attn.q_norm.weight": "model-00001-of-00003.safetensors",
|
| 198 |
+
"blocks.7.cross_attn.k_norm.weight": "model-00001-of-00003.safetensors",
|
| 199 |
+
"blocks.7.mlp.inverted_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 200 |
+
"blocks.7.mlp.inverted_conv.conv.bias": "model-00001-of-00003.safetensors",
|
| 201 |
+
"blocks.7.mlp.depth_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 202 |
+
"blocks.7.mlp.depth_conv.conv.bias": "model-00001-of-00003.safetensors",
|
| 203 |
+
"blocks.7.mlp.point_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 204 |
+
"blocks.8.scale_shift_table": "model-00001-of-00003.safetensors",
|
| 205 |
+
"blocks.8.attn.to_q.weight": "model-00001-of-00003.safetensors",
|
| 206 |
+
"blocks.8.attn.to_k.weight": "model-00001-of-00003.safetensors",
|
| 207 |
+
"blocks.8.attn.to_v.weight": "model-00001-of-00003.safetensors",
|
| 208 |
+
"blocks.8.attn.proj.weight": "model-00001-of-00003.safetensors",
|
| 209 |
+
"blocks.8.attn.proj.bias": "model-00001-of-00003.safetensors",
|
| 210 |
+
"blocks.8.attn.q_norm.weight": "model-00001-of-00003.safetensors",
|
| 211 |
+
"blocks.8.attn.k_norm.weight": "model-00001-of-00003.safetensors",
|
| 212 |
+
"blocks.8.cross_attn.q_linear.weight": "model-00001-of-00003.safetensors",
|
| 213 |
+
"blocks.8.cross_attn.q_linear.bias": "model-00001-of-00003.safetensors",
|
| 214 |
+
"blocks.8.cross_attn.to_k.weight": "model-00001-of-00003.safetensors",
|
| 215 |
+
"blocks.8.cross_attn.to_k.bias": "model-00001-of-00003.safetensors",
|
| 216 |
+
"blocks.8.cross_attn.to_v.weight": "model-00001-of-00003.safetensors",
|
| 217 |
+
"blocks.8.cross_attn.to_v.bias": "model-00001-of-00003.safetensors",
|
| 218 |
+
"blocks.8.cross_attn.proj.weight": "model-00001-of-00003.safetensors",
|
| 219 |
+
"blocks.8.cross_attn.proj.bias": "model-00001-of-00003.safetensors",
|
| 220 |
+
"blocks.8.cross_attn.q_norm.weight": "model-00001-of-00003.safetensors",
|
| 221 |
+
"blocks.8.cross_attn.k_norm.weight": "model-00001-of-00003.safetensors",
|
| 222 |
+
"blocks.8.mlp.inverted_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 223 |
+
"blocks.8.mlp.inverted_conv.conv.bias": "model-00001-of-00003.safetensors",
|
| 224 |
+
"blocks.8.mlp.depth_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 225 |
+
"blocks.8.mlp.depth_conv.conv.bias": "model-00001-of-00003.safetensors",
|
| 226 |
+
"blocks.8.mlp.point_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 227 |
+
"blocks.9.scale_shift_table": "model-00001-of-00003.safetensors",
|
| 228 |
+
"blocks.9.attn.to_q.weight": "model-00001-of-00003.safetensors",
|
| 229 |
+
"blocks.9.attn.to_k.weight": "model-00001-of-00003.safetensors",
|
| 230 |
+
"blocks.9.attn.to_v.weight": "model-00001-of-00003.safetensors",
|
| 231 |
+
"blocks.9.attn.proj.weight": "model-00001-of-00003.safetensors",
|
| 232 |
+
"blocks.9.attn.proj.bias": "model-00001-of-00003.safetensors",
|
| 233 |
+
"blocks.9.attn.q_norm.weight": "model-00001-of-00003.safetensors",
|
| 234 |
+
"blocks.9.attn.k_norm.weight": "model-00001-of-00003.safetensors",
|
| 235 |
+
"blocks.9.cross_attn.q_linear.weight": "model-00001-of-00003.safetensors",
|
| 236 |
+
"blocks.9.cross_attn.q_linear.bias": "model-00001-of-00003.safetensors",
|
| 237 |
+
"blocks.9.cross_attn.to_k.weight": "model-00001-of-00003.safetensors",
|
| 238 |
+
"blocks.9.cross_attn.to_k.bias": "model-00001-of-00003.safetensors",
|
| 239 |
+
"blocks.9.cross_attn.to_v.weight": "model-00001-of-00003.safetensors",
|
| 240 |
+
"blocks.9.cross_attn.to_v.bias": "model-00001-of-00003.safetensors",
|
| 241 |
+
"blocks.9.cross_attn.proj.weight": "model-00001-of-00003.safetensors",
|
| 242 |
+
"blocks.9.cross_attn.proj.bias": "model-00001-of-00003.safetensors",
|
| 243 |
+
"blocks.9.cross_attn.q_norm.weight": "model-00001-of-00003.safetensors",
|
| 244 |
+
"blocks.9.cross_attn.k_norm.weight": "model-00001-of-00003.safetensors",
|
| 245 |
+
"blocks.9.mlp.inverted_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 246 |
+
"blocks.9.mlp.inverted_conv.conv.bias": "model-00001-of-00003.safetensors",
|
| 247 |
+
"blocks.9.mlp.depth_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 248 |
+
"blocks.9.mlp.depth_conv.conv.bias": "model-00001-of-00003.safetensors",
|
| 249 |
+
"blocks.9.mlp.point_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 250 |
+
"blocks.10.scale_shift_table": "model-00001-of-00003.safetensors",
|
| 251 |
+
"blocks.10.attn.to_q.weight": "model-00001-of-00003.safetensors",
|
| 252 |
+
"blocks.10.attn.to_k.weight": "model-00001-of-00003.safetensors",
|
| 253 |
+
"blocks.10.attn.to_v.weight": "model-00001-of-00003.safetensors",
|
| 254 |
+
"blocks.10.attn.proj.weight": "model-00001-of-00003.safetensors",
|
| 255 |
+
"blocks.10.attn.proj.bias": "model-00001-of-00003.safetensors",
|
| 256 |
+
"blocks.10.attn.q_norm.weight": "model-00001-of-00003.safetensors",
|
| 257 |
+
"blocks.10.attn.k_norm.weight": "model-00001-of-00003.safetensors",
|
| 258 |
+
"blocks.10.cross_attn.q_linear.weight": "model-00001-of-00003.safetensors",
|
| 259 |
+
"blocks.10.cross_attn.q_linear.bias": "model-00001-of-00003.safetensors",
|
| 260 |
+
"blocks.10.cross_attn.to_k.weight": "model-00001-of-00003.safetensors",
|
| 261 |
+
"blocks.10.cross_attn.to_k.bias": "model-00001-of-00003.safetensors",
|
| 262 |
+
"blocks.10.cross_attn.to_v.weight": "model-00001-of-00003.safetensors",
|
| 263 |
+
"blocks.10.cross_attn.to_v.bias": "model-00001-of-00003.safetensors",
|
| 264 |
+
"blocks.10.cross_attn.proj.weight": "model-00001-of-00003.safetensors",
|
| 265 |
+
"blocks.10.cross_attn.proj.bias": "model-00001-of-00003.safetensors",
|
| 266 |
+
"blocks.10.cross_attn.q_norm.weight": "model-00001-of-00003.safetensors",
|
| 267 |
+
"blocks.10.cross_attn.k_norm.weight": "model-00001-of-00003.safetensors",
|
| 268 |
+
"blocks.10.mlp.inverted_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 269 |
+
"blocks.10.mlp.inverted_conv.conv.bias": "model-00001-of-00003.safetensors",
|
| 270 |
+
"blocks.10.mlp.depth_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 271 |
+
"blocks.10.mlp.depth_conv.conv.bias": "model-00001-of-00003.safetensors",
|
| 272 |
+
"blocks.10.mlp.point_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 273 |
+
"blocks.11.scale_shift_table": "model-00001-of-00003.safetensors",
|
| 274 |
+
"blocks.11.attn.to_q.weight": "model-00001-of-00003.safetensors",
|
| 275 |
+
"blocks.11.attn.to_k.weight": "model-00001-of-00003.safetensors",
|
| 276 |
+
"blocks.11.attn.to_v.weight": "model-00001-of-00003.safetensors",
|
| 277 |
+
"blocks.11.attn.proj.weight": "model-00001-of-00003.safetensors",
|
| 278 |
+
"blocks.11.attn.proj.bias": "model-00001-of-00003.safetensors",
|
| 279 |
+
"blocks.11.attn.q_norm.weight": "model-00001-of-00003.safetensors",
|
| 280 |
+
"blocks.11.attn.k_norm.weight": "model-00001-of-00003.safetensors",
|
| 281 |
+
"blocks.11.cross_attn.q_linear.weight": "model-00001-of-00003.safetensors",
|
| 282 |
+
"blocks.11.cross_attn.q_linear.bias": "model-00001-of-00003.safetensors",
|
| 283 |
+
"blocks.11.cross_attn.to_k.weight": "model-00001-of-00003.safetensors",
|
| 284 |
+
"blocks.11.cross_attn.to_k.bias": "model-00001-of-00003.safetensors",
|
| 285 |
+
"blocks.11.cross_attn.to_v.weight": "model-00001-of-00003.safetensors",
|
| 286 |
+
"blocks.11.cross_attn.to_v.bias": "model-00001-of-00003.safetensors",
|
| 287 |
+
"blocks.11.cross_attn.proj.weight": "model-00001-of-00003.safetensors",
|
| 288 |
+
"blocks.11.cross_attn.proj.bias": "model-00001-of-00003.safetensors",
|
| 289 |
+
"blocks.11.cross_attn.q_norm.weight": "model-00001-of-00003.safetensors",
|
| 290 |
+
"blocks.11.cross_attn.k_norm.weight": "model-00001-of-00003.safetensors",
|
| 291 |
+
"blocks.11.mlp.inverted_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 292 |
+
"blocks.11.mlp.inverted_conv.conv.bias": "model-00001-of-00003.safetensors",
|
| 293 |
+
"blocks.11.mlp.depth_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 294 |
+
"blocks.11.mlp.depth_conv.conv.bias": "model-00001-of-00003.safetensors",
|
| 295 |
+
"blocks.11.mlp.point_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 296 |
+
"blocks.12.scale_shift_table": "model-00001-of-00003.safetensors",
|
| 297 |
+
"blocks.12.attn.to_q.weight": "model-00001-of-00003.safetensors",
|
| 298 |
+
"blocks.12.attn.to_k.weight": "model-00001-of-00003.safetensors",
|
| 299 |
+
"blocks.12.attn.to_v.weight": "model-00001-of-00003.safetensors",
|
| 300 |
+
"blocks.12.attn.proj.weight": "model-00001-of-00003.safetensors",
|
| 301 |
+
"blocks.12.attn.proj.bias": "model-00001-of-00003.safetensors",
|
| 302 |
+
"blocks.12.attn.q_norm.weight": "model-00001-of-00003.safetensors",
|
| 303 |
+
"blocks.12.attn.k_norm.weight": "model-00001-of-00003.safetensors",
|
| 304 |
+
"blocks.12.cross_attn.q_linear.weight": "model-00001-of-00003.safetensors",
|
| 305 |
+
"blocks.12.cross_attn.q_linear.bias": "model-00001-of-00003.safetensors",
|
| 306 |
+
"blocks.12.cross_attn.to_k.weight": "model-00001-of-00003.safetensors",
|
| 307 |
+
"blocks.12.cross_attn.to_k.bias": "model-00001-of-00003.safetensors",
|
| 308 |
+
"blocks.12.cross_attn.to_v.weight": "model-00001-of-00003.safetensors",
|
| 309 |
+
"blocks.12.cross_attn.to_v.bias": "model-00001-of-00003.safetensors",
|
| 310 |
+
"blocks.12.cross_attn.proj.weight": "model-00001-of-00003.safetensors",
|
| 311 |
+
"blocks.12.cross_attn.proj.bias": "model-00001-of-00003.safetensors",
|
| 312 |
+
"blocks.12.cross_attn.q_norm.weight": "model-00001-of-00003.safetensors",
|
| 313 |
+
"blocks.12.cross_attn.k_norm.weight": "model-00001-of-00003.safetensors",
|
| 314 |
+
"blocks.12.mlp.inverted_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 315 |
+
"blocks.12.mlp.inverted_conv.conv.bias": "model-00001-of-00003.safetensors",
|
| 316 |
+
"blocks.12.mlp.depth_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 317 |
+
"blocks.12.mlp.depth_conv.conv.bias": "model-00001-of-00003.safetensors",
|
| 318 |
+
"blocks.12.mlp.point_conv.conv.weight": "model-00001-of-00003.safetensors",
|
| 319 |
+
"blocks.13.scale_shift_table": "model-00001-of-00003.safetensors",
|
| 320 |
+
"blocks.13.attn.to_q.weight": "model-00001-of-00003.safetensors",
|
| 321 |
+
"blocks.13.attn.to_k.weight": "model-00001-of-00003.safetensors",
|
| 322 |
+
"blocks.13.attn.to_v.weight": "model-00001-of-00003.safetensors",
|
| 323 |
+
"blocks.13.attn.proj.weight": "model-00001-of-00003.safetensors",
|
| 324 |
+
"blocks.13.attn.proj.bias": "model-00002-of-00003.safetensors",
|
| 325 |
+
"blocks.13.attn.q_norm.weight": "model-00002-of-00003.safetensors",
|
| 326 |
+
"blocks.13.attn.k_norm.weight": "model-00002-of-00003.safetensors",
|
| 327 |
+
"blocks.13.cross_attn.q_linear.weight": "model-00002-of-00003.safetensors",
|
| 328 |
+
"blocks.13.cross_attn.q_linear.bias": "model-00002-of-00003.safetensors",
|
| 329 |
+
"blocks.13.cross_attn.to_k.weight": "model-00002-of-00003.safetensors",
|
| 330 |
+
"blocks.13.cross_attn.to_k.bias": "model-00002-of-00003.safetensors",
|
| 331 |
+
"blocks.13.cross_attn.to_v.weight": "model-00002-of-00003.safetensors",
|
| 332 |
+
"blocks.13.cross_attn.to_v.bias": "model-00002-of-00003.safetensors",
|
| 333 |
+
"blocks.13.cross_attn.proj.weight": "model-00002-of-00003.safetensors",
|
| 334 |
+
"blocks.13.cross_attn.proj.bias": "model-00002-of-00003.safetensors",
|
| 335 |
+
"blocks.13.cross_attn.q_norm.weight": "model-00002-of-00003.safetensors",
|
| 336 |
+
"blocks.13.cross_attn.k_norm.weight": "model-00002-of-00003.safetensors",
|
| 337 |
+
"blocks.13.mlp.inverted_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 338 |
+
"blocks.13.mlp.inverted_conv.conv.bias": "model-00002-of-00003.safetensors",
|
| 339 |
+
"blocks.13.mlp.depth_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 340 |
+
"blocks.13.mlp.depth_conv.conv.bias": "model-00002-of-00003.safetensors",
|
| 341 |
+
"blocks.13.mlp.point_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 342 |
+
"blocks.14.scale_shift_table": "model-00002-of-00003.safetensors",
|
| 343 |
+
"blocks.14.attn.to_q.weight": "model-00002-of-00003.safetensors",
|
| 344 |
+
"blocks.14.attn.to_k.weight": "model-00002-of-00003.safetensors",
|
| 345 |
+
"blocks.14.attn.to_v.weight": "model-00002-of-00003.safetensors",
|
| 346 |
+
"blocks.14.attn.proj.weight": "model-00002-of-00003.safetensors",
|
| 347 |
+
"blocks.14.attn.proj.bias": "model-00002-of-00003.safetensors",
|
| 348 |
+
"blocks.14.attn.q_norm.weight": "model-00002-of-00003.safetensors",
|
| 349 |
+
"blocks.14.attn.k_norm.weight": "model-00002-of-00003.safetensors",
|
| 350 |
+
"blocks.14.cross_attn.q_linear.weight": "model-00002-of-00003.safetensors",
|
| 351 |
+
"blocks.14.cross_attn.q_linear.bias": "model-00002-of-00003.safetensors",
|
| 352 |
+
"blocks.14.cross_attn.to_k.weight": "model-00002-of-00003.safetensors",
|
| 353 |
+
"blocks.14.cross_attn.to_k.bias": "model-00002-of-00003.safetensors",
|
| 354 |
+
"blocks.14.cross_attn.to_v.weight": "model-00002-of-00003.safetensors",
|
| 355 |
+
"blocks.14.cross_attn.to_v.bias": "model-00002-of-00003.safetensors",
|
| 356 |
+
"blocks.14.cross_attn.proj.weight": "model-00002-of-00003.safetensors",
|
| 357 |
+
"blocks.14.cross_attn.proj.bias": "model-00002-of-00003.safetensors",
|
| 358 |
+
"blocks.14.cross_attn.q_norm.weight": "model-00002-of-00003.safetensors",
|
| 359 |
+
"blocks.14.cross_attn.k_norm.weight": "model-00002-of-00003.safetensors",
|
| 360 |
+
"blocks.14.mlp.inverted_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 361 |
+
"blocks.14.mlp.inverted_conv.conv.bias": "model-00002-of-00003.safetensors",
|
| 362 |
+
"blocks.14.mlp.depth_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 363 |
+
"blocks.14.mlp.depth_conv.conv.bias": "model-00002-of-00003.safetensors",
|
| 364 |
+
"blocks.14.mlp.point_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 365 |
+
"blocks.15.scale_shift_table": "model-00002-of-00003.safetensors",
|
| 366 |
+
"blocks.15.attn.to_q.weight": "model-00002-of-00003.safetensors",
|
| 367 |
+
"blocks.15.attn.to_k.weight": "model-00002-of-00003.safetensors",
|
| 368 |
+
"blocks.15.attn.to_v.weight": "model-00002-of-00003.safetensors",
|
| 369 |
+
"blocks.15.attn.proj.weight": "model-00002-of-00003.safetensors",
|
| 370 |
+
"blocks.15.attn.proj.bias": "model-00002-of-00003.safetensors",
|
| 371 |
+
"blocks.15.attn.q_norm.weight": "model-00002-of-00003.safetensors",
|
| 372 |
+
"blocks.15.attn.k_norm.weight": "model-00002-of-00003.safetensors",
|
| 373 |
+
"blocks.15.cross_attn.q_linear.weight": "model-00002-of-00003.safetensors",
|
| 374 |
+
"blocks.15.cross_attn.q_linear.bias": "model-00002-of-00003.safetensors",
|
| 375 |
+
"blocks.15.cross_attn.to_k.weight": "model-00002-of-00003.safetensors",
|
| 376 |
+
"blocks.15.cross_attn.to_k.bias": "model-00002-of-00003.safetensors",
|
| 377 |
+
"blocks.15.cross_attn.to_v.weight": "model-00002-of-00003.safetensors",
|
| 378 |
+
"blocks.15.cross_attn.to_v.bias": "model-00002-of-00003.safetensors",
|
| 379 |
+
"blocks.15.cross_attn.proj.weight": "model-00002-of-00003.safetensors",
|
| 380 |
+
"blocks.15.cross_attn.proj.bias": "model-00002-of-00003.safetensors",
|
| 381 |
+
"blocks.15.cross_attn.q_norm.weight": "model-00002-of-00003.safetensors",
|
| 382 |
+
"blocks.15.cross_attn.k_norm.weight": "model-00002-of-00003.safetensors",
|
| 383 |
+
"blocks.15.mlp.inverted_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 384 |
+
"blocks.15.mlp.inverted_conv.conv.bias": "model-00002-of-00003.safetensors",
|
| 385 |
+
"blocks.15.mlp.depth_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 386 |
+
"blocks.15.mlp.depth_conv.conv.bias": "model-00002-of-00003.safetensors",
|
| 387 |
+
"blocks.15.mlp.point_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 388 |
+
"blocks.16.scale_shift_table": "model-00002-of-00003.safetensors",
|
| 389 |
+
"blocks.16.attn.to_q.weight": "model-00002-of-00003.safetensors",
|
| 390 |
+
"blocks.16.attn.to_k.weight": "model-00002-of-00003.safetensors",
|
| 391 |
+
"blocks.16.attn.to_v.weight": "model-00002-of-00003.safetensors",
|
| 392 |
+
"blocks.16.attn.proj.weight": "model-00002-of-00003.safetensors",
|
| 393 |
+
"blocks.16.attn.proj.bias": "model-00002-of-00003.safetensors",
|
| 394 |
+
"blocks.16.attn.q_norm.weight": "model-00002-of-00003.safetensors",
|
| 395 |
+
"blocks.16.attn.k_norm.weight": "model-00002-of-00003.safetensors",
|
| 396 |
+
"blocks.16.cross_attn.q_linear.weight": "model-00002-of-00003.safetensors",
|
| 397 |
+
"blocks.16.cross_attn.q_linear.bias": "model-00002-of-00003.safetensors",
|
| 398 |
+
"blocks.16.cross_attn.to_k.weight": "model-00002-of-00003.safetensors",
|
| 399 |
+
"blocks.16.cross_attn.to_k.bias": "model-00002-of-00003.safetensors",
|
| 400 |
+
"blocks.16.cross_attn.to_v.weight": "model-00002-of-00003.safetensors",
|
| 401 |
+
"blocks.16.cross_attn.to_v.bias": "model-00002-of-00003.safetensors",
|
| 402 |
+
"blocks.16.cross_attn.proj.weight": "model-00002-of-00003.safetensors",
|
| 403 |
+
"blocks.16.cross_attn.proj.bias": "model-00002-of-00003.safetensors",
|
| 404 |
+
"blocks.16.cross_attn.q_norm.weight": "model-00002-of-00003.safetensors",
|
| 405 |
+
"blocks.16.cross_attn.k_norm.weight": "model-00002-of-00003.safetensors",
|
| 406 |
+
"blocks.16.mlp.inverted_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 407 |
+
"blocks.16.mlp.inverted_conv.conv.bias": "model-00002-of-00003.safetensors",
|
| 408 |
+
"blocks.16.mlp.depth_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 409 |
+
"blocks.16.mlp.depth_conv.conv.bias": "model-00002-of-00003.safetensors",
|
| 410 |
+
"blocks.16.mlp.point_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 411 |
+
"blocks.17.scale_shift_table": "model-00002-of-00003.safetensors",
|
| 412 |
+
"blocks.17.attn.to_q.weight": "model-00002-of-00003.safetensors",
|
| 413 |
+
"blocks.17.attn.to_k.weight": "model-00002-of-00003.safetensors",
|
| 414 |
+
"blocks.17.attn.to_v.weight": "model-00002-of-00003.safetensors",
|
| 415 |
+
"blocks.17.attn.proj.weight": "model-00002-of-00003.safetensors",
|
| 416 |
+
"blocks.17.attn.proj.bias": "model-00002-of-00003.safetensors",
|
| 417 |
+
"blocks.17.attn.q_norm.weight": "model-00002-of-00003.safetensors",
|
| 418 |
+
"blocks.17.attn.k_norm.weight": "model-00002-of-00003.safetensors",
|
| 419 |
+
"blocks.17.cross_attn.q_linear.weight": "model-00002-of-00003.safetensors",
|
| 420 |
+
"blocks.17.cross_attn.q_linear.bias": "model-00002-of-00003.safetensors",
|
| 421 |
+
"blocks.17.cross_attn.to_k.weight": "model-00002-of-00003.safetensors",
|
| 422 |
+
"blocks.17.cross_attn.to_k.bias": "model-00002-of-00003.safetensors",
|
| 423 |
+
"blocks.17.cross_attn.to_v.weight": "model-00002-of-00003.safetensors",
|
| 424 |
+
"blocks.17.cross_attn.to_v.bias": "model-00002-of-00003.safetensors",
|
| 425 |
+
"blocks.17.cross_attn.proj.weight": "model-00002-of-00003.safetensors",
|
| 426 |
+
"blocks.17.cross_attn.proj.bias": "model-00002-of-00003.safetensors",
|
| 427 |
+
"blocks.17.cross_attn.q_norm.weight": "model-00002-of-00003.safetensors",
|
| 428 |
+
"blocks.17.cross_attn.k_norm.weight": "model-00002-of-00003.safetensors",
|
| 429 |
+
"blocks.17.mlp.inverted_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 430 |
+
"blocks.17.mlp.inverted_conv.conv.bias": "model-00002-of-00003.safetensors",
|
| 431 |
+
"blocks.17.mlp.depth_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 432 |
+
"blocks.17.mlp.depth_conv.conv.bias": "model-00002-of-00003.safetensors",
|
| 433 |
+
"blocks.17.mlp.point_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 434 |
+
"blocks.18.scale_shift_table": "model-00002-of-00003.safetensors",
|
| 435 |
+
"blocks.18.attn.to_q.weight": "model-00002-of-00003.safetensors",
|
| 436 |
+
"blocks.18.attn.to_k.weight": "model-00002-of-00003.safetensors",
|
| 437 |
+
"blocks.18.attn.to_v.weight": "model-00002-of-00003.safetensors",
|
| 438 |
+
"blocks.18.attn.proj.weight": "model-00002-of-00003.safetensors",
|
| 439 |
+
"blocks.18.attn.proj.bias": "model-00002-of-00003.safetensors",
|
| 440 |
+
"blocks.18.attn.q_norm.weight": "model-00002-of-00003.safetensors",
|
| 441 |
+
"blocks.18.attn.k_norm.weight": "model-00002-of-00003.safetensors",
|
| 442 |
+
"blocks.18.cross_attn.q_linear.weight": "model-00002-of-00003.safetensors",
|
| 443 |
+
"blocks.18.cross_attn.q_linear.bias": "model-00002-of-00003.safetensors",
|
| 444 |
+
"blocks.18.cross_attn.to_k.weight": "model-00002-of-00003.safetensors",
|
| 445 |
+
"blocks.18.cross_attn.to_k.bias": "model-00002-of-00003.safetensors",
|
| 446 |
+
"blocks.18.cross_attn.to_v.weight": "model-00002-of-00003.safetensors",
|
| 447 |
+
"blocks.18.cross_attn.to_v.bias": "model-00002-of-00003.safetensors",
|
| 448 |
+
"blocks.18.cross_attn.proj.weight": "model-00002-of-00003.safetensors",
|
| 449 |
+
"blocks.18.cross_attn.proj.bias": "model-00002-of-00003.safetensors",
|
| 450 |
+
"blocks.18.cross_attn.q_norm.weight": "model-00002-of-00003.safetensors",
|
| 451 |
+
"blocks.18.cross_attn.k_norm.weight": "model-00002-of-00003.safetensors",
|
| 452 |
+
"blocks.18.mlp.inverted_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 453 |
+
"blocks.18.mlp.inverted_conv.conv.bias": "model-00002-of-00003.safetensors",
|
| 454 |
+
"blocks.18.mlp.depth_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 455 |
+
"blocks.18.mlp.depth_conv.conv.bias": "model-00002-of-00003.safetensors",
|
| 456 |
+
"blocks.18.mlp.point_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 457 |
+
"blocks.19.scale_shift_table": "model-00002-of-00003.safetensors",
|
| 458 |
+
"blocks.19.attn.to_q.weight": "model-00002-of-00003.safetensors",
|
| 459 |
+
"blocks.19.attn.to_k.weight": "model-00002-of-00003.safetensors",
|
| 460 |
+
"blocks.19.attn.to_v.weight": "model-00002-of-00003.safetensors",
|
| 461 |
+
"blocks.19.attn.proj.weight": "model-00002-of-00003.safetensors",
|
| 462 |
+
"blocks.19.attn.proj.bias": "model-00002-of-00003.safetensors",
|
| 463 |
+
"blocks.19.attn.q_norm.weight": "model-00002-of-00003.safetensors",
|
| 464 |
+
"blocks.19.attn.k_norm.weight": "model-00002-of-00003.safetensors",
|
| 465 |
+
"blocks.19.cross_attn.q_linear.weight": "model-00002-of-00003.safetensors",
|
| 466 |
+
"blocks.19.cross_attn.q_linear.bias": "model-00002-of-00003.safetensors",
|
| 467 |
+
"blocks.19.cross_attn.to_k.weight": "model-00002-of-00003.safetensors",
|
| 468 |
+
"blocks.19.cross_attn.to_k.bias": "model-00002-of-00003.safetensors",
|
| 469 |
+
"blocks.19.cross_attn.to_v.weight": "model-00002-of-00003.safetensors",
|
| 470 |
+
"blocks.19.cross_attn.to_v.bias": "model-00002-of-00003.safetensors",
|
| 471 |
+
"blocks.19.cross_attn.proj.weight": "model-00002-of-00003.safetensors",
|
| 472 |
+
"blocks.19.cross_attn.proj.bias": "model-00002-of-00003.safetensors",
|
| 473 |
+
"blocks.19.cross_attn.q_norm.weight": "model-00002-of-00003.safetensors",
|
| 474 |
+
"blocks.19.cross_attn.k_norm.weight": "model-00002-of-00003.safetensors",
|
| 475 |
+
"blocks.19.mlp.inverted_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 476 |
+
"blocks.19.mlp.inverted_conv.conv.bias": "model-00002-of-00003.safetensors",
|
| 477 |
+
"blocks.19.mlp.depth_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 478 |
+
"blocks.19.mlp.depth_conv.conv.bias": "model-00002-of-00003.safetensors",
|
| 479 |
+
"blocks.19.mlp.point_conv.conv.weight": "model-00002-of-00003.safetensors",
|
| 480 |
+
"final_layer.scale_shift_table": "model-00002-of-00003.safetensors",
|
| 481 |
+
"final_layer.linear.weight": "model-00002-of-00003.safetensors",
|
| 482 |
+
"final_layer.linear.bias": "model-00002-of-00003.safetensors",
|
| 483 |
+
"y_embedder.y_embedding": "model-00002-of-00003.safetensors"
|
| 484 |
+
}
|
| 485 |
+
}
|
requirements.txt
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Tested with Python 3.12, PyTorch 2.6.0 and CUDA 12.9.
|
| 2 |
+
torch==2.6.0
|
| 3 |
+
torchvision==0.21.0
|
| 4 |
+
diffusers==0.36.0
|
| 5 |
+
transformers==4.51.1
|
| 6 |
+
safetensors==0.5.3
|
| 7 |
+
einops==0.8.1
|
| 8 |
+
accelerate>=1.9
|
| 9 |
+
pydantic==2.11.7
|
| 10 |
+
numpy==2.2.6
|
| 11 |
+
Pillow==11.3.0
|
| 12 |
+
huggingface-hub==0.36.0
|
| 13 |
+
PyYAML>=6.0
|
| 14 |
+
# Install separately AFTER torch: pip install flash-attn==2.7.4.post1 --no-build-isolation
|