Text-to-Image
Diffusers
Safetensors
MiniMax H3
Pruna AI
English
image-to-image
image-generation
image-editing
prompt-upsampling
modular-diffusers
Instructions to use PrunaAI/P-H3-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use PrunaAI/P-H3-Image with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("PrunaAI/P-H3-Image", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Pruna AI
How to use PrunaAI/P-H3-Image with Pruna AI:
from pruna import PrunaModel pip install -U diffusers transformers accelerate
from pruna import PrunaModel import torch # switch to "mps" for apple devices pipe = PrunaModel.from_pretrained("PrunaAI/P-H3-Image", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Convert to the diffusers modular layout
Browse files- .gitattributes +2 -0
- audio_scheduler/scheduler_config.json +5 -0
- modular_model_index.json +129 -0
- {text_encoder → processor}/chat_template.jinja +0 -0
- processor/preprocessor_config.json +0 -21
- {text_encoder → processor}/processor_config.json +0 -0
- {text_encoder → processor}/tokenizer.json +0 -0
- {text_encoder → processor}/tokenizer_config.json +1 -1
- scheduler/scheduler_config.json +5 -0
- text_connector/config.json +13 -0
- vae/encoder.safetensors → text_connector/diffusion_pytorch_model.safetensors +2 -2
- tokenizer/chat_template.jinja +120 -0
- text_encoder/h3_connector.safetensors → tokenizer/tokenizer.json +2 -2
- tokenizer/tokenizer_config.json +31 -0
- transformer/config.json +3 -3
- transformer/diffusion_pytorch_model-00001-of-00005.safetensors +2 -2
- transformer/diffusion_pytorch_model-00002-of-00005.safetensors +2 -2
- transformer/diffusion_pytorch_model-00003-of-00005.safetensors +2 -2
- transformer/diffusion_pytorch_model-00004-of-00005.safetensors +2 -2
- transformer/diffusion_pytorch_model-00005-of-00005.safetensors +2 -2
- transformer/diffusion_pytorch_model.safetensors.index.json +0 -0
- transformer/fact_adaln.json +0 -36
- vae/config.json +31 -33
- decoder/decoder.safetensors → vae/diffusion_pytorch_model.safetensors +2 -2
.gitattributes
CHANGED
|
@@ -34,3 +34,5 @@ saved_model/**/* 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 |
text_encoder/tokenizer.json 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 |
text_encoder/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
processor/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
audio_scheduler/scheduler_config.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "MiniMaxH3Scheduler",
|
| 3 |
+
"_diffusers_version": "0.42.0.dev0",
|
| 4 |
+
"shift": 12.0
|
| 5 |
+
}
|
modular_model_index.json
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "PH3ImageModularPipeline",
|
| 3 |
+
"_diffusers_version": "0.42.0.dev0",
|
| 4 |
+
"_blocks_class_name": "PH3ImageBlocks",
|
| 5 |
+
"edit_canvas_pixels": 1000000,
|
| 6 |
+
"sample_sigmas": [
|
| 7 |
+
1.0,
|
| 8 |
+
0.994168,
|
| 9 |
+
0.989138,
|
| 10 |
+
0.978136,
|
| 11 |
+
0.951688,
|
| 12 |
+
0.925372,
|
| 13 |
+
0.810083,
|
| 14 |
+
0.528718,
|
| 15 |
+
0.0
|
| 16 |
+
],
|
| 17 |
+
"text_encoder": [
|
| 18 |
+
"transformers",
|
| 19 |
+
"Qwen3VLForConditionalGeneration",
|
| 20 |
+
{
|
| 21 |
+
"type_hint": [
|
| 22 |
+
"transformers",
|
| 23 |
+
"Qwen3VLForConditionalGeneration"
|
| 24 |
+
],
|
| 25 |
+
"pretrained_model_name_or_path": "PrunaAI/p-h3-image",
|
| 26 |
+
"subfolder": "text_encoder",
|
| 27 |
+
"variant": null,
|
| 28 |
+
"revision": null
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"text_connector": [
|
| 32 |
+
"diffusers",
|
| 33 |
+
"PH3ImageTextConnector",
|
| 34 |
+
{
|
| 35 |
+
"type_hint": [
|
| 36 |
+
"diffusers",
|
| 37 |
+
"PH3ImageTextConnector"
|
| 38 |
+
],
|
| 39 |
+
"pretrained_model_name_or_path": "PrunaAI/p-h3-image",
|
| 40 |
+
"subfolder": "text_connector",
|
| 41 |
+
"variant": null,
|
| 42 |
+
"revision": null
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"tokenizer": [
|
| 46 |
+
"transformers",
|
| 47 |
+
"Qwen2TokenizerFast",
|
| 48 |
+
{
|
| 49 |
+
"type_hint": [
|
| 50 |
+
"transformers",
|
| 51 |
+
"Qwen2TokenizerFast"
|
| 52 |
+
],
|
| 53 |
+
"pretrained_model_name_or_path": "PrunaAI/p-h3-image",
|
| 54 |
+
"subfolder": "tokenizer",
|
| 55 |
+
"variant": null,
|
| 56 |
+
"revision": null
|
| 57 |
+
}
|
| 58 |
+
],
|
| 59 |
+
"processor": [
|
| 60 |
+
"transformers",
|
| 61 |
+
"Qwen3VLProcessor",
|
| 62 |
+
{
|
| 63 |
+
"type_hint": [
|
| 64 |
+
"transformers",
|
| 65 |
+
"Qwen3VLProcessor"
|
| 66 |
+
],
|
| 67 |
+
"pretrained_model_name_or_path": "PrunaAI/p-h3-image",
|
| 68 |
+
"subfolder": "processor",
|
| 69 |
+
"variant": null,
|
| 70 |
+
"revision": null
|
| 71 |
+
}
|
| 72 |
+
],
|
| 73 |
+
"vae": [
|
| 74 |
+
"diffusers",
|
| 75 |
+
"AutoencoderKLPH3Image",
|
| 76 |
+
{
|
| 77 |
+
"type_hint": [
|
| 78 |
+
"diffusers",
|
| 79 |
+
"AutoencoderKLPH3Image"
|
| 80 |
+
],
|
| 81 |
+
"pretrained_model_name_or_path": "PrunaAI/p-h3-image",
|
| 82 |
+
"subfolder": "vae",
|
| 83 |
+
"variant": null,
|
| 84 |
+
"revision": null
|
| 85 |
+
}
|
| 86 |
+
],
|
| 87 |
+
"transformer": [
|
| 88 |
+
"diffusers",
|
| 89 |
+
"MiniMaxH3Transformer3DModel",
|
| 90 |
+
{
|
| 91 |
+
"type_hint": [
|
| 92 |
+
"diffusers",
|
| 93 |
+
"MiniMaxH3Transformer3DModel"
|
| 94 |
+
],
|
| 95 |
+
"pretrained_model_name_or_path": "PrunaAI/p-h3-image",
|
| 96 |
+
"subfolder": "transformer",
|
| 97 |
+
"variant": null,
|
| 98 |
+
"revision": null
|
| 99 |
+
}
|
| 100 |
+
],
|
| 101 |
+
"scheduler": [
|
| 102 |
+
"diffusers",
|
| 103 |
+
"MiniMaxH3Scheduler",
|
| 104 |
+
{
|
| 105 |
+
"type_hint": [
|
| 106 |
+
"diffusers",
|
| 107 |
+
"MiniMaxH3Scheduler"
|
| 108 |
+
],
|
| 109 |
+
"pretrained_model_name_or_path": "PrunaAI/p-h3-image",
|
| 110 |
+
"subfolder": "scheduler",
|
| 111 |
+
"variant": null,
|
| 112 |
+
"revision": null
|
| 113 |
+
}
|
| 114 |
+
],
|
| 115 |
+
"audio_scheduler": [
|
| 116 |
+
"diffusers",
|
| 117 |
+
"MiniMaxH3Scheduler",
|
| 118 |
+
{
|
| 119 |
+
"type_hint": [
|
| 120 |
+
"diffusers",
|
| 121 |
+
"MiniMaxH3Scheduler"
|
| 122 |
+
],
|
| 123 |
+
"pretrained_model_name_or_path": "PrunaAI/p-h3-image",
|
| 124 |
+
"subfolder": "audio_scheduler",
|
| 125 |
+
"variant": null,
|
| 126 |
+
"revision": null
|
| 127 |
+
}
|
| 128 |
+
]
|
| 129 |
+
}
|
{text_encoder → processor}/chat_template.jinja
RENAMED
|
File without changes
|
processor/preprocessor_config.json
DELETED
|
@@ -1,21 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"size": {
|
| 3 |
-
"longest_edge": 16777216,
|
| 4 |
-
"shortest_edge": 65536
|
| 5 |
-
},
|
| 6 |
-
"patch_size": 16,
|
| 7 |
-
"temporal_patch_size": 2,
|
| 8 |
-
"merge_size": 2,
|
| 9 |
-
"image_mean": [
|
| 10 |
-
0.5,
|
| 11 |
-
0.5,
|
| 12 |
-
0.5
|
| 13 |
-
],
|
| 14 |
-
"image_std": [
|
| 15 |
-
0.5,
|
| 16 |
-
0.5,
|
| 17 |
-
0.5
|
| 18 |
-
],
|
| 19 |
-
"processor_class": "Qwen3VLProcessor",
|
| 20 |
-
"image_processor_type": "Qwen2VLImageProcessorFast"
|
| 21 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{text_encoder → processor}/processor_config.json
RENAMED
|
File without changes
|
{text_encoder → processor}/tokenizer.json
RENAMED
|
File without changes
|
{text_encoder → processor}/tokenizer_config.json
RENAMED
|
@@ -20,7 +20,7 @@
|
|
| 20 |
"<|image_pad|>",
|
| 21 |
"<|video_pad|>"
|
| 22 |
],
|
| 23 |
-
"is_local":
|
| 24 |
"local_files_only": false,
|
| 25 |
"model_max_length": 262144,
|
| 26 |
"pad_token": "<|endoftext|>",
|
|
|
|
| 20 |
"<|image_pad|>",
|
| 21 |
"<|video_pad|>"
|
| 22 |
],
|
| 23 |
+
"is_local": true,
|
| 24 |
"local_files_only": false,
|
| 25 |
"model_max_length": 262144,
|
| 26 |
"pad_token": "<|endoftext|>",
|
scheduler/scheduler_config.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "MiniMaxH3Scheduler",
|
| 3 |
+
"_diffusers_version": "0.42.0.dev0",
|
| 4 |
+
"shift": 12.0
|
| 5 |
+
}
|
text_connector/config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "PH3ImageTextConnector",
|
| 3 |
+
"_diffusers_version": "0.42.0.dev0",
|
| 4 |
+
"hidden_state_indices": [
|
| 5 |
+
13,
|
| 6 |
+
19,
|
| 7 |
+
25,
|
| 8 |
+
31,
|
| 9 |
+
36
|
| 10 |
+
],
|
| 11 |
+
"out_channels": 5120,
|
| 12 |
+
"text_hidden_size": 2560
|
| 13 |
+
}
|
vae/encoder.safetensors → text_connector/diffusion_pytorch_model.safetensors
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4c4ad8cbf37db8a2da22cdd9905e566e259cf3477ea242f6aee1cf3fb695f070
|
| 3 |
+
size 262308352
|
tokenizer/chat_template.jinja
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- if tools %}
|
| 2 |
+
{{- '<|im_start|>system\n' }}
|
| 3 |
+
{%- if messages[0].role == 'system' %}
|
| 4 |
+
{%- if messages[0].content is string %}
|
| 5 |
+
{{- messages[0].content }}
|
| 6 |
+
{%- else %}
|
| 7 |
+
{%- for content in messages[0].content %}
|
| 8 |
+
{%- if 'text' in content %}
|
| 9 |
+
{{- content.text }}
|
| 10 |
+
{%- endif %}
|
| 11 |
+
{%- endfor %}
|
| 12 |
+
{%- endif %}
|
| 13 |
+
{{- '\n\n' }}
|
| 14 |
+
{%- endif %}
|
| 15 |
+
{{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
|
| 16 |
+
{%- for tool in tools %}
|
| 17 |
+
{{- "\n" }}
|
| 18 |
+
{{- tool | tojson }}
|
| 19 |
+
{%- endfor %}
|
| 20 |
+
{{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
|
| 21 |
+
{%- else %}
|
| 22 |
+
{%- if messages[0].role == 'system' %}
|
| 23 |
+
{{- '<|im_start|>system\n' }}
|
| 24 |
+
{%- if messages[0].content is string %}
|
| 25 |
+
{{- messages[0].content }}
|
| 26 |
+
{%- else %}
|
| 27 |
+
{%- for content in messages[0].content %}
|
| 28 |
+
{%- if 'text' in content %}
|
| 29 |
+
{{- content.text }}
|
| 30 |
+
{%- endif %}
|
| 31 |
+
{%- endfor %}
|
| 32 |
+
{%- endif %}
|
| 33 |
+
{{- '<|im_end|>\n' }}
|
| 34 |
+
{%- endif %}
|
| 35 |
+
{%- endif %}
|
| 36 |
+
{%- set image_count = namespace(value=0) %}
|
| 37 |
+
{%- set video_count = namespace(value=0) %}
|
| 38 |
+
{%- for message in messages %}
|
| 39 |
+
{%- if message.role == "user" %}
|
| 40 |
+
{{- '<|im_start|>' + message.role + '\n' }}
|
| 41 |
+
{%- if message.content is string %}
|
| 42 |
+
{{- message.content }}
|
| 43 |
+
{%- else %}
|
| 44 |
+
{%- for content in message.content %}
|
| 45 |
+
{%- if content.type == 'image' or 'image' in content or 'image_url' in content %}
|
| 46 |
+
{%- set image_count.value = image_count.value + 1 %}
|
| 47 |
+
{%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}
|
| 48 |
+
<|vision_start|><|image_pad|><|vision_end|>
|
| 49 |
+
{%- elif content.type == 'video' or 'video' in content %}
|
| 50 |
+
{%- set video_count.value = video_count.value + 1 %}
|
| 51 |
+
{%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}
|
| 52 |
+
<|vision_start|><|video_pad|><|vision_end|>
|
| 53 |
+
{%- elif 'text' in content %}
|
| 54 |
+
{{- content.text }}
|
| 55 |
+
{%- endif %}
|
| 56 |
+
{%- endfor %}
|
| 57 |
+
{%- endif %}
|
| 58 |
+
{{- '<|im_end|>\n' }}
|
| 59 |
+
{%- elif message.role == "assistant" %}
|
| 60 |
+
{{- '<|im_start|>' + message.role + '\n' }}
|
| 61 |
+
{%- if message.content is string %}
|
| 62 |
+
{{- message.content }}
|
| 63 |
+
{%- else %}
|
| 64 |
+
{%- for content_item in message.content %}
|
| 65 |
+
{%- if 'text' in content_item %}
|
| 66 |
+
{{- content_item.text }}
|
| 67 |
+
{%- endif %}
|
| 68 |
+
{%- endfor %}
|
| 69 |
+
{%- endif %}
|
| 70 |
+
{%- if message.tool_calls %}
|
| 71 |
+
{%- for tool_call in message.tool_calls %}
|
| 72 |
+
{%- if (loop.first and message.content) or (not loop.first) %}
|
| 73 |
+
{{- '\n' }}
|
| 74 |
+
{%- endif %}
|
| 75 |
+
{%- if tool_call.function %}
|
| 76 |
+
{%- set tool_call = tool_call.function %}
|
| 77 |
+
{%- endif %}
|
| 78 |
+
{{- '<tool_call>\n{"name": "' }}
|
| 79 |
+
{{- tool_call.name }}
|
| 80 |
+
{{- '", "arguments": ' }}
|
| 81 |
+
{%- if tool_call.arguments is string %}
|
| 82 |
+
{{- tool_call.arguments }}
|
| 83 |
+
{%- else %}
|
| 84 |
+
{{- tool_call.arguments | tojson }}
|
| 85 |
+
{%- endif %}
|
| 86 |
+
{{- '}\n</tool_call>' }}
|
| 87 |
+
{%- endfor %}
|
| 88 |
+
{%- endif %}
|
| 89 |
+
{{- '<|im_end|>\n' }}
|
| 90 |
+
{%- elif message.role == "tool" %}
|
| 91 |
+
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
|
| 92 |
+
{{- '<|im_start|>user' }}
|
| 93 |
+
{%- endif %}
|
| 94 |
+
{{- '\n<tool_response>\n' }}
|
| 95 |
+
{%- if message.content is string %}
|
| 96 |
+
{{- message.content }}
|
| 97 |
+
{%- else %}
|
| 98 |
+
{%- for content in message.content %}
|
| 99 |
+
{%- if content.type == 'image' or 'image' in content or 'image_url' in content %}
|
| 100 |
+
{%- set image_count.value = image_count.value + 1 %}
|
| 101 |
+
{%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}
|
| 102 |
+
<|vision_start|><|image_pad|><|vision_end|>
|
| 103 |
+
{%- elif content.type == 'video' or 'video' in content %}
|
| 104 |
+
{%- set video_count.value = video_count.value + 1 %}
|
| 105 |
+
{%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}
|
| 106 |
+
<|vision_start|><|video_pad|><|vision_end|>
|
| 107 |
+
{%- elif 'text' in content %}
|
| 108 |
+
{{- content.text }}
|
| 109 |
+
{%- endif %}
|
| 110 |
+
{%- endfor %}
|
| 111 |
+
{%- endif %}
|
| 112 |
+
{{- '\n</tool_response>' }}
|
| 113 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 114 |
+
{{- '<|im_end|>\n' }}
|
| 115 |
+
{%- endif %}
|
| 116 |
+
{%- endif %}
|
| 117 |
+
{%- endfor %}
|
| 118 |
+
{%- if add_generation_prompt %}
|
| 119 |
+
{{- '<|im_start|>assistant\n' }}
|
| 120 |
+
{%- endif %}
|
text_encoder/h3_connector.safetensors → tokenizer/tokenizer.json
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506
|
| 3 |
+
size 11422650
|
tokenizer/tokenizer_config.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": null,
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "<|im_end|>",
|
| 7 |
+
"errors": "replace",
|
| 8 |
+
"extra_special_tokens": [
|
| 9 |
+
"<|im_start|>",
|
| 10 |
+
"<|im_end|>",
|
| 11 |
+
"<|object_ref_start|>",
|
| 12 |
+
"<|object_ref_end|>",
|
| 13 |
+
"<|box_start|>",
|
| 14 |
+
"<|box_end|>",
|
| 15 |
+
"<|quad_start|>",
|
| 16 |
+
"<|quad_end|>",
|
| 17 |
+
"<|vision_start|>",
|
| 18 |
+
"<|vision_end|>",
|
| 19 |
+
"<|vision_pad|>",
|
| 20 |
+
"<|image_pad|>",
|
| 21 |
+
"<|video_pad|>"
|
| 22 |
+
],
|
| 23 |
+
"is_local": true,
|
| 24 |
+
"local_files_only": false,
|
| 25 |
+
"model_max_length": 262144,
|
| 26 |
+
"pad_token": "<|endoftext|>",
|
| 27 |
+
"processor_class": "Qwen3VLProcessor",
|
| 28 |
+
"split_special_tokens": false,
|
| 29 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 30 |
+
"unk_token": null
|
| 31 |
+
}
|
transformer/config.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "MiniMaxH3Transformer3DModel",
|
| 3 |
"_diffusers_version": "0.42.0.dev0",
|
| 4 |
-
"_name_or_path": "MiniMaxAI/MiniMax-H3",
|
| 5 |
"attention_head_dim": 128,
|
| 6 |
"audio_in_channels": 32,
|
| 7 |
"ffn_dim": 14336,
|
|
@@ -23,5 +22,6 @@
|
|
| 23 |
"rope_theta": 10000.0,
|
| 24 |
"text_dim": 5120,
|
| 25 |
"time_embed_dim": 2688,
|
| 26 |
-
"time_embed_hidden_dim": 5376
|
| 27 |
-
|
|
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "MiniMaxH3Transformer3DModel",
|
| 3 |
"_diffusers_version": "0.42.0.dev0",
|
|
|
|
| 4 |
"attention_head_dim": 128,
|
| 5 |
"audio_in_channels": 32,
|
| 6 |
"ffn_dim": 14336,
|
|
|
|
| 22 |
"rope_theta": 10000.0,
|
| 23 |
"text_dim": 5120,
|
| 24 |
"time_embed_dim": 2688,
|
| 25 |
+
"time_embed_hidden_dim": 5376,
|
| 26 |
+
"adaln_rank": 16
|
| 27 |
+
}
|
transformer/diffusion_pytorch_model-00001-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ee04c671142cf1d01db9915cac121ed03e66a5ac57f5045a27f2ba365f5a29bb
|
| 3 |
+
size 9811366304
|
transformer/diffusion_pytorch_model-00002-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:baac3a6236b98b6985d704e61416e03acd384cb74c27577467b12b1036f1496e
|
| 3 |
+
size 9950850184
|
transformer/diffusion_pytorch_model-00003-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ab323a00c5ba68503a39c604b062ddf637e3a6c4501d7c3ed35bc48f8e1e08b5
|
| 3 |
+
size 9950850184
|
transformer/diffusion_pytorch_model-00004-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34905c0ab5543e72779c5490569ba0d5250c428b2b5c4bd07f67c4aae45632f5
|
| 3 |
+
size 9944247336
|
transformer/diffusion_pytorch_model-00005-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:41899fb95e0333b74dedcecf8e35f66046c58f850d0b42607f8c0256253ec31d
|
| 3 |
+
size 931469504
|
transformer/diffusion_pytorch_model.safetensors.index.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
transformer/fact_adaln.json
DELETED
|
@@ -1,36 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"rank": 16,
|
| 3 |
-
"out_dtype": "bfloat16",
|
| 4 |
-
"rel_err_max": 6.322517265289207e-07,
|
| 5 |
-
"rel_err_mean": 6.02509869622736e-07,
|
| 6 |
-
"dense_bf16_rel_err_max": 0.0017569654155522585,
|
| 7 |
-
"dense_bf16_rel_err_mean": 0.0016905990871600807,
|
| 8 |
-
"spectrum": [
|
| 9 |
-
1.0,
|
| 10 |
-
0.0870301851788273,
|
| 11 |
-
0.010991975064251243,
|
| 12 |
-
0.004357309018194422,
|
| 13 |
-
4.318734045821265e-05,
|
| 14 |
-
4.41002669873321e-06,
|
| 15 |
-
3.040825669553829e-07,
|
| 16 |
-
8.305876252014749e-08,
|
| 17 |
-
1.328276543180485e-09,
|
| 18 |
-
7.322764526377398e-10,
|
| 19 |
-
1.700334232753885e-10,
|
| 20 |
-
1.763900462704404e-12,
|
| 21 |
-
8.614475412219741e-14,
|
| 22 |
-
2.3521526272522684e-14,
|
| 23 |
-
1.4375947084497254e-14,
|
| 24 |
-
1.4100802766553918e-14,
|
| 25 |
-
8.544104132112073e-15,
|
| 26 |
-
6.684395506601792e-15,
|
| 27 |
-
5.591993323991046e-15,
|
| 28 |
-
5.049919930769181e-15,
|
| 29 |
-
4.781708032946834e-15,
|
| 30 |
-
4.484825333740503e-15,
|
| 31 |
-
4.331219812921819e-15,
|
| 32 |
-
4.317491273965274e-15
|
| 33 |
-
],
|
| 34 |
-
"n_fit": 200001,
|
| 35 |
-
"n_val": 20014
|
| 36 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vae/config.json
CHANGED
|
@@ -1,9 +1,6 @@
|
|
| 1 |
{
|
| 2 |
-
"_class_name": "
|
| 3 |
-
"_diffusers_version": "0.
|
| 4 |
-
"in_channels": 3,
|
| 5 |
-
"out_channels": 3,
|
| 6 |
-
"latent_channels": 24,
|
| 7 |
"block_out_channels": [
|
| 8 |
128,
|
| 9 |
256,
|
|
@@ -12,36 +9,16 @@
|
|
| 12 |
512,
|
| 13 |
1024
|
| 14 |
],
|
| 15 |
-
"layers_per_block": 2,
|
| 16 |
-
"spatial_downsample_factors": [
|
| 17 |
-
2,
|
| 18 |
-
2,
|
| 19 |
-
2,
|
| 20 |
-
2,
|
| 21 |
-
1,
|
| 22 |
-
1
|
| 23 |
-
],
|
| 24 |
-
"temporal_downsample_factors": [
|
| 25 |
-
1,
|
| 26 |
-
2,
|
| 27 |
-
2,
|
| 28 |
-
1,
|
| 29 |
-
1,
|
| 30 |
-
1
|
| 31 |
-
],
|
| 32 |
-
"norm_num_groups": 32,
|
| 33 |
-
"norm_eps": 1e-06,
|
| 34 |
-
"spatial_padding_mode": "reflect",
|
| 35 |
-
"decoder_num_layers": 36,
|
| 36 |
-
"decoder_num_attention_heads": 32,
|
| 37 |
"decoder_attention_head_dim": 64,
|
| 38 |
-
"decoder_num_register_tokens": 4,
|
| 39 |
"decoder_ffn_mult": 4,
|
| 40 |
-
"decoder_rope_theta": 100.0,
|
| 41 |
-
"decoder_rope_dim_ratio": 0.75,
|
| 42 |
"decoder_norm_eps": 1e-05,
|
| 43 |
-
"
|
| 44 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
"latents_mean": [
|
| 46 |
0.858090341091156,
|
| 47 |
-0.9606591463088989,
|
|
@@ -93,5 +70,26 @@
|
|
| 93 |
3.1627357006073,
|
| 94 |
2.2816812992095947,
|
| 95 |
2.6127843856811523
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
]
|
| 97 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_class_name": "AutoencoderKLPH3Image",
|
| 3 |
+
"_diffusers_version": "0.42.0.dev0",
|
|
|
|
|
|
|
|
|
|
| 4 |
"block_out_channels": [
|
| 5 |
128,
|
| 6 |
256,
|
|
|
|
| 9 |
512,
|
| 10 |
1024
|
| 11 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
"decoder_attention_head_dim": 64,
|
|
|
|
| 13 |
"decoder_ffn_mult": 4,
|
|
|
|
|
|
|
| 14 |
"decoder_norm_eps": 1e-05,
|
| 15 |
+
"decoder_num_attention_heads": 32,
|
| 16 |
+
"decoder_num_layers": 36,
|
| 17 |
+
"decoder_num_register_tokens": 4,
|
| 18 |
+
"decoder_rope_dim_ratio": 0.75,
|
| 19 |
+
"decoder_rope_theta": 100.0,
|
| 20 |
+
"in_channels": 3,
|
| 21 |
+
"latent_channels": 24,
|
| 22 |
"latents_mean": [
|
| 23 |
0.858090341091156,
|
| 24 |
-0.9606591463088989,
|
|
|
|
| 70 |
3.1627357006073,
|
| 71 |
2.2816812992095947,
|
| 72 |
2.6127843856811523
|
| 73 |
+
],
|
| 74 |
+
"layers_per_block": 2,
|
| 75 |
+
"norm_eps": 1e-06,
|
| 76 |
+
"norm_num_groups": 32,
|
| 77 |
+
"out_channels": 3,
|
| 78 |
+
"spatial_downsample_factors": [
|
| 79 |
+
2,
|
| 80 |
+
2,
|
| 81 |
+
2,
|
| 82 |
+
2,
|
| 83 |
+
1,
|
| 84 |
+
1
|
| 85 |
+
],
|
| 86 |
+
"spatial_padding_mode": "reflect",
|
| 87 |
+
"temporal_downsample_factors": [
|
| 88 |
+
1,
|
| 89 |
+
2,
|
| 90 |
+
2,
|
| 91 |
+
1,
|
| 92 |
+
1,
|
| 93 |
+
1
|
| 94 |
]
|
| 95 |
+
}
|
decoder/decoder.safetensors → vae/diffusion_pytorch_model.safetensors
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:264964208bea153ca6366570b66d793c75b0fc64716fb6515a41b54e3dce6bf1
|
| 3 |
+
size 5559055392
|