aina-tech commited on
Commit
107aaf2
·
verified ·
1 Parent(s): ad1cb61

Replace transformer with selected step-400 TDM-Unify in BF16

Browse files

Preserve all learned K-conditioning tensors; include compatible loader, shift-3 scheduler and updated inference documentation. Verified exact BF16 tensor serialization, four-sigma forward parity and local generation.

README.md CHANGED
@@ -21,258 +21,66 @@ tags:
21
  - 4-step
22
  ---
23
 
24
- # Anima-Lightning
25
 
26
- **Anima-Lightning** is the public release name for a four-step distilled text-to-image model derived from
27
- [circlestone-labs/Anima](https://huggingface.co/circlestone-labs/Anima).
 
28
 
29
- It keeps the original Anima architecture and Diffusers components while replacing the diffusion transformer weights with four-step distilled weights. The text encoder, tokenizers, text conditioner, VAE, and scheduler follow the upstream Anima pipeline.
 
 
 
 
 
30
 
31
- This repository contains the public BF16 Diffusers checkpoint. The name “Anima-Lightning” refers to this release and is not the name of an upstream architecture or Diffusers component.
32
 
33
- Anima-Lightning is intended for anime, illustration, and other non-photorealistic artwork. It is not optimized for photorealism.
 
 
34
 
35
- This repository is not an official CircleStone Labs or NVIDIA release.
36
-
37
- ## Architecture
38
-
39
- Anima-Lightning uses the upstream Anima modular architecture:
40
-
41
- - Pipeline: `AnimaModularPipeline`
42
- - Transformer: `CosmosTransformer3DModel`
43
- - Text encoder: `Qwen3Model`
44
- - Tokenizer: `Qwen2Tokenizer`
45
- - T5 tokenizer: `T5Tokenizer`
46
- - Text conditioner: `AnimaTextConditioner`
47
- - VAE: `AutoencoderKLQwenImage`
48
- - Scheduler: `FlowMatchEulerDiscreteScheduler`
49
-
50
- ## Required four-step inference
51
-
52
- This checkpoint must be sampled with the distilled four-step trajectory:
53
-
54
- - Model evaluations: `4`
55
- - Sigma schedule: `[1.0, 0.75, 0.5, 0.25]`
56
- - Terminal sigma: `0.0` (appended by the scheduler)
57
- - Runtime CFG: `1.0`
58
- - Scheduler: `FlowMatchEulerDiscreteScheduler`
59
- - Scheduler shift: `1.0`
60
- - Training timesteps: `1000`
61
- - Recommended resolution: `1024 x 1024`
62
- - Recommended precision: `bfloat16`
63
- - Maximum sequence length: `512`
64
-
65
- This is not the normal 30-50-step upstream Anima runtime. Running this checkpoint with settings such as 40 steps and CFG 5.0 will produce incorrect or degraded output.
66
-
67
- `distilled_generation_config.json` documents this runtime contract, but Diffusers does not automatically apply that file during inference. Pass the four-step sigma schedule and use CFG 1.0 as shown below.
68
-
69
- ## Installation
70
-
71
- Anima currently requires a recent Diffusers build containing the Anima modular pipeline and Cosmos text-to-image components.
72
-
73
- ```bash
74
- pip install -U git+https://github.com/huggingface/diffusers.git
75
- pip install -U transformers accelerate safetensors sentencepiece protobuf
76
- ```
77
-
78
- A recent CUDA-capable PyTorch installation is recommended.
79
-
80
- ## Generation
81
 
82
  ```python
 
 
83
  import torch
84
  from diffusers import AnimaModularPipeline
85
 
 
 
 
86
 
87
- repo_id = "aina-tech/Anima-Lightning"
88
-
89
- pipe = AnimaModularPipeline.from_pretrained(
90
- repo_id,
91
- torch_dtype=torch.bfloat16,
92
- )
93
-
94
- # Load all original Anima components and the distilled transformer from this
95
- # repository. Passing the repository explicitly also avoids stale local paths
96
- # embedded by older Modular Diffusers save formats.
97
  pipe.load_components(
98
- [
99
- "text_encoder",
100
- "tokenizer",
101
- "t5_tokenizer",
102
- "text_conditioner",
103
- "transformer",
104
- "scheduler",
105
- "vae",
106
- ],
107
- pretrained_model_name_or_path=repo_id,
108
- torch_dtype=torch.bfloat16,
109
  )
110
-
111
- pipe.to("cuda")
112
-
113
- # The distilled runtime uses one conditional transformer pass per step.
114
  pipe.guider.guidance_scale = 1.0
115
-
116
- prompt = (
117
- "masterpiece, best quality, score_8, safe, anime illustration, "
118
- "solo shrine maiden standing in a rainlit courtyard, "
119
- "wide shot, reflections, evening light, detailed background"
120
- )
121
-
122
- generator = torch.Generator(device="cpu").manual_seed(0)
123
-
124
  image = pipe(
125
- prompt=prompt,
126
- negative_prompt=None,
127
- height=1024,
128
- width=1024,
129
- num_inference_steps=4,
130
- sigmas=[1.0, 0.75, 0.5, 0.25],
131
  max_sequence_length=512,
132
- generator=generator,
133
  output="images",
134
  )[0]
135
-
136
  image.save("anima_lightning.png")
137
  ```
138
 
139
- ### Why the sigmas are explicit
140
-
141
- The model was distilled for exactly four transitions:
142
-
143
- ```text
144
- 1.00 -> 0.75
145
- 0.75 -> 0.50
146
- 0.50 -> 0.25
147
- 0.25 -> 0.00
148
- ```
149
-
150
- Passing the sigmas explicitly prevents an accidental fallback to the normal full-step Anima schedule. The included scheduler performs the Euler updates and appends the terminal `0.0` sigma.
151
-
152
- Do not replace the included scheduler with a scheduler intended for another model family.
153
-
154
- ## Guidance and negative prompts
155
-
156
- The recommended runtime uses:
157
-
158
- ```python
159
- pipe.guider.guidance_scale = 1.0
160
- ```
161
-
162
- At CFG 1.0, inference uses one conditional transformer evaluation per diffusion step. A negative-prompt branch is not used:
163
-
164
- ```python
165
- negative_prompt = None
166
- ```
167
-
168
- Using CFG greater than 1.0 changes the runtime from the distilled trajectory, increases computation, and may degrade output.
169
-
170
- ## Lower-memory loading
171
-
172
- If the complete pipeline does not fit in GPU memory, use CPU offloading instead of `pipe.to("cuda")`:
173
-
174
- ```python
175
- pipe.enable_model_cpu_offload()
176
- pipe.vae.enable_tiling()
177
- pipe.vae.enable_slicing()
178
- ```
179
-
180
- CPU offloading reduces peak GPU memory use but makes generation slower.
181
-
182
- ## Prompting
183
-
184
- Anima-Lightning accepts Danbooru-style tags, natural-language descriptions, or a mixture of both.
185
-
186
- A useful prompt structure is:
187
-
188
- ```text
189
- [quality and safety tags], [subject], [character], [series or artist], [scene and details]
190
- ```
191
-
192
- Tips:
193
-
194
- - Put quality, style, and safety tags near the beginning.
195
- - Use lowercase tags.
196
- - Use spaces instead of underscores, except for score tags such as `score_8`.
197
- - Prefix artist tags with `@`.
198
- - Describe appearance, pose, composition, lighting, and background explicitly.
199
- - For multiple characters, describe each character separately.
200
- - Very short prompts may provide weak subject control.
201
-
202
- ## Incorrect usage
203
-
204
- Do not use upstream full-step settings:
205
-
206
- ```python
207
- # Incorrect for Anima-Lightning
208
- image = pipe(
209
- prompt=prompt,
210
- num_inference_steps=40,
211
- guidance_scale=5.0,
212
- ).images[0]
213
- ```
214
-
215
- Do not rely on the pipeline's default step count:
216
-
217
- ```python
218
- # Incorrect: this may select the normal full-step default.
219
- image = pipe(prompt)
220
- ```
221
-
222
- Use the explicit distilled runtime:
223
-
224
- ```python
225
- pipe.guider.guidance_scale = 1.0
226
-
227
- image = pipe(
228
- prompt=prompt,
229
- negative_prompt=None,
230
- height=1024,
231
- width=1024,
232
- num_inference_steps=4,
233
- sigmas=[1.0, 0.75, 0.5, 0.25],
234
- max_sequence_length=512,
235
- output="images",
236
- )[0]
237
- ```
238
-
239
- ## Reproducibility
240
-
241
- For deterministic seed handling, use a CPU generator:
242
-
243
- ```python
244
- generator = torch.Generator(device="cpu").manual_seed(42)
245
- ```
246
-
247
- Exact output can still vary between PyTorch, CUDA, Diffusers, and GPU versions.
248
-
249
- ## Limitations
250
-
251
- - The model is designed for anime, illustration, and stylized artwork.
252
- - It is not optimized for photorealism.
253
- - It requires the four-step distilled runtime described above.
254
- - Text rendering may be unreliable, especially for long phrases.
255
- - Hands, complex anatomy, and dense multi-character scenes may contain errors.
256
- - Short or underspecified prompts may produce weak subject control.
257
- - Results differ from upstream Anima because the transformer weights are distilled.
258
- - Alternative schedulers, higher CFG, and full-step sampling are not validated.
259
- - This model has not been optimized for the Hugging Face Inference API.
260
-
261
- ## License
262
-
263
- This model is derived from [circlestone-labs/Anima](https://huggingface.co/circlestone-labs/Anima) and is distributed under the CircleStone Labs Non-Commercial License.
264
-
265
- Anima is itself derived from [nvidia/Cosmos-Predict2-2B-Text2Image](https://huggingface.co/nvidia/Cosmos-Predict2-2B-Text2Image), so NVIDIA's Open Model License Agreement may also apply.
266
-
267
- Review the repository's `LICENSE.md` and `NOTICE.md` before using, redistributing, or publishing the model. This summary is not legal advice.
268
-
269
- ## Credits
270
-
271
- Anima-Lightning builds on:
272
-
273
- - [CircleStone Labs Anima](https://huggingface.co/circlestone-labs/Anima)
274
- - [NVIDIA Cosmos Predict2](https://huggingface.co/nvidia/Cosmos-Predict2-2B-Text2Image)
275
- - [Hugging Face Diffusers](https://github.com/huggingface/diffusers)
276
 
277
- Thanks to the upstream authors and open-source contributors.
278
 
 
 
 
 
 
21
  - 4-step
22
  ---
23
 
24
+ # Anima-Lightning — production step 400, BF16
25
 
26
+ This version contains the selected **base Anima TDM-Unify step-400** transformer,
27
+ converted tensor-for-tensor from FP32 to BF16. Its learned sampling-step conditioning
28
+ branch is preserved. The shared text encoders, tokenizers and VAE are unchanged.
29
 
30
+ This update replaces the earlier checkpoint and its shift-1 inference recipe.
31
+ Use **4 steps, CFG 1, scheduler shift 3**, with raw sigmas `[1, .75, .5, .25]`.
32
+ The scheduler applies the shift once, producing `[1, .9, .75, .5, 0]`.
33
+ The included custom transformer defaults to K=4 conditioning. A plain
34
+ `CosmosTransformer3DModel` cannot load the full checkpoint correctly: it would drop
35
+ the learned K branch. Use the supplied module as shown below.
36
 
37
+ ## Local loading and generation
38
 
39
+ Requires PyTorch with CUDA/BF16, Diffusers with Anima modular support, Transformers,
40
+ Accelerate and Safetensors. Validated environment: Diffusers 0.39.0,
41
+ Transformers 5.7.0 and PyTorch 2.12.1+cu130.
42
 
43
+ Download the complete repository with `hf download aina-tech/Anima-Lightning --local-dir Anima-Lightning`.
44
+ Review the included Python module before importing it.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  ```python
47
+ from pathlib import Path
48
+ import sys
49
  import torch
50
  from diffusers import AnimaModularPipeline
51
 
52
+ local = str(Path("Anima-Lightning").resolve())
53
+ sys.path.insert(0, local)
54
+ import anima_lightning_transformer
55
 
56
+ pipe = AnimaModularPipeline.from_pretrained(local, local_files_only=True)
 
 
 
 
 
 
 
 
 
57
  pipe.load_components(
58
+ ["text_encoder", "tokenizer", "t5_tokenizer", "text_conditioner",
59
+ "transformer", "scheduler", "vae"],
60
+ pretrained_model_name_or_path=local,
61
+ local_files_only=True, torch_dtype=torch.bfloat16,
 
 
 
 
 
 
 
62
  )
 
 
 
 
63
  pipe.guider.guidance_scale = 1.0
64
+ pipe.to("cuda")
 
 
 
 
 
 
 
 
65
  image = pipe(
66
+ prompt="anime illustration, a lighthouse above a calm sea, sunset",
67
+ negative_prompt=None, width=1024, height=1024,
68
+ num_inference_steps=4, sigmas=[1.0, 0.75, 0.5, 0.25],
 
 
 
69
  max_sequence_length=512,
70
+ generator=torch.Generator(device="cpu").manual_seed(42),
71
  output="images",
72
  )[0]
 
73
  image.save("anima_lightning.png")
74
  ```
75
 
76
+ Do not use the former shift-1 recipe or standard full-step CFG5 inference.
77
+ The saved transformer tensors are BF16; results can differ from the FP32 checkpoint
78
+ and from other sampling implementations. `step400_export.json` records source hashes,
79
+ the complete tensor inventory, and the BF16 export validation.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
 
81
+ ## Model and license
82
 
83
+ Derived from CircleStone Labs Anima and NVIDIA Cosmos Predict2. This is an independent
84
+ distilled release, intended for anime and illustration. Anatomy, complex compositions,
85
+ and text rendering can be imperfect. See the unchanged `LICENSE.md` and `NOTICE.md`.
86
+ The CircleStone Labs non-commercial license and applicable upstream terms remain in effect.
anima_lightning_transformer.py ADDED
@@ -0,0 +1,334 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from contextlib import contextmanager
4
+ from typing import Any, Iterator
5
+
6
+ import torch
7
+ from torch import nn
8
+
9
+ from diffusers.models.transformers.transformer_cosmos import (
10
+ CosmosEmbedding,
11
+ CosmosTransformer3DModel,
12
+ )
13
+
14
+
15
+ TDM_NUM_STEPS_ARGUMENT = "tdm_num_steps"
16
+
17
+
18
+ def shifted_reciprocal_condition(
19
+ num_steps: int | torch.Tensor,
20
+ *,
21
+ shift: float,
22
+ device: torch.device | str | None = None,
23
+ ) -> torch.Tensor:
24
+ """Map a sampling-step count to its shifted final nonterminal sigma.
25
+
26
+ For a raw FlowMatch schedule, the final nonterminal boundary is ``1 / K``.
27
+ Applying the scheduler's rational shift gives
28
+
29
+ shift * (1 / K) / (1 + (shift - 1) * (1 / K))
30
+ = shift / (K + shift - 1).
31
+
32
+ The returned tensor is float32 because ``CosmosEmbedding.time_proj`` builds
33
+ its sinusoidal features in float32 before casting them to the model input.
34
+ """
35
+
36
+ if not isinstance(shift, (int, float)) or not torch.isfinite(
37
+ torch.tensor(float(shift))
38
+ ):
39
+ raise ValueError("shift must be finite")
40
+ if float(shift) <= 0.0:
41
+ raise ValueError("shift must be positive")
42
+
43
+ steps = torch.as_tensor(num_steps, device=device)
44
+ if steps.dtype == torch.bool or steps.is_complex():
45
+ raise ValueError("num_steps must contain positive integers")
46
+ steps_float = steps.to(dtype=torch.float32)
47
+ if not torch.isfinite(steps_float).all():
48
+ raise ValueError("num_steps must be finite")
49
+ if (steps_float <= 0).any() or not torch.equal(
50
+ steps_float, steps_float.round()
51
+ ):
52
+ raise ValueError("num_steps must contain positive integers")
53
+
54
+ shift_tensor = torch.as_tensor(
55
+ float(shift), device=steps_float.device, dtype=torch.float32
56
+ )
57
+ return shift_tensor / (steps_float + shift_tensor - 1.0)
58
+
59
+
60
+ class CosmosTDMUnifyEmbedding(nn.Module):
61
+ """Cosmos time embedding with an additive, sampling-step-aware branch.
62
+
63
+ The original ``CosmosEmbedding`` children remain registered under
64
+ ``time_proj``, ``t_embedder``, and ``norm``. Consequently, converting a
65
+ model does not rename any pretrained ``time_embed.*`` state-dict keys.
66
+ The new full ``CosmosEmbedding`` branch is registered as ``k_embed``.
67
+ """
68
+
69
+ def __init__(
70
+ self,
71
+ original: CosmosEmbedding,
72
+ *,
73
+ shift: float,
74
+ initial_scale: float = 0.01,
75
+ ) -> None:
76
+ super().__init__()
77
+ if not isinstance(original, CosmosEmbedding):
78
+ raise TypeError("original must be a CosmosEmbedding")
79
+ if not torch.isfinite(torch.tensor(float(initial_scale))):
80
+ raise ValueError("initial_scale must be finite")
81
+
82
+ # Preserve the original module hierarchy and parameter names exactly.
83
+ self.time_proj = original.time_proj
84
+ self.t_embedder = original.t_embedder
85
+ self.norm = original.norm
86
+
87
+ embedding_dim = self.t_embedder.linear_1.in_features
88
+ condition_dim = self.t_embedder.linear_1.out_features
89
+ self.k_embed = CosmosEmbedding(embedding_dim, condition_dim)
90
+ self.k_scale = nn.Parameter(torch.tensor(float(initial_scale)))
91
+ self.shift = float(shift)
92
+ if self.shift <= 0.0 or not torch.isfinite(torch.tensor(self.shift)):
93
+ raise ValueError("shift must be finite and positive")
94
+
95
+ # Runtime-only condition. It deliberately is not persistent model state.
96
+ self._active_num_steps: int | torch.Tensor | None = None
97
+
98
+ @contextmanager
99
+ def use_num_steps(self, num_steps: int | torch.Tensor) -> Iterator[None]:
100
+ previous = self._active_num_steps
101
+ self._active_num_steps = num_steps
102
+ try:
103
+ yield
104
+ finally:
105
+ self._active_num_steps = previous
106
+
107
+ def forward(
108
+ self, hidden_states: torch.Tensor, timestep: torch.Tensor
109
+ ) -> tuple[torch.Tensor, torch.Tensor]:
110
+ if self._active_num_steps is None:
111
+ raise RuntimeError(
112
+ "TDM-Unify sampling steps are unset; pass "
113
+ f"{TDM_NUM_STEPS_ARGUMENT} to the project Cosmos model"
114
+ )
115
+
116
+ timesteps_proj = self.time_proj(timestep).type_as(hidden_states)
117
+ temb = self.t_embedder(timesteps_proj)
118
+ embedded_timestep = self.norm(timesteps_proj)
119
+
120
+ k_condition = self._condition_for_timestep(
121
+ self._active_num_steps, timestep=timestep
122
+ )
123
+ k_temb, k_embedded_timestep = self.k_embed(hidden_states, k_condition)
124
+ scale = self.k_scale.to(device=temb.device, dtype=temb.dtype)
125
+ return (
126
+ temb + scale * k_temb,
127
+ embedded_timestep + scale * k_embedded_timestep,
128
+ )
129
+
130
+ def _condition_for_timestep(
131
+ self, num_steps: int | torch.Tensor, *, timestep: torch.Tensor
132
+ ) -> torch.Tensor:
133
+ condition = shifted_reciprocal_condition(
134
+ num_steps, shift=self.shift, device=timestep.device
135
+ )
136
+ if condition.ndim == 0:
137
+ return condition.expand(timestep.shape)
138
+ if condition.shape == timestep.shape:
139
+ return condition
140
+ if condition.numel() == timestep.numel():
141
+ return condition.reshape(timestep.shape)
142
+ if condition.ndim == 1 and timestep.ndim == 1:
143
+ if timestep.numel() % condition.numel() == 0:
144
+ repeats = timestep.numel() // condition.numel()
145
+ return condition.repeat_interleave(repeats)
146
+ raise ValueError(
147
+ "num_steps must be scalar, match timestep, or provide one value per "
148
+ "batch item that evenly expands across flattened video frames"
149
+ )
150
+
151
+
152
+ def enable_cosmos_tdm_unify(
153
+ transformer: CosmosTransformer3DModel,
154
+ *,
155
+ shift: float,
156
+ initial_scale: float = 0.01,
157
+ ) -> CosmosTDMUnifyEmbedding:
158
+ """Install K conditioning without changing pretrained time-embedding keys."""
159
+
160
+ if not isinstance(transformer, CosmosTransformer3DModel):
161
+ raise TypeError("transformer must be a CosmosTransformer3DModel")
162
+ if isinstance(transformer.time_embed, CosmosTDMUnifyEmbedding):
163
+ if transformer.time_embed.shift != float(shift):
164
+ raise ValueError(
165
+ "TDM-Unify conditioning is already enabled with another shift"
166
+ )
167
+ return transformer.time_embed
168
+
169
+ transformer.time_embed = CosmosTDMUnifyEmbedding(
170
+ transformer.time_embed,
171
+ shift=shift,
172
+ initial_scale=initial_scale,
173
+ )
174
+ return transformer.time_embed
175
+
176
+
177
+ @contextmanager
178
+ def use_cosmos_tdm_unify_steps(
179
+ transformer: CosmosTransformer3DModel, num_steps: int | torch.Tensor
180
+ ) -> Iterator[None]:
181
+ """Apply a K condition to an already converted Cosmos model for one call."""
182
+
183
+ if not isinstance(transformer.time_embed, CosmosTDMUnifyEmbedding):
184
+ raise RuntimeError("TDM-Unify conditioning has not been enabled")
185
+ with transformer.time_embed.use_num_steps(num_steps):
186
+ yield
187
+
188
+
189
+ class CosmosTDMUnifyTransformer3DModel(CosmosTransformer3DModel):
190
+ """Save/load-compatible Cosmos model with explicit TDM-Unify K input.
191
+
192
+ Use this class for the trainable student and fake-score transformers only.
193
+ The frozen teacher remains the unmodified Diffusers class.
194
+ """
195
+
196
+ @classmethod
197
+ def from_pretrained(
198
+ cls,
199
+ pretrained_model_name_or_path: str | None,
200
+ *model_args: Any,
201
+ **kwargs: Any,
202
+ ) -> CosmosTDMUnifyTransformer3DModel:
203
+ # A base Cosmos checkpoint has no K-branch tensors. Diffusers' meta-device
204
+ # loader leaves such newly introduced parameters on ``meta``. Cosmos also
205
+ # requires its normal low-memory loader for selected FP32 modules, so
206
+ # materialize only the missing project branch after base weights load.
207
+ output_loading_info = bool(kwargs.pop("output_loading_info", False))
208
+ model, loading_info = super().from_pretrained(
209
+ pretrained_model_name_or_path,
210
+ *model_args,
211
+ output_loading_info=True,
212
+ **kwargs,
213
+ )
214
+ model._tdm_unify_loading_info = {
215
+ key: tuple(value) if isinstance(value, list) else value
216
+ for key, value in loading_info.items()
217
+ }
218
+ model._materialize_missing_k_branch()
219
+ if output_loading_info:
220
+ return model, loading_info
221
+ return model
222
+
223
+ def __init__(
224
+ self,
225
+ in_channels: int = 16,
226
+ out_channels: int = 16,
227
+ num_attention_heads: int = 32,
228
+ attention_head_dim: int = 128,
229
+ num_layers: int = 28,
230
+ mlp_ratio: float = 4.0,
231
+ text_embed_dim: int = 1024,
232
+ adaln_lora_dim: int = 256,
233
+ max_size: tuple[int, int, int] = (128, 240, 240),
234
+ patch_size: tuple[int, int, int] = (1, 2, 2),
235
+ rope_scale: tuple[float, float, float] = (2.0, 1.0, 1.0),
236
+ concat_padding_mask: bool = True,
237
+ extra_pos_embed_type: str | None = "learnable",
238
+ use_crossattn_projection: bool = False,
239
+ crossattn_proj_in_channels: int = 1024,
240
+ encoder_hidden_states_channels: int = 1024,
241
+ controlnet_block_every_n: int | None = None,
242
+ img_context_dim_in: int | None = None,
243
+ img_context_num_tokens: int = 256,
244
+ img_context_dim_out: int = 2048,
245
+ tdm_unify_shift: float = 3.0,
246
+ tdm_unify_initial_scale: float = 0.01,
247
+ ) -> None:
248
+ # Keep this signature aligned with Diffusers 0.39.0 so ConfigMixin can
249
+ # reconstruct the project subclass from either a base or Unify config.
250
+ super().__init__(
251
+ in_channels=in_channels,
252
+ out_channels=out_channels,
253
+ num_attention_heads=num_attention_heads,
254
+ attention_head_dim=attention_head_dim,
255
+ num_layers=num_layers,
256
+ mlp_ratio=mlp_ratio,
257
+ text_embed_dim=text_embed_dim,
258
+ adaln_lora_dim=adaln_lora_dim,
259
+ max_size=max_size,
260
+ patch_size=patch_size,
261
+ rope_scale=rope_scale,
262
+ concat_padding_mask=concat_padding_mask,
263
+ extra_pos_embed_type=extra_pos_embed_type,
264
+ use_crossattn_projection=use_crossattn_projection,
265
+ crossattn_proj_in_channels=crossattn_proj_in_channels,
266
+ encoder_hidden_states_channels=encoder_hidden_states_channels,
267
+ controlnet_block_every_n=controlnet_block_every_n,
268
+ img_context_dim_in=img_context_dim_in,
269
+ img_context_num_tokens=img_context_num_tokens,
270
+ img_context_dim_out=img_context_dim_out,
271
+ )
272
+ enable_cosmos_tdm_unify(
273
+ self,
274
+ shift=tdm_unify_shift,
275
+ initial_scale=tdm_unify_initial_scale,
276
+ )
277
+ self.register_to_config(
278
+ tdm_unify_shift=float(tdm_unify_shift),
279
+ tdm_unify_initial_scale=float(tdm_unify_initial_scale),
280
+ )
281
+
282
+ def _materialize_missing_k_branch(self) -> None:
283
+ if not any(
284
+ parameter.is_meta for parameter in self.time_embed.k_embed.parameters()
285
+ ):
286
+ if not self.time_embed.k_scale.is_meta:
287
+ return
288
+
289
+ reference = self.time_embed.t_embedder.linear_1.weight
290
+ if reference.is_meta:
291
+ raise RuntimeError("Base Cosmos time embedding was not materialized")
292
+ embedding_dim = self.time_embed.t_embedder.linear_1.in_features
293
+ condition_dim = self.time_embed.t_embedder.linear_1.out_features
294
+
295
+ if any(
296
+ parameter.is_meta for parameter in self.time_embed.k_embed.parameters()
297
+ ):
298
+ self.time_embed.k_embed = CosmosEmbedding(
299
+ embedding_dim, condition_dim
300
+ ).to(device=reference.device, dtype=reference.dtype)
301
+ if self.time_embed.k_scale.is_meta:
302
+ initial_scale = float(self.config.tdm_unify_initial_scale)
303
+ self.time_embed.k_scale = nn.Parameter(
304
+ torch.tensor(
305
+ initial_scale, device=reference.device, dtype=reference.dtype
306
+ )
307
+ )
308
+
309
+ def forward(
310
+ self,
311
+ hidden_states: torch.Tensor,
312
+ timestep: torch.Tensor,
313
+ encoder_hidden_states: torch.Tensor,
314
+ block_controlnet_hidden_states: list[torch.Tensor] | None = None,
315
+ attention_mask: torch.Tensor | None = None,
316
+ fps: int | None = None,
317
+ condition_mask: torch.Tensor | None = None,
318
+ padding_mask: torch.Tensor | None = None,
319
+ return_dict: bool = True,
320
+ *,
321
+ tdm_num_steps: int | torch.Tensor = 4,
322
+ ) -> Any:
323
+ with use_cosmos_tdm_unify_steps(self, tdm_num_steps):
324
+ return super().forward(
325
+ hidden_states=hidden_states,
326
+ timestep=timestep,
327
+ encoder_hidden_states=encoder_hidden_states,
328
+ block_controlnet_hidden_states=block_controlnet_hidden_states,
329
+ attention_mask=attention_mask,
330
+ fps=fps,
331
+ condition_mask=condition_mask,
332
+ padding_mask=padding_mask,
333
+ return_dict=return_dict,
334
+ )
distilled_generation_config.json CHANGED
@@ -1,36 +1,26 @@
1
  {
2
- "model_type": "distilled_anima_tdm",
3
- "base_model": "circlestone-labs/Anima",
4
- "architecture": {
5
- "pipeline": "AnimaModularPipeline",
6
- "transformer": "CosmosTransformer3DModel",
7
- "text_encoder": "Qwen3Model",
8
- "text_conditioner": "AnimaTextConditioner",
9
- "vae": "AutoencoderKLQwenImage",
10
- "scheduler": "FlowMatchEulerDiscreteScheduler"
11
- },
12
- "generation": {
13
- "height": 1024,
14
- "width": 1024,
15
- "dtype": "bfloat16",
16
- "max_sequence_length": 512,
17
- "runtime_cfg": 1.0,
18
- "student_steps": 4,
19
- "total_steps": 1000,
20
- "timestep_schedule": [
21
- [999, 749],
22
- [749, 499],
23
- [499, 249],
24
- [249, 0]
25
- ],
26
- "uses_negative_prompt_at_runtime": false,
27
- "note": "Use the custom 4-step TDM trajectory. This is not the original 30-50 step Anima sampler."
28
- },
29
- "original_anima_reference": {
30
- "height": 1024,
31
- "width": 1024,
32
- "steps": 40,
33
- "guidance_scale": 5.0,
34
- "dtype": "bfloat16"
35
- }
36
  }
 
1
  {
2
+ "model_type": "anima_tdm_unify_step400",
3
+ "dtype": "bfloat16",
4
+ "steps": 4,
5
+ "guidance_scale": 1.0,
6
+ "scheduler_shift": 3.0,
7
+ "raw_sigmas": [
8
+ 1.0,
9
+ 0.75,
10
+ 0.5,
11
+ 0.25
12
+ ],
13
+ "effective_sigmas": [
14
+ 1.0,
15
+ 0.9,
16
+ 0.75,
17
+ 0.5,
18
+ 0.0
19
+ ],
20
+ "tdm_num_steps": 4,
21
+ "max_sequence_length": 512,
22
+ "width": 1024,
23
+ "height": 1024,
24
+ "custom_module": "anima_lightning_transformer.py",
25
+ "negative_prompt": null
 
 
 
 
 
 
 
 
 
 
26
  }
modular_model_index.json CHANGED
@@ -6,7 +6,7 @@
6
  "diffusers",
7
  "FlowMatchEulerDiscreteScheduler",
8
  {
9
- "pretrained_model_name_or_path": "model/anima",
10
  "revision": null,
11
  "subfolder": "scheduler",
12
  "type_hint": [
@@ -20,7 +20,7 @@
20
  "transformers",
21
  "T5Tokenizer",
22
  {
23
- "pretrained_model_name_or_path": "model/anima",
24
  "revision": null,
25
  "subfolder": "t5_tokenizer",
26
  "type_hint": [
@@ -34,7 +34,7 @@
34
  "diffusers",
35
  "AnimaTextConditioner",
36
  {
37
- "pretrained_model_name_or_path": "model/anima",
38
  "revision": null,
39
  "subfolder": "text_conditioner",
40
  "type_hint": [
@@ -48,7 +48,7 @@
48
  "transformers",
49
  "Qwen3Model",
50
  {
51
- "pretrained_model_name_or_path": "model/anima",
52
  "revision": null,
53
  "subfolder": "text_encoder",
54
  "type_hint": [
@@ -62,7 +62,7 @@
62
  "transformers",
63
  "Qwen2Tokenizer",
64
  {
65
- "pretrained_model_name_or_path": "model/anima",
66
  "revision": null,
67
  "subfolder": "tokenizer",
68
  "type_hint": [
@@ -73,15 +73,15 @@
73
  }
74
  ],
75
  "transformer": [
76
- "diffusers",
77
- "CosmosTransformer3DModel",
78
  {
79
- "pretrained_model_name_or_path": "model/anima",
80
  "revision": null,
81
  "subfolder": "transformer",
82
  "type_hint": [
83
- "diffusers",
84
- "CosmosTransformer3DModel"
85
  ],
86
  "variant": null
87
  }
@@ -90,7 +90,7 @@
90
  "diffusers",
91
  "AutoencoderKLQwenImage",
92
  {
93
- "pretrained_model_name_or_path": "model/anima",
94
  "revision": null,
95
  "subfolder": "vae",
96
  "type_hint": [
 
6
  "diffusers",
7
  "FlowMatchEulerDiscreteScheduler",
8
  {
9
+ "pretrained_model_name_or_path": "aina-tech/Anima-Lightning",
10
  "revision": null,
11
  "subfolder": "scheduler",
12
  "type_hint": [
 
20
  "transformers",
21
  "T5Tokenizer",
22
  {
23
+ "pretrained_model_name_or_path": "aina-tech/Anima-Lightning",
24
  "revision": null,
25
  "subfolder": "t5_tokenizer",
26
  "type_hint": [
 
34
  "diffusers",
35
  "AnimaTextConditioner",
36
  {
37
+ "pretrained_model_name_or_path": "aina-tech/Anima-Lightning",
38
  "revision": null,
39
  "subfolder": "text_conditioner",
40
  "type_hint": [
 
48
  "transformers",
49
  "Qwen3Model",
50
  {
51
+ "pretrained_model_name_or_path": "aina-tech/Anima-Lightning",
52
  "revision": null,
53
  "subfolder": "text_encoder",
54
  "type_hint": [
 
62
  "transformers",
63
  "Qwen2Tokenizer",
64
  {
65
+ "pretrained_model_name_or_path": "aina-tech/Anima-Lightning",
66
  "revision": null,
67
  "subfolder": "tokenizer",
68
  "type_hint": [
 
73
  }
74
  ],
75
  "transformer": [
76
+ "anima_lightning_transformer",
77
+ "CosmosTDMUnifyTransformer3DModel",
78
  {
79
+ "pretrained_model_name_or_path": "aina-tech/Anima-Lightning",
80
  "revision": null,
81
  "subfolder": "transformer",
82
  "type_hint": [
83
+ "anima_lightning_transformer",
84
+ "CosmosTDMUnifyTransformer3DModel"
85
  ],
86
  "variant": null
87
  }
 
90
  "diffusers",
91
  "AutoencoderKLQwenImage",
92
  {
93
+ "pretrained_model_name_or_path": "aina-tech/Anima-Lightning",
94
  "revision": null,
95
  "subfolder": "vae",
96
  "type_hint": [
scheduler/scheduler_config.json CHANGED
@@ -7,7 +7,7 @@
7
  "max_image_seq_len": 4096,
8
  "max_shift": 1.15,
9
  "num_train_timesteps": 1000,
10
- "shift": 1.0,
11
  "shift_terminal": null,
12
  "stochastic_sampling": false,
13
  "time_shift_type": "exponential",
 
7
  "max_image_seq_len": 4096,
8
  "max_shift": 1.15,
9
  "num_train_timesteps": 1000,
10
+ "shift": 3.0,
11
  "shift_terminal": null,
12
  "stochastic_sampling": false,
13
  "time_shift_type": "exponential",
step400_export.json ADDED
@@ -0,0 +1,3911 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_checkpoint": "base-anima-unify-k1-2-4-8-1024-gradacc32-step400",
3
+ "source_files": [
4
+ {
5
+ "path": "diffusion_pytorch_model-00001-of-00002.safetensors",
6
+ "sha256": "67876d738ed881500813f64862c465a1c9f8afc82c31d17292fb3ce28eb9e3b1",
7
+ "size": 4983486068
8
+ },
9
+ {
10
+ "path": "diffusion_pytorch_model-00002-of-00002.safetensors",
11
+ "sha256": "279eb27150ecb6f82dbbf668e0fd261e3c469140acbe241d23daf0948c014552",
12
+ "size": 2909318512
13
+ }
14
+ ],
15
+ "source_config_sha256": "3f545fd7a81e71e6cfffc558f01fb18aa363073bc6e2e2b579d4ab20327c461c",
16
+ "source_implementation_sha256": "ab8f926bd1034ca750baff03596ca128f15494fe2f2ba542aa4150dee891a560",
17
+ "dtype": "bfloat16",
18
+ "tensor_count": 571,
19
+ "tensors": {
20
+ "patch_embed.proj.weight": {
21
+ "shape": [
22
+ 2048,
23
+ 68
24
+ ],
25
+ "dtype": "torch.bfloat16"
26
+ },
27
+ "time_embed.k_embed.norm.weight": {
28
+ "shape": [
29
+ 2048
30
+ ],
31
+ "dtype": "torch.bfloat16"
32
+ },
33
+ "time_embed.k_embed.t_embedder.linear_1.weight": {
34
+ "shape": [
35
+ 2048,
36
+ 2048
37
+ ],
38
+ "dtype": "torch.bfloat16"
39
+ },
40
+ "time_embed.k_embed.t_embedder.linear_2.weight": {
41
+ "shape": [
42
+ 6144,
43
+ 2048
44
+ ],
45
+ "dtype": "torch.bfloat16"
46
+ },
47
+ "time_embed.k_scale": {
48
+ "shape": [],
49
+ "dtype": "torch.bfloat16"
50
+ },
51
+ "time_embed.norm.weight": {
52
+ "shape": [
53
+ 2048
54
+ ],
55
+ "dtype": "torch.bfloat16"
56
+ },
57
+ "time_embed.t_embedder.linear_1.weight": {
58
+ "shape": [
59
+ 2048,
60
+ 2048
61
+ ],
62
+ "dtype": "torch.bfloat16"
63
+ },
64
+ "time_embed.t_embedder.linear_2.weight": {
65
+ "shape": [
66
+ 6144,
67
+ 2048
68
+ ],
69
+ "dtype": "torch.bfloat16"
70
+ },
71
+ "transformer_blocks.0.attn1.norm_k.weight": {
72
+ "shape": [
73
+ 128
74
+ ],
75
+ "dtype": "torch.bfloat16"
76
+ },
77
+ "transformer_blocks.0.attn1.norm_q.weight": {
78
+ "shape": [
79
+ 128
80
+ ],
81
+ "dtype": "torch.bfloat16"
82
+ },
83
+ "transformer_blocks.0.attn1.to_k.weight": {
84
+ "shape": [
85
+ 2048,
86
+ 2048
87
+ ],
88
+ "dtype": "torch.bfloat16"
89
+ },
90
+ "transformer_blocks.0.attn1.to_out.0.weight": {
91
+ "shape": [
92
+ 2048,
93
+ 2048
94
+ ],
95
+ "dtype": "torch.bfloat16"
96
+ },
97
+ "transformer_blocks.0.attn1.to_q.weight": {
98
+ "shape": [
99
+ 2048,
100
+ 2048
101
+ ],
102
+ "dtype": "torch.bfloat16"
103
+ },
104
+ "transformer_blocks.0.attn1.to_v.weight": {
105
+ "shape": [
106
+ 2048,
107
+ 2048
108
+ ],
109
+ "dtype": "torch.bfloat16"
110
+ },
111
+ "transformer_blocks.0.attn2.norm_k.weight": {
112
+ "shape": [
113
+ 128
114
+ ],
115
+ "dtype": "torch.bfloat16"
116
+ },
117
+ "transformer_blocks.0.attn2.norm_q.weight": {
118
+ "shape": [
119
+ 128
120
+ ],
121
+ "dtype": "torch.bfloat16"
122
+ },
123
+ "transformer_blocks.0.attn2.to_k.weight": {
124
+ "shape": [
125
+ 2048,
126
+ 1024
127
+ ],
128
+ "dtype": "torch.bfloat16"
129
+ },
130
+ "transformer_blocks.0.attn2.to_out.0.weight": {
131
+ "shape": [
132
+ 2048,
133
+ 2048
134
+ ],
135
+ "dtype": "torch.bfloat16"
136
+ },
137
+ "transformer_blocks.0.attn2.to_q.weight": {
138
+ "shape": [
139
+ 2048,
140
+ 2048
141
+ ],
142
+ "dtype": "torch.bfloat16"
143
+ },
144
+ "transformer_blocks.0.attn2.to_v.weight": {
145
+ "shape": [
146
+ 2048,
147
+ 1024
148
+ ],
149
+ "dtype": "torch.bfloat16"
150
+ },
151
+ "transformer_blocks.0.ff.net.0.proj.weight": {
152
+ "shape": [
153
+ 8192,
154
+ 2048
155
+ ],
156
+ "dtype": "torch.bfloat16"
157
+ },
158
+ "transformer_blocks.0.ff.net.2.weight": {
159
+ "shape": [
160
+ 2048,
161
+ 8192
162
+ ],
163
+ "dtype": "torch.bfloat16"
164
+ },
165
+ "transformer_blocks.0.norm1.linear_1.weight": {
166
+ "shape": [
167
+ 256,
168
+ 2048
169
+ ],
170
+ "dtype": "torch.bfloat16"
171
+ },
172
+ "transformer_blocks.0.norm1.linear_2.weight": {
173
+ "shape": [
174
+ 6144,
175
+ 256
176
+ ],
177
+ "dtype": "torch.bfloat16"
178
+ },
179
+ "transformer_blocks.0.norm2.linear_1.weight": {
180
+ "shape": [
181
+ 256,
182
+ 2048
183
+ ],
184
+ "dtype": "torch.bfloat16"
185
+ },
186
+ "transformer_blocks.0.norm2.linear_2.weight": {
187
+ "shape": [
188
+ 6144,
189
+ 256
190
+ ],
191
+ "dtype": "torch.bfloat16"
192
+ },
193
+ "transformer_blocks.0.norm3.linear_1.weight": {
194
+ "shape": [
195
+ 256,
196
+ 2048
197
+ ],
198
+ "dtype": "torch.bfloat16"
199
+ },
200
+ "transformer_blocks.0.norm3.linear_2.weight": {
201
+ "shape": [
202
+ 6144,
203
+ 256
204
+ ],
205
+ "dtype": "torch.bfloat16"
206
+ },
207
+ "transformer_blocks.1.attn1.norm_k.weight": {
208
+ "shape": [
209
+ 128
210
+ ],
211
+ "dtype": "torch.bfloat16"
212
+ },
213
+ "transformer_blocks.1.attn1.norm_q.weight": {
214
+ "shape": [
215
+ 128
216
+ ],
217
+ "dtype": "torch.bfloat16"
218
+ },
219
+ "transformer_blocks.1.attn1.to_k.weight": {
220
+ "shape": [
221
+ 2048,
222
+ 2048
223
+ ],
224
+ "dtype": "torch.bfloat16"
225
+ },
226
+ "transformer_blocks.1.attn1.to_out.0.weight": {
227
+ "shape": [
228
+ 2048,
229
+ 2048
230
+ ],
231
+ "dtype": "torch.bfloat16"
232
+ },
233
+ "transformer_blocks.1.attn1.to_q.weight": {
234
+ "shape": [
235
+ 2048,
236
+ 2048
237
+ ],
238
+ "dtype": "torch.bfloat16"
239
+ },
240
+ "transformer_blocks.1.attn1.to_v.weight": {
241
+ "shape": [
242
+ 2048,
243
+ 2048
244
+ ],
245
+ "dtype": "torch.bfloat16"
246
+ },
247
+ "transformer_blocks.1.attn2.norm_k.weight": {
248
+ "shape": [
249
+ 128
250
+ ],
251
+ "dtype": "torch.bfloat16"
252
+ },
253
+ "transformer_blocks.1.attn2.norm_q.weight": {
254
+ "shape": [
255
+ 128
256
+ ],
257
+ "dtype": "torch.bfloat16"
258
+ },
259
+ "transformer_blocks.1.attn2.to_k.weight": {
260
+ "shape": [
261
+ 2048,
262
+ 1024
263
+ ],
264
+ "dtype": "torch.bfloat16"
265
+ },
266
+ "transformer_blocks.1.attn2.to_out.0.weight": {
267
+ "shape": [
268
+ 2048,
269
+ 2048
270
+ ],
271
+ "dtype": "torch.bfloat16"
272
+ },
273
+ "transformer_blocks.1.attn2.to_q.weight": {
274
+ "shape": [
275
+ 2048,
276
+ 2048
277
+ ],
278
+ "dtype": "torch.bfloat16"
279
+ },
280
+ "transformer_blocks.1.attn2.to_v.weight": {
281
+ "shape": [
282
+ 2048,
283
+ 1024
284
+ ],
285
+ "dtype": "torch.bfloat16"
286
+ },
287
+ "transformer_blocks.1.ff.net.0.proj.weight": {
288
+ "shape": [
289
+ 8192,
290
+ 2048
291
+ ],
292
+ "dtype": "torch.bfloat16"
293
+ },
294
+ "transformer_blocks.1.ff.net.2.weight": {
295
+ "shape": [
296
+ 2048,
297
+ 8192
298
+ ],
299
+ "dtype": "torch.bfloat16"
300
+ },
301
+ "transformer_blocks.1.norm1.linear_1.weight": {
302
+ "shape": [
303
+ 256,
304
+ 2048
305
+ ],
306
+ "dtype": "torch.bfloat16"
307
+ },
308
+ "transformer_blocks.1.norm1.linear_2.weight": {
309
+ "shape": [
310
+ 6144,
311
+ 256
312
+ ],
313
+ "dtype": "torch.bfloat16"
314
+ },
315
+ "transformer_blocks.1.norm2.linear_1.weight": {
316
+ "shape": [
317
+ 256,
318
+ 2048
319
+ ],
320
+ "dtype": "torch.bfloat16"
321
+ },
322
+ "transformer_blocks.1.norm2.linear_2.weight": {
323
+ "shape": [
324
+ 6144,
325
+ 256
326
+ ],
327
+ "dtype": "torch.bfloat16"
328
+ },
329
+ "transformer_blocks.1.norm3.linear_1.weight": {
330
+ "shape": [
331
+ 256,
332
+ 2048
333
+ ],
334
+ "dtype": "torch.bfloat16"
335
+ },
336
+ "transformer_blocks.1.norm3.linear_2.weight": {
337
+ "shape": [
338
+ 6144,
339
+ 256
340
+ ],
341
+ "dtype": "torch.bfloat16"
342
+ },
343
+ "transformer_blocks.10.attn1.norm_k.weight": {
344
+ "shape": [
345
+ 128
346
+ ],
347
+ "dtype": "torch.bfloat16"
348
+ },
349
+ "transformer_blocks.10.attn1.norm_q.weight": {
350
+ "shape": [
351
+ 128
352
+ ],
353
+ "dtype": "torch.bfloat16"
354
+ },
355
+ "transformer_blocks.10.attn1.to_k.weight": {
356
+ "shape": [
357
+ 2048,
358
+ 2048
359
+ ],
360
+ "dtype": "torch.bfloat16"
361
+ },
362
+ "transformer_blocks.10.attn1.to_out.0.weight": {
363
+ "shape": [
364
+ 2048,
365
+ 2048
366
+ ],
367
+ "dtype": "torch.bfloat16"
368
+ },
369
+ "transformer_blocks.10.attn1.to_q.weight": {
370
+ "shape": [
371
+ 2048,
372
+ 2048
373
+ ],
374
+ "dtype": "torch.bfloat16"
375
+ },
376
+ "transformer_blocks.10.attn1.to_v.weight": {
377
+ "shape": [
378
+ 2048,
379
+ 2048
380
+ ],
381
+ "dtype": "torch.bfloat16"
382
+ },
383
+ "transformer_blocks.10.attn2.norm_k.weight": {
384
+ "shape": [
385
+ 128
386
+ ],
387
+ "dtype": "torch.bfloat16"
388
+ },
389
+ "transformer_blocks.10.attn2.norm_q.weight": {
390
+ "shape": [
391
+ 128
392
+ ],
393
+ "dtype": "torch.bfloat16"
394
+ },
395
+ "transformer_blocks.10.attn2.to_k.weight": {
396
+ "shape": [
397
+ 2048,
398
+ 1024
399
+ ],
400
+ "dtype": "torch.bfloat16"
401
+ },
402
+ "transformer_blocks.10.attn2.to_out.0.weight": {
403
+ "shape": [
404
+ 2048,
405
+ 2048
406
+ ],
407
+ "dtype": "torch.bfloat16"
408
+ },
409
+ "transformer_blocks.10.attn2.to_q.weight": {
410
+ "shape": [
411
+ 2048,
412
+ 2048
413
+ ],
414
+ "dtype": "torch.bfloat16"
415
+ },
416
+ "transformer_blocks.10.attn2.to_v.weight": {
417
+ "shape": [
418
+ 2048,
419
+ 1024
420
+ ],
421
+ "dtype": "torch.bfloat16"
422
+ },
423
+ "transformer_blocks.10.ff.net.0.proj.weight": {
424
+ "shape": [
425
+ 8192,
426
+ 2048
427
+ ],
428
+ "dtype": "torch.bfloat16"
429
+ },
430
+ "transformer_blocks.10.ff.net.2.weight": {
431
+ "shape": [
432
+ 2048,
433
+ 8192
434
+ ],
435
+ "dtype": "torch.bfloat16"
436
+ },
437
+ "transformer_blocks.10.norm1.linear_1.weight": {
438
+ "shape": [
439
+ 256,
440
+ 2048
441
+ ],
442
+ "dtype": "torch.bfloat16"
443
+ },
444
+ "transformer_blocks.10.norm1.linear_2.weight": {
445
+ "shape": [
446
+ 6144,
447
+ 256
448
+ ],
449
+ "dtype": "torch.bfloat16"
450
+ },
451
+ "transformer_blocks.10.norm2.linear_1.weight": {
452
+ "shape": [
453
+ 256,
454
+ 2048
455
+ ],
456
+ "dtype": "torch.bfloat16"
457
+ },
458
+ "transformer_blocks.10.norm2.linear_2.weight": {
459
+ "shape": [
460
+ 6144,
461
+ 256
462
+ ],
463
+ "dtype": "torch.bfloat16"
464
+ },
465
+ "transformer_blocks.10.norm3.linear_1.weight": {
466
+ "shape": [
467
+ 256,
468
+ 2048
469
+ ],
470
+ "dtype": "torch.bfloat16"
471
+ },
472
+ "transformer_blocks.10.norm3.linear_2.weight": {
473
+ "shape": [
474
+ 6144,
475
+ 256
476
+ ],
477
+ "dtype": "torch.bfloat16"
478
+ },
479
+ "transformer_blocks.11.attn1.norm_k.weight": {
480
+ "shape": [
481
+ 128
482
+ ],
483
+ "dtype": "torch.bfloat16"
484
+ },
485
+ "transformer_blocks.11.attn1.norm_q.weight": {
486
+ "shape": [
487
+ 128
488
+ ],
489
+ "dtype": "torch.bfloat16"
490
+ },
491
+ "transformer_blocks.11.attn1.to_k.weight": {
492
+ "shape": [
493
+ 2048,
494
+ 2048
495
+ ],
496
+ "dtype": "torch.bfloat16"
497
+ },
498
+ "transformer_blocks.11.attn1.to_out.0.weight": {
499
+ "shape": [
500
+ 2048,
501
+ 2048
502
+ ],
503
+ "dtype": "torch.bfloat16"
504
+ },
505
+ "transformer_blocks.11.attn1.to_q.weight": {
506
+ "shape": [
507
+ 2048,
508
+ 2048
509
+ ],
510
+ "dtype": "torch.bfloat16"
511
+ },
512
+ "transformer_blocks.11.attn1.to_v.weight": {
513
+ "shape": [
514
+ 2048,
515
+ 2048
516
+ ],
517
+ "dtype": "torch.bfloat16"
518
+ },
519
+ "transformer_blocks.11.attn2.norm_k.weight": {
520
+ "shape": [
521
+ 128
522
+ ],
523
+ "dtype": "torch.bfloat16"
524
+ },
525
+ "transformer_blocks.11.attn2.norm_q.weight": {
526
+ "shape": [
527
+ 128
528
+ ],
529
+ "dtype": "torch.bfloat16"
530
+ },
531
+ "transformer_blocks.11.attn2.to_k.weight": {
532
+ "shape": [
533
+ 2048,
534
+ 1024
535
+ ],
536
+ "dtype": "torch.bfloat16"
537
+ },
538
+ "transformer_blocks.11.attn2.to_out.0.weight": {
539
+ "shape": [
540
+ 2048,
541
+ 2048
542
+ ],
543
+ "dtype": "torch.bfloat16"
544
+ },
545
+ "transformer_blocks.11.attn2.to_q.weight": {
546
+ "shape": [
547
+ 2048,
548
+ 2048
549
+ ],
550
+ "dtype": "torch.bfloat16"
551
+ },
552
+ "transformer_blocks.11.attn2.to_v.weight": {
553
+ "shape": [
554
+ 2048,
555
+ 1024
556
+ ],
557
+ "dtype": "torch.bfloat16"
558
+ },
559
+ "transformer_blocks.11.ff.net.0.proj.weight": {
560
+ "shape": [
561
+ 8192,
562
+ 2048
563
+ ],
564
+ "dtype": "torch.bfloat16"
565
+ },
566
+ "transformer_blocks.11.ff.net.2.weight": {
567
+ "shape": [
568
+ 2048,
569
+ 8192
570
+ ],
571
+ "dtype": "torch.bfloat16"
572
+ },
573
+ "transformer_blocks.11.norm1.linear_1.weight": {
574
+ "shape": [
575
+ 256,
576
+ 2048
577
+ ],
578
+ "dtype": "torch.bfloat16"
579
+ },
580
+ "transformer_blocks.11.norm1.linear_2.weight": {
581
+ "shape": [
582
+ 6144,
583
+ 256
584
+ ],
585
+ "dtype": "torch.bfloat16"
586
+ },
587
+ "transformer_blocks.11.norm2.linear_1.weight": {
588
+ "shape": [
589
+ 256,
590
+ 2048
591
+ ],
592
+ "dtype": "torch.bfloat16"
593
+ },
594
+ "transformer_blocks.11.norm2.linear_2.weight": {
595
+ "shape": [
596
+ 6144,
597
+ 256
598
+ ],
599
+ "dtype": "torch.bfloat16"
600
+ },
601
+ "transformer_blocks.11.norm3.linear_1.weight": {
602
+ "shape": [
603
+ 256,
604
+ 2048
605
+ ],
606
+ "dtype": "torch.bfloat16"
607
+ },
608
+ "transformer_blocks.11.norm3.linear_2.weight": {
609
+ "shape": [
610
+ 6144,
611
+ 256
612
+ ],
613
+ "dtype": "torch.bfloat16"
614
+ },
615
+ "transformer_blocks.12.attn1.norm_k.weight": {
616
+ "shape": [
617
+ 128
618
+ ],
619
+ "dtype": "torch.bfloat16"
620
+ },
621
+ "transformer_blocks.12.attn1.norm_q.weight": {
622
+ "shape": [
623
+ 128
624
+ ],
625
+ "dtype": "torch.bfloat16"
626
+ },
627
+ "transformer_blocks.12.attn1.to_k.weight": {
628
+ "shape": [
629
+ 2048,
630
+ 2048
631
+ ],
632
+ "dtype": "torch.bfloat16"
633
+ },
634
+ "transformer_blocks.12.attn1.to_out.0.weight": {
635
+ "shape": [
636
+ 2048,
637
+ 2048
638
+ ],
639
+ "dtype": "torch.bfloat16"
640
+ },
641
+ "transformer_blocks.12.attn1.to_q.weight": {
642
+ "shape": [
643
+ 2048,
644
+ 2048
645
+ ],
646
+ "dtype": "torch.bfloat16"
647
+ },
648
+ "transformer_blocks.12.attn1.to_v.weight": {
649
+ "shape": [
650
+ 2048,
651
+ 2048
652
+ ],
653
+ "dtype": "torch.bfloat16"
654
+ },
655
+ "transformer_blocks.12.attn2.norm_k.weight": {
656
+ "shape": [
657
+ 128
658
+ ],
659
+ "dtype": "torch.bfloat16"
660
+ },
661
+ "transformer_blocks.12.attn2.norm_q.weight": {
662
+ "shape": [
663
+ 128
664
+ ],
665
+ "dtype": "torch.bfloat16"
666
+ },
667
+ "transformer_blocks.12.attn2.to_k.weight": {
668
+ "shape": [
669
+ 2048,
670
+ 1024
671
+ ],
672
+ "dtype": "torch.bfloat16"
673
+ },
674
+ "transformer_blocks.12.attn2.to_out.0.weight": {
675
+ "shape": [
676
+ 2048,
677
+ 2048
678
+ ],
679
+ "dtype": "torch.bfloat16"
680
+ },
681
+ "transformer_blocks.12.attn2.to_q.weight": {
682
+ "shape": [
683
+ 2048,
684
+ 2048
685
+ ],
686
+ "dtype": "torch.bfloat16"
687
+ },
688
+ "transformer_blocks.12.attn2.to_v.weight": {
689
+ "shape": [
690
+ 2048,
691
+ 1024
692
+ ],
693
+ "dtype": "torch.bfloat16"
694
+ },
695
+ "transformer_blocks.12.ff.net.0.proj.weight": {
696
+ "shape": [
697
+ 8192,
698
+ 2048
699
+ ],
700
+ "dtype": "torch.bfloat16"
701
+ },
702
+ "transformer_blocks.12.ff.net.2.weight": {
703
+ "shape": [
704
+ 2048,
705
+ 8192
706
+ ],
707
+ "dtype": "torch.bfloat16"
708
+ },
709
+ "transformer_blocks.12.norm1.linear_1.weight": {
710
+ "shape": [
711
+ 256,
712
+ 2048
713
+ ],
714
+ "dtype": "torch.bfloat16"
715
+ },
716
+ "transformer_blocks.12.norm1.linear_2.weight": {
717
+ "shape": [
718
+ 6144,
719
+ 256
720
+ ],
721
+ "dtype": "torch.bfloat16"
722
+ },
723
+ "transformer_blocks.12.norm2.linear_1.weight": {
724
+ "shape": [
725
+ 256,
726
+ 2048
727
+ ],
728
+ "dtype": "torch.bfloat16"
729
+ },
730
+ "transformer_blocks.12.norm2.linear_2.weight": {
731
+ "shape": [
732
+ 6144,
733
+ 256
734
+ ],
735
+ "dtype": "torch.bfloat16"
736
+ },
737
+ "transformer_blocks.12.norm3.linear_1.weight": {
738
+ "shape": [
739
+ 256,
740
+ 2048
741
+ ],
742
+ "dtype": "torch.bfloat16"
743
+ },
744
+ "transformer_blocks.12.norm3.linear_2.weight": {
745
+ "shape": [
746
+ 6144,
747
+ 256
748
+ ],
749
+ "dtype": "torch.bfloat16"
750
+ },
751
+ "transformer_blocks.13.attn1.norm_k.weight": {
752
+ "shape": [
753
+ 128
754
+ ],
755
+ "dtype": "torch.bfloat16"
756
+ },
757
+ "transformer_blocks.13.attn1.norm_q.weight": {
758
+ "shape": [
759
+ 128
760
+ ],
761
+ "dtype": "torch.bfloat16"
762
+ },
763
+ "transformer_blocks.13.attn1.to_k.weight": {
764
+ "shape": [
765
+ 2048,
766
+ 2048
767
+ ],
768
+ "dtype": "torch.bfloat16"
769
+ },
770
+ "transformer_blocks.13.attn1.to_out.0.weight": {
771
+ "shape": [
772
+ 2048,
773
+ 2048
774
+ ],
775
+ "dtype": "torch.bfloat16"
776
+ },
777
+ "transformer_blocks.13.attn1.to_q.weight": {
778
+ "shape": [
779
+ 2048,
780
+ 2048
781
+ ],
782
+ "dtype": "torch.bfloat16"
783
+ },
784
+ "transformer_blocks.13.attn1.to_v.weight": {
785
+ "shape": [
786
+ 2048,
787
+ 2048
788
+ ],
789
+ "dtype": "torch.bfloat16"
790
+ },
791
+ "transformer_blocks.13.attn2.norm_k.weight": {
792
+ "shape": [
793
+ 128
794
+ ],
795
+ "dtype": "torch.bfloat16"
796
+ },
797
+ "transformer_blocks.13.attn2.norm_q.weight": {
798
+ "shape": [
799
+ 128
800
+ ],
801
+ "dtype": "torch.bfloat16"
802
+ },
803
+ "transformer_blocks.13.attn2.to_k.weight": {
804
+ "shape": [
805
+ 2048,
806
+ 1024
807
+ ],
808
+ "dtype": "torch.bfloat16"
809
+ },
810
+ "transformer_blocks.13.attn2.to_out.0.weight": {
811
+ "shape": [
812
+ 2048,
813
+ 2048
814
+ ],
815
+ "dtype": "torch.bfloat16"
816
+ },
817
+ "transformer_blocks.13.attn2.to_q.weight": {
818
+ "shape": [
819
+ 2048,
820
+ 2048
821
+ ],
822
+ "dtype": "torch.bfloat16"
823
+ },
824
+ "transformer_blocks.13.attn2.to_v.weight": {
825
+ "shape": [
826
+ 2048,
827
+ 1024
828
+ ],
829
+ "dtype": "torch.bfloat16"
830
+ },
831
+ "transformer_blocks.13.ff.net.0.proj.weight": {
832
+ "shape": [
833
+ 8192,
834
+ 2048
835
+ ],
836
+ "dtype": "torch.bfloat16"
837
+ },
838
+ "transformer_blocks.13.ff.net.2.weight": {
839
+ "shape": [
840
+ 2048,
841
+ 8192
842
+ ],
843
+ "dtype": "torch.bfloat16"
844
+ },
845
+ "transformer_blocks.13.norm1.linear_1.weight": {
846
+ "shape": [
847
+ 256,
848
+ 2048
849
+ ],
850
+ "dtype": "torch.bfloat16"
851
+ },
852
+ "transformer_blocks.13.norm1.linear_2.weight": {
853
+ "shape": [
854
+ 6144,
855
+ 256
856
+ ],
857
+ "dtype": "torch.bfloat16"
858
+ },
859
+ "transformer_blocks.13.norm2.linear_1.weight": {
860
+ "shape": [
861
+ 256,
862
+ 2048
863
+ ],
864
+ "dtype": "torch.bfloat16"
865
+ },
866
+ "transformer_blocks.13.norm2.linear_2.weight": {
867
+ "shape": [
868
+ 6144,
869
+ 256
870
+ ],
871
+ "dtype": "torch.bfloat16"
872
+ },
873
+ "transformer_blocks.13.norm3.linear_1.weight": {
874
+ "shape": [
875
+ 256,
876
+ 2048
877
+ ],
878
+ "dtype": "torch.bfloat16"
879
+ },
880
+ "transformer_blocks.13.norm3.linear_2.weight": {
881
+ "shape": [
882
+ 6144,
883
+ 256
884
+ ],
885
+ "dtype": "torch.bfloat16"
886
+ },
887
+ "transformer_blocks.14.attn1.norm_k.weight": {
888
+ "shape": [
889
+ 128
890
+ ],
891
+ "dtype": "torch.bfloat16"
892
+ },
893
+ "transformer_blocks.14.attn1.norm_q.weight": {
894
+ "shape": [
895
+ 128
896
+ ],
897
+ "dtype": "torch.bfloat16"
898
+ },
899
+ "transformer_blocks.14.attn1.to_k.weight": {
900
+ "shape": [
901
+ 2048,
902
+ 2048
903
+ ],
904
+ "dtype": "torch.bfloat16"
905
+ },
906
+ "transformer_blocks.14.attn1.to_out.0.weight": {
907
+ "shape": [
908
+ 2048,
909
+ 2048
910
+ ],
911
+ "dtype": "torch.bfloat16"
912
+ },
913
+ "transformer_blocks.14.attn1.to_q.weight": {
914
+ "shape": [
915
+ 2048,
916
+ 2048
917
+ ],
918
+ "dtype": "torch.bfloat16"
919
+ },
920
+ "transformer_blocks.14.attn1.to_v.weight": {
921
+ "shape": [
922
+ 2048,
923
+ 2048
924
+ ],
925
+ "dtype": "torch.bfloat16"
926
+ },
927
+ "transformer_blocks.14.attn2.norm_k.weight": {
928
+ "shape": [
929
+ 128
930
+ ],
931
+ "dtype": "torch.bfloat16"
932
+ },
933
+ "transformer_blocks.14.attn2.norm_q.weight": {
934
+ "shape": [
935
+ 128
936
+ ],
937
+ "dtype": "torch.bfloat16"
938
+ },
939
+ "transformer_blocks.14.attn2.to_k.weight": {
940
+ "shape": [
941
+ 2048,
942
+ 1024
943
+ ],
944
+ "dtype": "torch.bfloat16"
945
+ },
946
+ "transformer_blocks.14.attn2.to_out.0.weight": {
947
+ "shape": [
948
+ 2048,
949
+ 2048
950
+ ],
951
+ "dtype": "torch.bfloat16"
952
+ },
953
+ "transformer_blocks.14.attn2.to_q.weight": {
954
+ "shape": [
955
+ 2048,
956
+ 2048
957
+ ],
958
+ "dtype": "torch.bfloat16"
959
+ },
960
+ "transformer_blocks.14.attn2.to_v.weight": {
961
+ "shape": [
962
+ 2048,
963
+ 1024
964
+ ],
965
+ "dtype": "torch.bfloat16"
966
+ },
967
+ "transformer_blocks.14.ff.net.0.proj.weight": {
968
+ "shape": [
969
+ 8192,
970
+ 2048
971
+ ],
972
+ "dtype": "torch.bfloat16"
973
+ },
974
+ "transformer_blocks.14.ff.net.2.weight": {
975
+ "shape": [
976
+ 2048,
977
+ 8192
978
+ ],
979
+ "dtype": "torch.bfloat16"
980
+ },
981
+ "transformer_blocks.14.norm1.linear_1.weight": {
982
+ "shape": [
983
+ 256,
984
+ 2048
985
+ ],
986
+ "dtype": "torch.bfloat16"
987
+ },
988
+ "transformer_blocks.14.norm1.linear_2.weight": {
989
+ "shape": [
990
+ 6144,
991
+ 256
992
+ ],
993
+ "dtype": "torch.bfloat16"
994
+ },
995
+ "transformer_blocks.14.norm2.linear_1.weight": {
996
+ "shape": [
997
+ 256,
998
+ 2048
999
+ ],
1000
+ "dtype": "torch.bfloat16"
1001
+ },
1002
+ "transformer_blocks.14.norm2.linear_2.weight": {
1003
+ "shape": [
1004
+ 6144,
1005
+ 256
1006
+ ],
1007
+ "dtype": "torch.bfloat16"
1008
+ },
1009
+ "transformer_blocks.14.norm3.linear_1.weight": {
1010
+ "shape": [
1011
+ 256,
1012
+ 2048
1013
+ ],
1014
+ "dtype": "torch.bfloat16"
1015
+ },
1016
+ "transformer_blocks.14.norm3.linear_2.weight": {
1017
+ "shape": [
1018
+ 6144,
1019
+ 256
1020
+ ],
1021
+ "dtype": "torch.bfloat16"
1022
+ },
1023
+ "transformer_blocks.15.attn1.norm_k.weight": {
1024
+ "shape": [
1025
+ 128
1026
+ ],
1027
+ "dtype": "torch.bfloat16"
1028
+ },
1029
+ "transformer_blocks.15.attn1.norm_q.weight": {
1030
+ "shape": [
1031
+ 128
1032
+ ],
1033
+ "dtype": "torch.bfloat16"
1034
+ },
1035
+ "transformer_blocks.15.attn1.to_k.weight": {
1036
+ "shape": [
1037
+ 2048,
1038
+ 2048
1039
+ ],
1040
+ "dtype": "torch.bfloat16"
1041
+ },
1042
+ "transformer_blocks.15.attn1.to_out.0.weight": {
1043
+ "shape": [
1044
+ 2048,
1045
+ 2048
1046
+ ],
1047
+ "dtype": "torch.bfloat16"
1048
+ },
1049
+ "transformer_blocks.15.attn1.to_q.weight": {
1050
+ "shape": [
1051
+ 2048,
1052
+ 2048
1053
+ ],
1054
+ "dtype": "torch.bfloat16"
1055
+ },
1056
+ "transformer_blocks.15.attn1.to_v.weight": {
1057
+ "shape": [
1058
+ 2048,
1059
+ 2048
1060
+ ],
1061
+ "dtype": "torch.bfloat16"
1062
+ },
1063
+ "transformer_blocks.15.attn2.norm_k.weight": {
1064
+ "shape": [
1065
+ 128
1066
+ ],
1067
+ "dtype": "torch.bfloat16"
1068
+ },
1069
+ "transformer_blocks.15.attn2.norm_q.weight": {
1070
+ "shape": [
1071
+ 128
1072
+ ],
1073
+ "dtype": "torch.bfloat16"
1074
+ },
1075
+ "transformer_blocks.15.attn2.to_k.weight": {
1076
+ "shape": [
1077
+ 2048,
1078
+ 1024
1079
+ ],
1080
+ "dtype": "torch.bfloat16"
1081
+ },
1082
+ "transformer_blocks.15.attn2.to_out.0.weight": {
1083
+ "shape": [
1084
+ 2048,
1085
+ 2048
1086
+ ],
1087
+ "dtype": "torch.bfloat16"
1088
+ },
1089
+ "transformer_blocks.15.attn2.to_q.weight": {
1090
+ "shape": [
1091
+ 2048,
1092
+ 2048
1093
+ ],
1094
+ "dtype": "torch.bfloat16"
1095
+ },
1096
+ "transformer_blocks.15.attn2.to_v.weight": {
1097
+ "shape": [
1098
+ 2048,
1099
+ 1024
1100
+ ],
1101
+ "dtype": "torch.bfloat16"
1102
+ },
1103
+ "transformer_blocks.15.ff.net.0.proj.weight": {
1104
+ "shape": [
1105
+ 8192,
1106
+ 2048
1107
+ ],
1108
+ "dtype": "torch.bfloat16"
1109
+ },
1110
+ "transformer_blocks.15.ff.net.2.weight": {
1111
+ "shape": [
1112
+ 2048,
1113
+ 8192
1114
+ ],
1115
+ "dtype": "torch.bfloat16"
1116
+ },
1117
+ "transformer_blocks.15.norm1.linear_1.weight": {
1118
+ "shape": [
1119
+ 256,
1120
+ 2048
1121
+ ],
1122
+ "dtype": "torch.bfloat16"
1123
+ },
1124
+ "transformer_blocks.15.norm1.linear_2.weight": {
1125
+ "shape": [
1126
+ 6144,
1127
+ 256
1128
+ ],
1129
+ "dtype": "torch.bfloat16"
1130
+ },
1131
+ "transformer_blocks.15.norm2.linear_1.weight": {
1132
+ "shape": [
1133
+ 256,
1134
+ 2048
1135
+ ],
1136
+ "dtype": "torch.bfloat16"
1137
+ },
1138
+ "transformer_blocks.15.norm2.linear_2.weight": {
1139
+ "shape": [
1140
+ 6144,
1141
+ 256
1142
+ ],
1143
+ "dtype": "torch.bfloat16"
1144
+ },
1145
+ "transformer_blocks.15.norm3.linear_1.weight": {
1146
+ "shape": [
1147
+ 256,
1148
+ 2048
1149
+ ],
1150
+ "dtype": "torch.bfloat16"
1151
+ },
1152
+ "transformer_blocks.15.norm3.linear_2.weight": {
1153
+ "shape": [
1154
+ 6144,
1155
+ 256
1156
+ ],
1157
+ "dtype": "torch.bfloat16"
1158
+ },
1159
+ "transformer_blocks.16.attn1.norm_k.weight": {
1160
+ "shape": [
1161
+ 128
1162
+ ],
1163
+ "dtype": "torch.bfloat16"
1164
+ },
1165
+ "transformer_blocks.16.attn1.norm_q.weight": {
1166
+ "shape": [
1167
+ 128
1168
+ ],
1169
+ "dtype": "torch.bfloat16"
1170
+ },
1171
+ "transformer_blocks.16.attn1.to_k.weight": {
1172
+ "shape": [
1173
+ 2048,
1174
+ 2048
1175
+ ],
1176
+ "dtype": "torch.bfloat16"
1177
+ },
1178
+ "transformer_blocks.16.attn1.to_out.0.weight": {
1179
+ "shape": [
1180
+ 2048,
1181
+ 2048
1182
+ ],
1183
+ "dtype": "torch.bfloat16"
1184
+ },
1185
+ "transformer_blocks.16.attn1.to_q.weight": {
1186
+ "shape": [
1187
+ 2048,
1188
+ 2048
1189
+ ],
1190
+ "dtype": "torch.bfloat16"
1191
+ },
1192
+ "transformer_blocks.16.attn1.to_v.weight": {
1193
+ "shape": [
1194
+ 2048,
1195
+ 2048
1196
+ ],
1197
+ "dtype": "torch.bfloat16"
1198
+ },
1199
+ "transformer_blocks.16.attn2.norm_k.weight": {
1200
+ "shape": [
1201
+ 128
1202
+ ],
1203
+ "dtype": "torch.bfloat16"
1204
+ },
1205
+ "transformer_blocks.16.attn2.norm_q.weight": {
1206
+ "shape": [
1207
+ 128
1208
+ ],
1209
+ "dtype": "torch.bfloat16"
1210
+ },
1211
+ "transformer_blocks.16.attn2.to_k.weight": {
1212
+ "shape": [
1213
+ 2048,
1214
+ 1024
1215
+ ],
1216
+ "dtype": "torch.bfloat16"
1217
+ },
1218
+ "transformer_blocks.16.attn2.to_out.0.weight": {
1219
+ "shape": [
1220
+ 2048,
1221
+ 2048
1222
+ ],
1223
+ "dtype": "torch.bfloat16"
1224
+ },
1225
+ "transformer_blocks.16.attn2.to_q.weight": {
1226
+ "shape": [
1227
+ 2048,
1228
+ 2048
1229
+ ],
1230
+ "dtype": "torch.bfloat16"
1231
+ },
1232
+ "transformer_blocks.16.attn2.to_v.weight": {
1233
+ "shape": [
1234
+ 2048,
1235
+ 1024
1236
+ ],
1237
+ "dtype": "torch.bfloat16"
1238
+ },
1239
+ "transformer_blocks.16.ff.net.0.proj.weight": {
1240
+ "shape": [
1241
+ 8192,
1242
+ 2048
1243
+ ],
1244
+ "dtype": "torch.bfloat16"
1245
+ },
1246
+ "transformer_blocks.16.ff.net.2.weight": {
1247
+ "shape": [
1248
+ 2048,
1249
+ 8192
1250
+ ],
1251
+ "dtype": "torch.bfloat16"
1252
+ },
1253
+ "transformer_blocks.16.norm1.linear_1.weight": {
1254
+ "shape": [
1255
+ 256,
1256
+ 2048
1257
+ ],
1258
+ "dtype": "torch.bfloat16"
1259
+ },
1260
+ "transformer_blocks.16.norm1.linear_2.weight": {
1261
+ "shape": [
1262
+ 6144,
1263
+ 256
1264
+ ],
1265
+ "dtype": "torch.bfloat16"
1266
+ },
1267
+ "transformer_blocks.16.norm2.linear_1.weight": {
1268
+ "shape": [
1269
+ 256,
1270
+ 2048
1271
+ ],
1272
+ "dtype": "torch.bfloat16"
1273
+ },
1274
+ "transformer_blocks.16.norm2.linear_2.weight": {
1275
+ "shape": [
1276
+ 6144,
1277
+ 256
1278
+ ],
1279
+ "dtype": "torch.bfloat16"
1280
+ },
1281
+ "transformer_blocks.16.norm3.linear_1.weight": {
1282
+ "shape": [
1283
+ 256,
1284
+ 2048
1285
+ ],
1286
+ "dtype": "torch.bfloat16"
1287
+ },
1288
+ "transformer_blocks.16.norm3.linear_2.weight": {
1289
+ "shape": [
1290
+ 6144,
1291
+ 256
1292
+ ],
1293
+ "dtype": "torch.bfloat16"
1294
+ },
1295
+ "transformer_blocks.17.attn1.norm_k.weight": {
1296
+ "shape": [
1297
+ 128
1298
+ ],
1299
+ "dtype": "torch.bfloat16"
1300
+ },
1301
+ "transformer_blocks.17.attn1.norm_q.weight": {
1302
+ "shape": [
1303
+ 128
1304
+ ],
1305
+ "dtype": "torch.bfloat16"
1306
+ },
1307
+ "transformer_blocks.17.attn1.to_k.weight": {
1308
+ "shape": [
1309
+ 2048,
1310
+ 2048
1311
+ ],
1312
+ "dtype": "torch.bfloat16"
1313
+ },
1314
+ "transformer_blocks.17.attn1.to_out.0.weight": {
1315
+ "shape": [
1316
+ 2048,
1317
+ 2048
1318
+ ],
1319
+ "dtype": "torch.bfloat16"
1320
+ },
1321
+ "transformer_blocks.17.attn1.to_q.weight": {
1322
+ "shape": [
1323
+ 2048,
1324
+ 2048
1325
+ ],
1326
+ "dtype": "torch.bfloat16"
1327
+ },
1328
+ "transformer_blocks.17.attn1.to_v.weight": {
1329
+ "shape": [
1330
+ 2048,
1331
+ 2048
1332
+ ],
1333
+ "dtype": "torch.bfloat16"
1334
+ },
1335
+ "transformer_blocks.17.attn2.norm_k.weight": {
1336
+ "shape": [
1337
+ 128
1338
+ ],
1339
+ "dtype": "torch.bfloat16"
1340
+ },
1341
+ "transformer_blocks.17.attn2.norm_q.weight": {
1342
+ "shape": [
1343
+ 128
1344
+ ],
1345
+ "dtype": "torch.bfloat16"
1346
+ },
1347
+ "transformer_blocks.17.attn2.to_k.weight": {
1348
+ "shape": [
1349
+ 2048,
1350
+ 1024
1351
+ ],
1352
+ "dtype": "torch.bfloat16"
1353
+ },
1354
+ "transformer_blocks.17.attn2.to_out.0.weight": {
1355
+ "shape": [
1356
+ 2048,
1357
+ 2048
1358
+ ],
1359
+ "dtype": "torch.bfloat16"
1360
+ },
1361
+ "transformer_blocks.17.attn2.to_q.weight": {
1362
+ "shape": [
1363
+ 2048,
1364
+ 2048
1365
+ ],
1366
+ "dtype": "torch.bfloat16"
1367
+ },
1368
+ "transformer_blocks.17.attn2.to_v.weight": {
1369
+ "shape": [
1370
+ 2048,
1371
+ 1024
1372
+ ],
1373
+ "dtype": "torch.bfloat16"
1374
+ },
1375
+ "transformer_blocks.17.norm1.linear_1.weight": {
1376
+ "shape": [
1377
+ 256,
1378
+ 2048
1379
+ ],
1380
+ "dtype": "torch.bfloat16"
1381
+ },
1382
+ "transformer_blocks.17.norm1.linear_2.weight": {
1383
+ "shape": [
1384
+ 6144,
1385
+ 256
1386
+ ],
1387
+ "dtype": "torch.bfloat16"
1388
+ },
1389
+ "transformer_blocks.17.norm2.linear_1.weight": {
1390
+ "shape": [
1391
+ 256,
1392
+ 2048
1393
+ ],
1394
+ "dtype": "torch.bfloat16"
1395
+ },
1396
+ "transformer_blocks.17.norm2.linear_2.weight": {
1397
+ "shape": [
1398
+ 6144,
1399
+ 256
1400
+ ],
1401
+ "dtype": "torch.bfloat16"
1402
+ },
1403
+ "transformer_blocks.17.norm3.linear_1.weight": {
1404
+ "shape": [
1405
+ 256,
1406
+ 2048
1407
+ ],
1408
+ "dtype": "torch.bfloat16"
1409
+ },
1410
+ "transformer_blocks.17.norm3.linear_2.weight": {
1411
+ "shape": [
1412
+ 6144,
1413
+ 256
1414
+ ],
1415
+ "dtype": "torch.bfloat16"
1416
+ },
1417
+ "transformer_blocks.2.attn1.norm_k.weight": {
1418
+ "shape": [
1419
+ 128
1420
+ ],
1421
+ "dtype": "torch.bfloat16"
1422
+ },
1423
+ "transformer_blocks.2.attn1.norm_q.weight": {
1424
+ "shape": [
1425
+ 128
1426
+ ],
1427
+ "dtype": "torch.bfloat16"
1428
+ },
1429
+ "transformer_blocks.2.attn1.to_k.weight": {
1430
+ "shape": [
1431
+ 2048,
1432
+ 2048
1433
+ ],
1434
+ "dtype": "torch.bfloat16"
1435
+ },
1436
+ "transformer_blocks.2.attn1.to_out.0.weight": {
1437
+ "shape": [
1438
+ 2048,
1439
+ 2048
1440
+ ],
1441
+ "dtype": "torch.bfloat16"
1442
+ },
1443
+ "transformer_blocks.2.attn1.to_q.weight": {
1444
+ "shape": [
1445
+ 2048,
1446
+ 2048
1447
+ ],
1448
+ "dtype": "torch.bfloat16"
1449
+ },
1450
+ "transformer_blocks.2.attn1.to_v.weight": {
1451
+ "shape": [
1452
+ 2048,
1453
+ 2048
1454
+ ],
1455
+ "dtype": "torch.bfloat16"
1456
+ },
1457
+ "transformer_blocks.2.attn2.norm_k.weight": {
1458
+ "shape": [
1459
+ 128
1460
+ ],
1461
+ "dtype": "torch.bfloat16"
1462
+ },
1463
+ "transformer_blocks.2.attn2.norm_q.weight": {
1464
+ "shape": [
1465
+ 128
1466
+ ],
1467
+ "dtype": "torch.bfloat16"
1468
+ },
1469
+ "transformer_blocks.2.attn2.to_k.weight": {
1470
+ "shape": [
1471
+ 2048,
1472
+ 1024
1473
+ ],
1474
+ "dtype": "torch.bfloat16"
1475
+ },
1476
+ "transformer_blocks.2.attn2.to_out.0.weight": {
1477
+ "shape": [
1478
+ 2048,
1479
+ 2048
1480
+ ],
1481
+ "dtype": "torch.bfloat16"
1482
+ },
1483
+ "transformer_blocks.2.attn2.to_q.weight": {
1484
+ "shape": [
1485
+ 2048,
1486
+ 2048
1487
+ ],
1488
+ "dtype": "torch.bfloat16"
1489
+ },
1490
+ "transformer_blocks.2.attn2.to_v.weight": {
1491
+ "shape": [
1492
+ 2048,
1493
+ 1024
1494
+ ],
1495
+ "dtype": "torch.bfloat16"
1496
+ },
1497
+ "transformer_blocks.2.ff.net.0.proj.weight": {
1498
+ "shape": [
1499
+ 8192,
1500
+ 2048
1501
+ ],
1502
+ "dtype": "torch.bfloat16"
1503
+ },
1504
+ "transformer_blocks.2.ff.net.2.weight": {
1505
+ "shape": [
1506
+ 2048,
1507
+ 8192
1508
+ ],
1509
+ "dtype": "torch.bfloat16"
1510
+ },
1511
+ "transformer_blocks.2.norm1.linear_1.weight": {
1512
+ "shape": [
1513
+ 256,
1514
+ 2048
1515
+ ],
1516
+ "dtype": "torch.bfloat16"
1517
+ },
1518
+ "transformer_blocks.2.norm1.linear_2.weight": {
1519
+ "shape": [
1520
+ 6144,
1521
+ 256
1522
+ ],
1523
+ "dtype": "torch.bfloat16"
1524
+ },
1525
+ "transformer_blocks.2.norm2.linear_1.weight": {
1526
+ "shape": [
1527
+ 256,
1528
+ 2048
1529
+ ],
1530
+ "dtype": "torch.bfloat16"
1531
+ },
1532
+ "transformer_blocks.2.norm2.linear_2.weight": {
1533
+ "shape": [
1534
+ 6144,
1535
+ 256
1536
+ ],
1537
+ "dtype": "torch.bfloat16"
1538
+ },
1539
+ "transformer_blocks.2.norm3.linear_1.weight": {
1540
+ "shape": [
1541
+ 256,
1542
+ 2048
1543
+ ],
1544
+ "dtype": "torch.bfloat16"
1545
+ },
1546
+ "transformer_blocks.2.norm3.linear_2.weight": {
1547
+ "shape": [
1548
+ 6144,
1549
+ 256
1550
+ ],
1551
+ "dtype": "torch.bfloat16"
1552
+ },
1553
+ "transformer_blocks.3.attn1.norm_k.weight": {
1554
+ "shape": [
1555
+ 128
1556
+ ],
1557
+ "dtype": "torch.bfloat16"
1558
+ },
1559
+ "transformer_blocks.3.attn1.norm_q.weight": {
1560
+ "shape": [
1561
+ 128
1562
+ ],
1563
+ "dtype": "torch.bfloat16"
1564
+ },
1565
+ "transformer_blocks.3.attn1.to_k.weight": {
1566
+ "shape": [
1567
+ 2048,
1568
+ 2048
1569
+ ],
1570
+ "dtype": "torch.bfloat16"
1571
+ },
1572
+ "transformer_blocks.3.attn1.to_out.0.weight": {
1573
+ "shape": [
1574
+ 2048,
1575
+ 2048
1576
+ ],
1577
+ "dtype": "torch.bfloat16"
1578
+ },
1579
+ "transformer_blocks.3.attn1.to_q.weight": {
1580
+ "shape": [
1581
+ 2048,
1582
+ 2048
1583
+ ],
1584
+ "dtype": "torch.bfloat16"
1585
+ },
1586
+ "transformer_blocks.3.attn1.to_v.weight": {
1587
+ "shape": [
1588
+ 2048,
1589
+ 2048
1590
+ ],
1591
+ "dtype": "torch.bfloat16"
1592
+ },
1593
+ "transformer_blocks.3.attn2.norm_k.weight": {
1594
+ "shape": [
1595
+ 128
1596
+ ],
1597
+ "dtype": "torch.bfloat16"
1598
+ },
1599
+ "transformer_blocks.3.attn2.norm_q.weight": {
1600
+ "shape": [
1601
+ 128
1602
+ ],
1603
+ "dtype": "torch.bfloat16"
1604
+ },
1605
+ "transformer_blocks.3.attn2.to_k.weight": {
1606
+ "shape": [
1607
+ 2048,
1608
+ 1024
1609
+ ],
1610
+ "dtype": "torch.bfloat16"
1611
+ },
1612
+ "transformer_blocks.3.attn2.to_out.0.weight": {
1613
+ "shape": [
1614
+ 2048,
1615
+ 2048
1616
+ ],
1617
+ "dtype": "torch.bfloat16"
1618
+ },
1619
+ "transformer_blocks.3.attn2.to_q.weight": {
1620
+ "shape": [
1621
+ 2048,
1622
+ 2048
1623
+ ],
1624
+ "dtype": "torch.bfloat16"
1625
+ },
1626
+ "transformer_blocks.3.attn2.to_v.weight": {
1627
+ "shape": [
1628
+ 2048,
1629
+ 1024
1630
+ ],
1631
+ "dtype": "torch.bfloat16"
1632
+ },
1633
+ "transformer_blocks.3.ff.net.0.proj.weight": {
1634
+ "shape": [
1635
+ 8192,
1636
+ 2048
1637
+ ],
1638
+ "dtype": "torch.bfloat16"
1639
+ },
1640
+ "transformer_blocks.3.ff.net.2.weight": {
1641
+ "shape": [
1642
+ 2048,
1643
+ 8192
1644
+ ],
1645
+ "dtype": "torch.bfloat16"
1646
+ },
1647
+ "transformer_blocks.3.norm1.linear_1.weight": {
1648
+ "shape": [
1649
+ 256,
1650
+ 2048
1651
+ ],
1652
+ "dtype": "torch.bfloat16"
1653
+ },
1654
+ "transformer_blocks.3.norm1.linear_2.weight": {
1655
+ "shape": [
1656
+ 6144,
1657
+ 256
1658
+ ],
1659
+ "dtype": "torch.bfloat16"
1660
+ },
1661
+ "transformer_blocks.3.norm2.linear_1.weight": {
1662
+ "shape": [
1663
+ 256,
1664
+ 2048
1665
+ ],
1666
+ "dtype": "torch.bfloat16"
1667
+ },
1668
+ "transformer_blocks.3.norm2.linear_2.weight": {
1669
+ "shape": [
1670
+ 6144,
1671
+ 256
1672
+ ],
1673
+ "dtype": "torch.bfloat16"
1674
+ },
1675
+ "transformer_blocks.3.norm3.linear_1.weight": {
1676
+ "shape": [
1677
+ 256,
1678
+ 2048
1679
+ ],
1680
+ "dtype": "torch.bfloat16"
1681
+ },
1682
+ "transformer_blocks.3.norm3.linear_2.weight": {
1683
+ "shape": [
1684
+ 6144,
1685
+ 256
1686
+ ],
1687
+ "dtype": "torch.bfloat16"
1688
+ },
1689
+ "transformer_blocks.4.attn1.norm_k.weight": {
1690
+ "shape": [
1691
+ 128
1692
+ ],
1693
+ "dtype": "torch.bfloat16"
1694
+ },
1695
+ "transformer_blocks.4.attn1.norm_q.weight": {
1696
+ "shape": [
1697
+ 128
1698
+ ],
1699
+ "dtype": "torch.bfloat16"
1700
+ },
1701
+ "transformer_blocks.4.attn1.to_k.weight": {
1702
+ "shape": [
1703
+ 2048,
1704
+ 2048
1705
+ ],
1706
+ "dtype": "torch.bfloat16"
1707
+ },
1708
+ "transformer_blocks.4.attn1.to_out.0.weight": {
1709
+ "shape": [
1710
+ 2048,
1711
+ 2048
1712
+ ],
1713
+ "dtype": "torch.bfloat16"
1714
+ },
1715
+ "transformer_blocks.4.attn1.to_q.weight": {
1716
+ "shape": [
1717
+ 2048,
1718
+ 2048
1719
+ ],
1720
+ "dtype": "torch.bfloat16"
1721
+ },
1722
+ "transformer_blocks.4.attn1.to_v.weight": {
1723
+ "shape": [
1724
+ 2048,
1725
+ 2048
1726
+ ],
1727
+ "dtype": "torch.bfloat16"
1728
+ },
1729
+ "transformer_blocks.4.attn2.norm_k.weight": {
1730
+ "shape": [
1731
+ 128
1732
+ ],
1733
+ "dtype": "torch.bfloat16"
1734
+ },
1735
+ "transformer_blocks.4.attn2.norm_q.weight": {
1736
+ "shape": [
1737
+ 128
1738
+ ],
1739
+ "dtype": "torch.bfloat16"
1740
+ },
1741
+ "transformer_blocks.4.attn2.to_k.weight": {
1742
+ "shape": [
1743
+ 2048,
1744
+ 1024
1745
+ ],
1746
+ "dtype": "torch.bfloat16"
1747
+ },
1748
+ "transformer_blocks.4.attn2.to_out.0.weight": {
1749
+ "shape": [
1750
+ 2048,
1751
+ 2048
1752
+ ],
1753
+ "dtype": "torch.bfloat16"
1754
+ },
1755
+ "transformer_blocks.4.attn2.to_q.weight": {
1756
+ "shape": [
1757
+ 2048,
1758
+ 2048
1759
+ ],
1760
+ "dtype": "torch.bfloat16"
1761
+ },
1762
+ "transformer_blocks.4.attn2.to_v.weight": {
1763
+ "shape": [
1764
+ 2048,
1765
+ 1024
1766
+ ],
1767
+ "dtype": "torch.bfloat16"
1768
+ },
1769
+ "transformer_blocks.4.ff.net.0.proj.weight": {
1770
+ "shape": [
1771
+ 8192,
1772
+ 2048
1773
+ ],
1774
+ "dtype": "torch.bfloat16"
1775
+ },
1776
+ "transformer_blocks.4.ff.net.2.weight": {
1777
+ "shape": [
1778
+ 2048,
1779
+ 8192
1780
+ ],
1781
+ "dtype": "torch.bfloat16"
1782
+ },
1783
+ "transformer_blocks.4.norm1.linear_1.weight": {
1784
+ "shape": [
1785
+ 256,
1786
+ 2048
1787
+ ],
1788
+ "dtype": "torch.bfloat16"
1789
+ },
1790
+ "transformer_blocks.4.norm1.linear_2.weight": {
1791
+ "shape": [
1792
+ 6144,
1793
+ 256
1794
+ ],
1795
+ "dtype": "torch.bfloat16"
1796
+ },
1797
+ "transformer_blocks.4.norm2.linear_1.weight": {
1798
+ "shape": [
1799
+ 256,
1800
+ 2048
1801
+ ],
1802
+ "dtype": "torch.bfloat16"
1803
+ },
1804
+ "transformer_blocks.4.norm2.linear_2.weight": {
1805
+ "shape": [
1806
+ 6144,
1807
+ 256
1808
+ ],
1809
+ "dtype": "torch.bfloat16"
1810
+ },
1811
+ "transformer_blocks.4.norm3.linear_1.weight": {
1812
+ "shape": [
1813
+ 256,
1814
+ 2048
1815
+ ],
1816
+ "dtype": "torch.bfloat16"
1817
+ },
1818
+ "transformer_blocks.4.norm3.linear_2.weight": {
1819
+ "shape": [
1820
+ 6144,
1821
+ 256
1822
+ ],
1823
+ "dtype": "torch.bfloat16"
1824
+ },
1825
+ "transformer_blocks.5.attn1.norm_k.weight": {
1826
+ "shape": [
1827
+ 128
1828
+ ],
1829
+ "dtype": "torch.bfloat16"
1830
+ },
1831
+ "transformer_blocks.5.attn1.norm_q.weight": {
1832
+ "shape": [
1833
+ 128
1834
+ ],
1835
+ "dtype": "torch.bfloat16"
1836
+ },
1837
+ "transformer_blocks.5.attn1.to_k.weight": {
1838
+ "shape": [
1839
+ 2048,
1840
+ 2048
1841
+ ],
1842
+ "dtype": "torch.bfloat16"
1843
+ },
1844
+ "transformer_blocks.5.attn1.to_out.0.weight": {
1845
+ "shape": [
1846
+ 2048,
1847
+ 2048
1848
+ ],
1849
+ "dtype": "torch.bfloat16"
1850
+ },
1851
+ "transformer_blocks.5.attn1.to_q.weight": {
1852
+ "shape": [
1853
+ 2048,
1854
+ 2048
1855
+ ],
1856
+ "dtype": "torch.bfloat16"
1857
+ },
1858
+ "transformer_blocks.5.attn1.to_v.weight": {
1859
+ "shape": [
1860
+ 2048,
1861
+ 2048
1862
+ ],
1863
+ "dtype": "torch.bfloat16"
1864
+ },
1865
+ "transformer_blocks.5.attn2.norm_k.weight": {
1866
+ "shape": [
1867
+ 128
1868
+ ],
1869
+ "dtype": "torch.bfloat16"
1870
+ },
1871
+ "transformer_blocks.5.attn2.norm_q.weight": {
1872
+ "shape": [
1873
+ 128
1874
+ ],
1875
+ "dtype": "torch.bfloat16"
1876
+ },
1877
+ "transformer_blocks.5.attn2.to_k.weight": {
1878
+ "shape": [
1879
+ 2048,
1880
+ 1024
1881
+ ],
1882
+ "dtype": "torch.bfloat16"
1883
+ },
1884
+ "transformer_blocks.5.attn2.to_out.0.weight": {
1885
+ "shape": [
1886
+ 2048,
1887
+ 2048
1888
+ ],
1889
+ "dtype": "torch.bfloat16"
1890
+ },
1891
+ "transformer_blocks.5.attn2.to_q.weight": {
1892
+ "shape": [
1893
+ 2048,
1894
+ 2048
1895
+ ],
1896
+ "dtype": "torch.bfloat16"
1897
+ },
1898
+ "transformer_blocks.5.attn2.to_v.weight": {
1899
+ "shape": [
1900
+ 2048,
1901
+ 1024
1902
+ ],
1903
+ "dtype": "torch.bfloat16"
1904
+ },
1905
+ "transformer_blocks.5.ff.net.0.proj.weight": {
1906
+ "shape": [
1907
+ 8192,
1908
+ 2048
1909
+ ],
1910
+ "dtype": "torch.bfloat16"
1911
+ },
1912
+ "transformer_blocks.5.ff.net.2.weight": {
1913
+ "shape": [
1914
+ 2048,
1915
+ 8192
1916
+ ],
1917
+ "dtype": "torch.bfloat16"
1918
+ },
1919
+ "transformer_blocks.5.norm1.linear_1.weight": {
1920
+ "shape": [
1921
+ 256,
1922
+ 2048
1923
+ ],
1924
+ "dtype": "torch.bfloat16"
1925
+ },
1926
+ "transformer_blocks.5.norm1.linear_2.weight": {
1927
+ "shape": [
1928
+ 6144,
1929
+ 256
1930
+ ],
1931
+ "dtype": "torch.bfloat16"
1932
+ },
1933
+ "transformer_blocks.5.norm2.linear_1.weight": {
1934
+ "shape": [
1935
+ 256,
1936
+ 2048
1937
+ ],
1938
+ "dtype": "torch.bfloat16"
1939
+ },
1940
+ "transformer_blocks.5.norm2.linear_2.weight": {
1941
+ "shape": [
1942
+ 6144,
1943
+ 256
1944
+ ],
1945
+ "dtype": "torch.bfloat16"
1946
+ },
1947
+ "transformer_blocks.5.norm3.linear_1.weight": {
1948
+ "shape": [
1949
+ 256,
1950
+ 2048
1951
+ ],
1952
+ "dtype": "torch.bfloat16"
1953
+ },
1954
+ "transformer_blocks.5.norm3.linear_2.weight": {
1955
+ "shape": [
1956
+ 6144,
1957
+ 256
1958
+ ],
1959
+ "dtype": "torch.bfloat16"
1960
+ },
1961
+ "transformer_blocks.6.attn1.norm_k.weight": {
1962
+ "shape": [
1963
+ 128
1964
+ ],
1965
+ "dtype": "torch.bfloat16"
1966
+ },
1967
+ "transformer_blocks.6.attn1.norm_q.weight": {
1968
+ "shape": [
1969
+ 128
1970
+ ],
1971
+ "dtype": "torch.bfloat16"
1972
+ },
1973
+ "transformer_blocks.6.attn1.to_k.weight": {
1974
+ "shape": [
1975
+ 2048,
1976
+ 2048
1977
+ ],
1978
+ "dtype": "torch.bfloat16"
1979
+ },
1980
+ "transformer_blocks.6.attn1.to_out.0.weight": {
1981
+ "shape": [
1982
+ 2048,
1983
+ 2048
1984
+ ],
1985
+ "dtype": "torch.bfloat16"
1986
+ },
1987
+ "transformer_blocks.6.attn1.to_q.weight": {
1988
+ "shape": [
1989
+ 2048,
1990
+ 2048
1991
+ ],
1992
+ "dtype": "torch.bfloat16"
1993
+ },
1994
+ "transformer_blocks.6.attn1.to_v.weight": {
1995
+ "shape": [
1996
+ 2048,
1997
+ 2048
1998
+ ],
1999
+ "dtype": "torch.bfloat16"
2000
+ },
2001
+ "transformer_blocks.6.attn2.norm_k.weight": {
2002
+ "shape": [
2003
+ 128
2004
+ ],
2005
+ "dtype": "torch.bfloat16"
2006
+ },
2007
+ "transformer_blocks.6.attn2.norm_q.weight": {
2008
+ "shape": [
2009
+ 128
2010
+ ],
2011
+ "dtype": "torch.bfloat16"
2012
+ },
2013
+ "transformer_blocks.6.attn2.to_k.weight": {
2014
+ "shape": [
2015
+ 2048,
2016
+ 1024
2017
+ ],
2018
+ "dtype": "torch.bfloat16"
2019
+ },
2020
+ "transformer_blocks.6.attn2.to_out.0.weight": {
2021
+ "shape": [
2022
+ 2048,
2023
+ 2048
2024
+ ],
2025
+ "dtype": "torch.bfloat16"
2026
+ },
2027
+ "transformer_blocks.6.attn2.to_q.weight": {
2028
+ "shape": [
2029
+ 2048,
2030
+ 2048
2031
+ ],
2032
+ "dtype": "torch.bfloat16"
2033
+ },
2034
+ "transformer_blocks.6.attn2.to_v.weight": {
2035
+ "shape": [
2036
+ 2048,
2037
+ 1024
2038
+ ],
2039
+ "dtype": "torch.bfloat16"
2040
+ },
2041
+ "transformer_blocks.6.ff.net.0.proj.weight": {
2042
+ "shape": [
2043
+ 8192,
2044
+ 2048
2045
+ ],
2046
+ "dtype": "torch.bfloat16"
2047
+ },
2048
+ "transformer_blocks.6.ff.net.2.weight": {
2049
+ "shape": [
2050
+ 2048,
2051
+ 8192
2052
+ ],
2053
+ "dtype": "torch.bfloat16"
2054
+ },
2055
+ "transformer_blocks.6.norm1.linear_1.weight": {
2056
+ "shape": [
2057
+ 256,
2058
+ 2048
2059
+ ],
2060
+ "dtype": "torch.bfloat16"
2061
+ },
2062
+ "transformer_blocks.6.norm1.linear_2.weight": {
2063
+ "shape": [
2064
+ 6144,
2065
+ 256
2066
+ ],
2067
+ "dtype": "torch.bfloat16"
2068
+ },
2069
+ "transformer_blocks.6.norm2.linear_1.weight": {
2070
+ "shape": [
2071
+ 256,
2072
+ 2048
2073
+ ],
2074
+ "dtype": "torch.bfloat16"
2075
+ },
2076
+ "transformer_blocks.6.norm2.linear_2.weight": {
2077
+ "shape": [
2078
+ 6144,
2079
+ 256
2080
+ ],
2081
+ "dtype": "torch.bfloat16"
2082
+ },
2083
+ "transformer_blocks.6.norm3.linear_1.weight": {
2084
+ "shape": [
2085
+ 256,
2086
+ 2048
2087
+ ],
2088
+ "dtype": "torch.bfloat16"
2089
+ },
2090
+ "transformer_blocks.6.norm3.linear_2.weight": {
2091
+ "shape": [
2092
+ 6144,
2093
+ 256
2094
+ ],
2095
+ "dtype": "torch.bfloat16"
2096
+ },
2097
+ "transformer_blocks.7.attn1.norm_k.weight": {
2098
+ "shape": [
2099
+ 128
2100
+ ],
2101
+ "dtype": "torch.bfloat16"
2102
+ },
2103
+ "transformer_blocks.7.attn1.norm_q.weight": {
2104
+ "shape": [
2105
+ 128
2106
+ ],
2107
+ "dtype": "torch.bfloat16"
2108
+ },
2109
+ "transformer_blocks.7.attn1.to_k.weight": {
2110
+ "shape": [
2111
+ 2048,
2112
+ 2048
2113
+ ],
2114
+ "dtype": "torch.bfloat16"
2115
+ },
2116
+ "transformer_blocks.7.attn1.to_out.0.weight": {
2117
+ "shape": [
2118
+ 2048,
2119
+ 2048
2120
+ ],
2121
+ "dtype": "torch.bfloat16"
2122
+ },
2123
+ "transformer_blocks.7.attn1.to_q.weight": {
2124
+ "shape": [
2125
+ 2048,
2126
+ 2048
2127
+ ],
2128
+ "dtype": "torch.bfloat16"
2129
+ },
2130
+ "transformer_blocks.7.attn1.to_v.weight": {
2131
+ "shape": [
2132
+ 2048,
2133
+ 2048
2134
+ ],
2135
+ "dtype": "torch.bfloat16"
2136
+ },
2137
+ "transformer_blocks.7.attn2.norm_k.weight": {
2138
+ "shape": [
2139
+ 128
2140
+ ],
2141
+ "dtype": "torch.bfloat16"
2142
+ },
2143
+ "transformer_blocks.7.attn2.norm_q.weight": {
2144
+ "shape": [
2145
+ 128
2146
+ ],
2147
+ "dtype": "torch.bfloat16"
2148
+ },
2149
+ "transformer_blocks.7.attn2.to_k.weight": {
2150
+ "shape": [
2151
+ 2048,
2152
+ 1024
2153
+ ],
2154
+ "dtype": "torch.bfloat16"
2155
+ },
2156
+ "transformer_blocks.7.attn2.to_out.0.weight": {
2157
+ "shape": [
2158
+ 2048,
2159
+ 2048
2160
+ ],
2161
+ "dtype": "torch.bfloat16"
2162
+ },
2163
+ "transformer_blocks.7.attn2.to_q.weight": {
2164
+ "shape": [
2165
+ 2048,
2166
+ 2048
2167
+ ],
2168
+ "dtype": "torch.bfloat16"
2169
+ },
2170
+ "transformer_blocks.7.attn2.to_v.weight": {
2171
+ "shape": [
2172
+ 2048,
2173
+ 1024
2174
+ ],
2175
+ "dtype": "torch.bfloat16"
2176
+ },
2177
+ "transformer_blocks.7.ff.net.0.proj.weight": {
2178
+ "shape": [
2179
+ 8192,
2180
+ 2048
2181
+ ],
2182
+ "dtype": "torch.bfloat16"
2183
+ },
2184
+ "transformer_blocks.7.ff.net.2.weight": {
2185
+ "shape": [
2186
+ 2048,
2187
+ 8192
2188
+ ],
2189
+ "dtype": "torch.bfloat16"
2190
+ },
2191
+ "transformer_blocks.7.norm1.linear_1.weight": {
2192
+ "shape": [
2193
+ 256,
2194
+ 2048
2195
+ ],
2196
+ "dtype": "torch.bfloat16"
2197
+ },
2198
+ "transformer_blocks.7.norm1.linear_2.weight": {
2199
+ "shape": [
2200
+ 6144,
2201
+ 256
2202
+ ],
2203
+ "dtype": "torch.bfloat16"
2204
+ },
2205
+ "transformer_blocks.7.norm2.linear_1.weight": {
2206
+ "shape": [
2207
+ 256,
2208
+ 2048
2209
+ ],
2210
+ "dtype": "torch.bfloat16"
2211
+ },
2212
+ "transformer_blocks.7.norm2.linear_2.weight": {
2213
+ "shape": [
2214
+ 6144,
2215
+ 256
2216
+ ],
2217
+ "dtype": "torch.bfloat16"
2218
+ },
2219
+ "transformer_blocks.7.norm3.linear_1.weight": {
2220
+ "shape": [
2221
+ 256,
2222
+ 2048
2223
+ ],
2224
+ "dtype": "torch.bfloat16"
2225
+ },
2226
+ "transformer_blocks.7.norm3.linear_2.weight": {
2227
+ "shape": [
2228
+ 6144,
2229
+ 256
2230
+ ],
2231
+ "dtype": "torch.bfloat16"
2232
+ },
2233
+ "transformer_blocks.8.attn1.norm_k.weight": {
2234
+ "shape": [
2235
+ 128
2236
+ ],
2237
+ "dtype": "torch.bfloat16"
2238
+ },
2239
+ "transformer_blocks.8.attn1.norm_q.weight": {
2240
+ "shape": [
2241
+ 128
2242
+ ],
2243
+ "dtype": "torch.bfloat16"
2244
+ },
2245
+ "transformer_blocks.8.attn1.to_k.weight": {
2246
+ "shape": [
2247
+ 2048,
2248
+ 2048
2249
+ ],
2250
+ "dtype": "torch.bfloat16"
2251
+ },
2252
+ "transformer_blocks.8.attn1.to_out.0.weight": {
2253
+ "shape": [
2254
+ 2048,
2255
+ 2048
2256
+ ],
2257
+ "dtype": "torch.bfloat16"
2258
+ },
2259
+ "transformer_blocks.8.attn1.to_q.weight": {
2260
+ "shape": [
2261
+ 2048,
2262
+ 2048
2263
+ ],
2264
+ "dtype": "torch.bfloat16"
2265
+ },
2266
+ "transformer_blocks.8.attn1.to_v.weight": {
2267
+ "shape": [
2268
+ 2048,
2269
+ 2048
2270
+ ],
2271
+ "dtype": "torch.bfloat16"
2272
+ },
2273
+ "transformer_blocks.8.attn2.norm_k.weight": {
2274
+ "shape": [
2275
+ 128
2276
+ ],
2277
+ "dtype": "torch.bfloat16"
2278
+ },
2279
+ "transformer_blocks.8.attn2.norm_q.weight": {
2280
+ "shape": [
2281
+ 128
2282
+ ],
2283
+ "dtype": "torch.bfloat16"
2284
+ },
2285
+ "transformer_blocks.8.attn2.to_k.weight": {
2286
+ "shape": [
2287
+ 2048,
2288
+ 1024
2289
+ ],
2290
+ "dtype": "torch.bfloat16"
2291
+ },
2292
+ "transformer_blocks.8.attn2.to_out.0.weight": {
2293
+ "shape": [
2294
+ 2048,
2295
+ 2048
2296
+ ],
2297
+ "dtype": "torch.bfloat16"
2298
+ },
2299
+ "transformer_blocks.8.attn2.to_q.weight": {
2300
+ "shape": [
2301
+ 2048,
2302
+ 2048
2303
+ ],
2304
+ "dtype": "torch.bfloat16"
2305
+ },
2306
+ "transformer_blocks.8.attn2.to_v.weight": {
2307
+ "shape": [
2308
+ 2048,
2309
+ 1024
2310
+ ],
2311
+ "dtype": "torch.bfloat16"
2312
+ },
2313
+ "transformer_blocks.8.ff.net.0.proj.weight": {
2314
+ "shape": [
2315
+ 8192,
2316
+ 2048
2317
+ ],
2318
+ "dtype": "torch.bfloat16"
2319
+ },
2320
+ "transformer_blocks.8.ff.net.2.weight": {
2321
+ "shape": [
2322
+ 2048,
2323
+ 8192
2324
+ ],
2325
+ "dtype": "torch.bfloat16"
2326
+ },
2327
+ "transformer_blocks.8.norm1.linear_1.weight": {
2328
+ "shape": [
2329
+ 256,
2330
+ 2048
2331
+ ],
2332
+ "dtype": "torch.bfloat16"
2333
+ },
2334
+ "transformer_blocks.8.norm1.linear_2.weight": {
2335
+ "shape": [
2336
+ 6144,
2337
+ 256
2338
+ ],
2339
+ "dtype": "torch.bfloat16"
2340
+ },
2341
+ "transformer_blocks.8.norm2.linear_1.weight": {
2342
+ "shape": [
2343
+ 256,
2344
+ 2048
2345
+ ],
2346
+ "dtype": "torch.bfloat16"
2347
+ },
2348
+ "transformer_blocks.8.norm2.linear_2.weight": {
2349
+ "shape": [
2350
+ 6144,
2351
+ 256
2352
+ ],
2353
+ "dtype": "torch.bfloat16"
2354
+ },
2355
+ "transformer_blocks.8.norm3.linear_1.weight": {
2356
+ "shape": [
2357
+ 256,
2358
+ 2048
2359
+ ],
2360
+ "dtype": "torch.bfloat16"
2361
+ },
2362
+ "transformer_blocks.8.norm3.linear_2.weight": {
2363
+ "shape": [
2364
+ 6144,
2365
+ 256
2366
+ ],
2367
+ "dtype": "torch.bfloat16"
2368
+ },
2369
+ "transformer_blocks.9.attn1.norm_k.weight": {
2370
+ "shape": [
2371
+ 128
2372
+ ],
2373
+ "dtype": "torch.bfloat16"
2374
+ },
2375
+ "transformer_blocks.9.attn1.norm_q.weight": {
2376
+ "shape": [
2377
+ 128
2378
+ ],
2379
+ "dtype": "torch.bfloat16"
2380
+ },
2381
+ "transformer_blocks.9.attn1.to_k.weight": {
2382
+ "shape": [
2383
+ 2048,
2384
+ 2048
2385
+ ],
2386
+ "dtype": "torch.bfloat16"
2387
+ },
2388
+ "transformer_blocks.9.attn1.to_out.0.weight": {
2389
+ "shape": [
2390
+ 2048,
2391
+ 2048
2392
+ ],
2393
+ "dtype": "torch.bfloat16"
2394
+ },
2395
+ "transformer_blocks.9.attn1.to_q.weight": {
2396
+ "shape": [
2397
+ 2048,
2398
+ 2048
2399
+ ],
2400
+ "dtype": "torch.bfloat16"
2401
+ },
2402
+ "transformer_blocks.9.attn1.to_v.weight": {
2403
+ "shape": [
2404
+ 2048,
2405
+ 2048
2406
+ ],
2407
+ "dtype": "torch.bfloat16"
2408
+ },
2409
+ "transformer_blocks.9.attn2.norm_k.weight": {
2410
+ "shape": [
2411
+ 128
2412
+ ],
2413
+ "dtype": "torch.bfloat16"
2414
+ },
2415
+ "transformer_blocks.9.attn2.norm_q.weight": {
2416
+ "shape": [
2417
+ 128
2418
+ ],
2419
+ "dtype": "torch.bfloat16"
2420
+ },
2421
+ "transformer_blocks.9.attn2.to_k.weight": {
2422
+ "shape": [
2423
+ 2048,
2424
+ 1024
2425
+ ],
2426
+ "dtype": "torch.bfloat16"
2427
+ },
2428
+ "transformer_blocks.9.attn2.to_out.0.weight": {
2429
+ "shape": [
2430
+ 2048,
2431
+ 2048
2432
+ ],
2433
+ "dtype": "torch.bfloat16"
2434
+ },
2435
+ "transformer_blocks.9.attn2.to_q.weight": {
2436
+ "shape": [
2437
+ 2048,
2438
+ 2048
2439
+ ],
2440
+ "dtype": "torch.bfloat16"
2441
+ },
2442
+ "transformer_blocks.9.attn2.to_v.weight": {
2443
+ "shape": [
2444
+ 2048,
2445
+ 1024
2446
+ ],
2447
+ "dtype": "torch.bfloat16"
2448
+ },
2449
+ "transformer_blocks.9.ff.net.0.proj.weight": {
2450
+ "shape": [
2451
+ 8192,
2452
+ 2048
2453
+ ],
2454
+ "dtype": "torch.bfloat16"
2455
+ },
2456
+ "transformer_blocks.9.ff.net.2.weight": {
2457
+ "shape": [
2458
+ 2048,
2459
+ 8192
2460
+ ],
2461
+ "dtype": "torch.bfloat16"
2462
+ },
2463
+ "transformer_blocks.9.norm1.linear_1.weight": {
2464
+ "shape": [
2465
+ 256,
2466
+ 2048
2467
+ ],
2468
+ "dtype": "torch.bfloat16"
2469
+ },
2470
+ "transformer_blocks.9.norm1.linear_2.weight": {
2471
+ "shape": [
2472
+ 6144,
2473
+ 256
2474
+ ],
2475
+ "dtype": "torch.bfloat16"
2476
+ },
2477
+ "transformer_blocks.9.norm2.linear_1.weight": {
2478
+ "shape": [
2479
+ 256,
2480
+ 2048
2481
+ ],
2482
+ "dtype": "torch.bfloat16"
2483
+ },
2484
+ "transformer_blocks.9.norm2.linear_2.weight": {
2485
+ "shape": [
2486
+ 6144,
2487
+ 256
2488
+ ],
2489
+ "dtype": "torch.bfloat16"
2490
+ },
2491
+ "transformer_blocks.9.norm3.linear_1.weight": {
2492
+ "shape": [
2493
+ 256,
2494
+ 2048
2495
+ ],
2496
+ "dtype": "torch.bfloat16"
2497
+ },
2498
+ "transformer_blocks.9.norm3.linear_2.weight": {
2499
+ "shape": [
2500
+ 6144,
2501
+ 256
2502
+ ],
2503
+ "dtype": "torch.bfloat16"
2504
+ },
2505
+ "norm_out.linear_1.weight": {
2506
+ "shape": [
2507
+ 256,
2508
+ 2048
2509
+ ],
2510
+ "dtype": "torch.bfloat16"
2511
+ },
2512
+ "norm_out.linear_2.weight": {
2513
+ "shape": [
2514
+ 4096,
2515
+ 256
2516
+ ],
2517
+ "dtype": "torch.bfloat16"
2518
+ },
2519
+ "proj_out.weight": {
2520
+ "shape": [
2521
+ 64,
2522
+ 2048
2523
+ ],
2524
+ "dtype": "torch.bfloat16"
2525
+ },
2526
+ "transformer_blocks.17.ff.net.0.proj.weight": {
2527
+ "shape": [
2528
+ 8192,
2529
+ 2048
2530
+ ],
2531
+ "dtype": "torch.bfloat16"
2532
+ },
2533
+ "transformer_blocks.17.ff.net.2.weight": {
2534
+ "shape": [
2535
+ 2048,
2536
+ 8192
2537
+ ],
2538
+ "dtype": "torch.bfloat16"
2539
+ },
2540
+ "transformer_blocks.18.attn1.norm_k.weight": {
2541
+ "shape": [
2542
+ 128
2543
+ ],
2544
+ "dtype": "torch.bfloat16"
2545
+ },
2546
+ "transformer_blocks.18.attn1.norm_q.weight": {
2547
+ "shape": [
2548
+ 128
2549
+ ],
2550
+ "dtype": "torch.bfloat16"
2551
+ },
2552
+ "transformer_blocks.18.attn1.to_k.weight": {
2553
+ "shape": [
2554
+ 2048,
2555
+ 2048
2556
+ ],
2557
+ "dtype": "torch.bfloat16"
2558
+ },
2559
+ "transformer_blocks.18.attn1.to_out.0.weight": {
2560
+ "shape": [
2561
+ 2048,
2562
+ 2048
2563
+ ],
2564
+ "dtype": "torch.bfloat16"
2565
+ },
2566
+ "transformer_blocks.18.attn1.to_q.weight": {
2567
+ "shape": [
2568
+ 2048,
2569
+ 2048
2570
+ ],
2571
+ "dtype": "torch.bfloat16"
2572
+ },
2573
+ "transformer_blocks.18.attn1.to_v.weight": {
2574
+ "shape": [
2575
+ 2048,
2576
+ 2048
2577
+ ],
2578
+ "dtype": "torch.bfloat16"
2579
+ },
2580
+ "transformer_blocks.18.attn2.norm_k.weight": {
2581
+ "shape": [
2582
+ 128
2583
+ ],
2584
+ "dtype": "torch.bfloat16"
2585
+ },
2586
+ "transformer_blocks.18.attn2.norm_q.weight": {
2587
+ "shape": [
2588
+ 128
2589
+ ],
2590
+ "dtype": "torch.bfloat16"
2591
+ },
2592
+ "transformer_blocks.18.attn2.to_k.weight": {
2593
+ "shape": [
2594
+ 2048,
2595
+ 1024
2596
+ ],
2597
+ "dtype": "torch.bfloat16"
2598
+ },
2599
+ "transformer_blocks.18.attn2.to_out.0.weight": {
2600
+ "shape": [
2601
+ 2048,
2602
+ 2048
2603
+ ],
2604
+ "dtype": "torch.bfloat16"
2605
+ },
2606
+ "transformer_blocks.18.attn2.to_q.weight": {
2607
+ "shape": [
2608
+ 2048,
2609
+ 2048
2610
+ ],
2611
+ "dtype": "torch.bfloat16"
2612
+ },
2613
+ "transformer_blocks.18.attn2.to_v.weight": {
2614
+ "shape": [
2615
+ 2048,
2616
+ 1024
2617
+ ],
2618
+ "dtype": "torch.bfloat16"
2619
+ },
2620
+ "transformer_blocks.18.ff.net.0.proj.weight": {
2621
+ "shape": [
2622
+ 8192,
2623
+ 2048
2624
+ ],
2625
+ "dtype": "torch.bfloat16"
2626
+ },
2627
+ "transformer_blocks.18.ff.net.2.weight": {
2628
+ "shape": [
2629
+ 2048,
2630
+ 8192
2631
+ ],
2632
+ "dtype": "torch.bfloat16"
2633
+ },
2634
+ "transformer_blocks.18.norm1.linear_1.weight": {
2635
+ "shape": [
2636
+ 256,
2637
+ 2048
2638
+ ],
2639
+ "dtype": "torch.bfloat16"
2640
+ },
2641
+ "transformer_blocks.18.norm1.linear_2.weight": {
2642
+ "shape": [
2643
+ 6144,
2644
+ 256
2645
+ ],
2646
+ "dtype": "torch.bfloat16"
2647
+ },
2648
+ "transformer_blocks.18.norm2.linear_1.weight": {
2649
+ "shape": [
2650
+ 256,
2651
+ 2048
2652
+ ],
2653
+ "dtype": "torch.bfloat16"
2654
+ },
2655
+ "transformer_blocks.18.norm2.linear_2.weight": {
2656
+ "shape": [
2657
+ 6144,
2658
+ 256
2659
+ ],
2660
+ "dtype": "torch.bfloat16"
2661
+ },
2662
+ "transformer_blocks.18.norm3.linear_1.weight": {
2663
+ "shape": [
2664
+ 256,
2665
+ 2048
2666
+ ],
2667
+ "dtype": "torch.bfloat16"
2668
+ },
2669
+ "transformer_blocks.18.norm3.linear_2.weight": {
2670
+ "shape": [
2671
+ 6144,
2672
+ 256
2673
+ ],
2674
+ "dtype": "torch.bfloat16"
2675
+ },
2676
+ "transformer_blocks.19.attn1.norm_k.weight": {
2677
+ "shape": [
2678
+ 128
2679
+ ],
2680
+ "dtype": "torch.bfloat16"
2681
+ },
2682
+ "transformer_blocks.19.attn1.norm_q.weight": {
2683
+ "shape": [
2684
+ 128
2685
+ ],
2686
+ "dtype": "torch.bfloat16"
2687
+ },
2688
+ "transformer_blocks.19.attn1.to_k.weight": {
2689
+ "shape": [
2690
+ 2048,
2691
+ 2048
2692
+ ],
2693
+ "dtype": "torch.bfloat16"
2694
+ },
2695
+ "transformer_blocks.19.attn1.to_out.0.weight": {
2696
+ "shape": [
2697
+ 2048,
2698
+ 2048
2699
+ ],
2700
+ "dtype": "torch.bfloat16"
2701
+ },
2702
+ "transformer_blocks.19.attn1.to_q.weight": {
2703
+ "shape": [
2704
+ 2048,
2705
+ 2048
2706
+ ],
2707
+ "dtype": "torch.bfloat16"
2708
+ },
2709
+ "transformer_blocks.19.attn1.to_v.weight": {
2710
+ "shape": [
2711
+ 2048,
2712
+ 2048
2713
+ ],
2714
+ "dtype": "torch.bfloat16"
2715
+ },
2716
+ "transformer_blocks.19.attn2.norm_k.weight": {
2717
+ "shape": [
2718
+ 128
2719
+ ],
2720
+ "dtype": "torch.bfloat16"
2721
+ },
2722
+ "transformer_blocks.19.attn2.norm_q.weight": {
2723
+ "shape": [
2724
+ 128
2725
+ ],
2726
+ "dtype": "torch.bfloat16"
2727
+ },
2728
+ "transformer_blocks.19.attn2.to_k.weight": {
2729
+ "shape": [
2730
+ 2048,
2731
+ 1024
2732
+ ],
2733
+ "dtype": "torch.bfloat16"
2734
+ },
2735
+ "transformer_blocks.19.attn2.to_out.0.weight": {
2736
+ "shape": [
2737
+ 2048,
2738
+ 2048
2739
+ ],
2740
+ "dtype": "torch.bfloat16"
2741
+ },
2742
+ "transformer_blocks.19.attn2.to_q.weight": {
2743
+ "shape": [
2744
+ 2048,
2745
+ 2048
2746
+ ],
2747
+ "dtype": "torch.bfloat16"
2748
+ },
2749
+ "transformer_blocks.19.attn2.to_v.weight": {
2750
+ "shape": [
2751
+ 2048,
2752
+ 1024
2753
+ ],
2754
+ "dtype": "torch.bfloat16"
2755
+ },
2756
+ "transformer_blocks.19.ff.net.0.proj.weight": {
2757
+ "shape": [
2758
+ 8192,
2759
+ 2048
2760
+ ],
2761
+ "dtype": "torch.bfloat16"
2762
+ },
2763
+ "transformer_blocks.19.ff.net.2.weight": {
2764
+ "shape": [
2765
+ 2048,
2766
+ 8192
2767
+ ],
2768
+ "dtype": "torch.bfloat16"
2769
+ },
2770
+ "transformer_blocks.19.norm1.linear_1.weight": {
2771
+ "shape": [
2772
+ 256,
2773
+ 2048
2774
+ ],
2775
+ "dtype": "torch.bfloat16"
2776
+ },
2777
+ "transformer_blocks.19.norm1.linear_2.weight": {
2778
+ "shape": [
2779
+ 6144,
2780
+ 256
2781
+ ],
2782
+ "dtype": "torch.bfloat16"
2783
+ },
2784
+ "transformer_blocks.19.norm2.linear_1.weight": {
2785
+ "shape": [
2786
+ 256,
2787
+ 2048
2788
+ ],
2789
+ "dtype": "torch.bfloat16"
2790
+ },
2791
+ "transformer_blocks.19.norm2.linear_2.weight": {
2792
+ "shape": [
2793
+ 6144,
2794
+ 256
2795
+ ],
2796
+ "dtype": "torch.bfloat16"
2797
+ },
2798
+ "transformer_blocks.19.norm3.linear_1.weight": {
2799
+ "shape": [
2800
+ 256,
2801
+ 2048
2802
+ ],
2803
+ "dtype": "torch.bfloat16"
2804
+ },
2805
+ "transformer_blocks.19.norm3.linear_2.weight": {
2806
+ "shape": [
2807
+ 6144,
2808
+ 256
2809
+ ],
2810
+ "dtype": "torch.bfloat16"
2811
+ },
2812
+ "transformer_blocks.20.attn1.norm_k.weight": {
2813
+ "shape": [
2814
+ 128
2815
+ ],
2816
+ "dtype": "torch.bfloat16"
2817
+ },
2818
+ "transformer_blocks.20.attn1.norm_q.weight": {
2819
+ "shape": [
2820
+ 128
2821
+ ],
2822
+ "dtype": "torch.bfloat16"
2823
+ },
2824
+ "transformer_blocks.20.attn1.to_k.weight": {
2825
+ "shape": [
2826
+ 2048,
2827
+ 2048
2828
+ ],
2829
+ "dtype": "torch.bfloat16"
2830
+ },
2831
+ "transformer_blocks.20.attn1.to_out.0.weight": {
2832
+ "shape": [
2833
+ 2048,
2834
+ 2048
2835
+ ],
2836
+ "dtype": "torch.bfloat16"
2837
+ },
2838
+ "transformer_blocks.20.attn1.to_q.weight": {
2839
+ "shape": [
2840
+ 2048,
2841
+ 2048
2842
+ ],
2843
+ "dtype": "torch.bfloat16"
2844
+ },
2845
+ "transformer_blocks.20.attn1.to_v.weight": {
2846
+ "shape": [
2847
+ 2048,
2848
+ 2048
2849
+ ],
2850
+ "dtype": "torch.bfloat16"
2851
+ },
2852
+ "transformer_blocks.20.attn2.norm_k.weight": {
2853
+ "shape": [
2854
+ 128
2855
+ ],
2856
+ "dtype": "torch.bfloat16"
2857
+ },
2858
+ "transformer_blocks.20.attn2.norm_q.weight": {
2859
+ "shape": [
2860
+ 128
2861
+ ],
2862
+ "dtype": "torch.bfloat16"
2863
+ },
2864
+ "transformer_blocks.20.attn2.to_k.weight": {
2865
+ "shape": [
2866
+ 2048,
2867
+ 1024
2868
+ ],
2869
+ "dtype": "torch.bfloat16"
2870
+ },
2871
+ "transformer_blocks.20.attn2.to_out.0.weight": {
2872
+ "shape": [
2873
+ 2048,
2874
+ 2048
2875
+ ],
2876
+ "dtype": "torch.bfloat16"
2877
+ },
2878
+ "transformer_blocks.20.attn2.to_q.weight": {
2879
+ "shape": [
2880
+ 2048,
2881
+ 2048
2882
+ ],
2883
+ "dtype": "torch.bfloat16"
2884
+ },
2885
+ "transformer_blocks.20.attn2.to_v.weight": {
2886
+ "shape": [
2887
+ 2048,
2888
+ 1024
2889
+ ],
2890
+ "dtype": "torch.bfloat16"
2891
+ },
2892
+ "transformer_blocks.20.ff.net.0.proj.weight": {
2893
+ "shape": [
2894
+ 8192,
2895
+ 2048
2896
+ ],
2897
+ "dtype": "torch.bfloat16"
2898
+ },
2899
+ "transformer_blocks.20.ff.net.2.weight": {
2900
+ "shape": [
2901
+ 2048,
2902
+ 8192
2903
+ ],
2904
+ "dtype": "torch.bfloat16"
2905
+ },
2906
+ "transformer_blocks.20.norm1.linear_1.weight": {
2907
+ "shape": [
2908
+ 256,
2909
+ 2048
2910
+ ],
2911
+ "dtype": "torch.bfloat16"
2912
+ },
2913
+ "transformer_blocks.20.norm1.linear_2.weight": {
2914
+ "shape": [
2915
+ 6144,
2916
+ 256
2917
+ ],
2918
+ "dtype": "torch.bfloat16"
2919
+ },
2920
+ "transformer_blocks.20.norm2.linear_1.weight": {
2921
+ "shape": [
2922
+ 256,
2923
+ 2048
2924
+ ],
2925
+ "dtype": "torch.bfloat16"
2926
+ },
2927
+ "transformer_blocks.20.norm2.linear_2.weight": {
2928
+ "shape": [
2929
+ 6144,
2930
+ 256
2931
+ ],
2932
+ "dtype": "torch.bfloat16"
2933
+ },
2934
+ "transformer_blocks.20.norm3.linear_1.weight": {
2935
+ "shape": [
2936
+ 256,
2937
+ 2048
2938
+ ],
2939
+ "dtype": "torch.bfloat16"
2940
+ },
2941
+ "transformer_blocks.20.norm3.linear_2.weight": {
2942
+ "shape": [
2943
+ 6144,
2944
+ 256
2945
+ ],
2946
+ "dtype": "torch.bfloat16"
2947
+ },
2948
+ "transformer_blocks.21.attn1.norm_k.weight": {
2949
+ "shape": [
2950
+ 128
2951
+ ],
2952
+ "dtype": "torch.bfloat16"
2953
+ },
2954
+ "transformer_blocks.21.attn1.norm_q.weight": {
2955
+ "shape": [
2956
+ 128
2957
+ ],
2958
+ "dtype": "torch.bfloat16"
2959
+ },
2960
+ "transformer_blocks.21.attn1.to_k.weight": {
2961
+ "shape": [
2962
+ 2048,
2963
+ 2048
2964
+ ],
2965
+ "dtype": "torch.bfloat16"
2966
+ },
2967
+ "transformer_blocks.21.attn1.to_out.0.weight": {
2968
+ "shape": [
2969
+ 2048,
2970
+ 2048
2971
+ ],
2972
+ "dtype": "torch.bfloat16"
2973
+ },
2974
+ "transformer_blocks.21.attn1.to_q.weight": {
2975
+ "shape": [
2976
+ 2048,
2977
+ 2048
2978
+ ],
2979
+ "dtype": "torch.bfloat16"
2980
+ },
2981
+ "transformer_blocks.21.attn1.to_v.weight": {
2982
+ "shape": [
2983
+ 2048,
2984
+ 2048
2985
+ ],
2986
+ "dtype": "torch.bfloat16"
2987
+ },
2988
+ "transformer_blocks.21.attn2.norm_k.weight": {
2989
+ "shape": [
2990
+ 128
2991
+ ],
2992
+ "dtype": "torch.bfloat16"
2993
+ },
2994
+ "transformer_blocks.21.attn2.norm_q.weight": {
2995
+ "shape": [
2996
+ 128
2997
+ ],
2998
+ "dtype": "torch.bfloat16"
2999
+ },
3000
+ "transformer_blocks.21.attn2.to_k.weight": {
3001
+ "shape": [
3002
+ 2048,
3003
+ 1024
3004
+ ],
3005
+ "dtype": "torch.bfloat16"
3006
+ },
3007
+ "transformer_blocks.21.attn2.to_out.0.weight": {
3008
+ "shape": [
3009
+ 2048,
3010
+ 2048
3011
+ ],
3012
+ "dtype": "torch.bfloat16"
3013
+ },
3014
+ "transformer_blocks.21.attn2.to_q.weight": {
3015
+ "shape": [
3016
+ 2048,
3017
+ 2048
3018
+ ],
3019
+ "dtype": "torch.bfloat16"
3020
+ },
3021
+ "transformer_blocks.21.attn2.to_v.weight": {
3022
+ "shape": [
3023
+ 2048,
3024
+ 1024
3025
+ ],
3026
+ "dtype": "torch.bfloat16"
3027
+ },
3028
+ "transformer_blocks.21.ff.net.0.proj.weight": {
3029
+ "shape": [
3030
+ 8192,
3031
+ 2048
3032
+ ],
3033
+ "dtype": "torch.bfloat16"
3034
+ },
3035
+ "transformer_blocks.21.ff.net.2.weight": {
3036
+ "shape": [
3037
+ 2048,
3038
+ 8192
3039
+ ],
3040
+ "dtype": "torch.bfloat16"
3041
+ },
3042
+ "transformer_blocks.21.norm1.linear_1.weight": {
3043
+ "shape": [
3044
+ 256,
3045
+ 2048
3046
+ ],
3047
+ "dtype": "torch.bfloat16"
3048
+ },
3049
+ "transformer_blocks.21.norm1.linear_2.weight": {
3050
+ "shape": [
3051
+ 6144,
3052
+ 256
3053
+ ],
3054
+ "dtype": "torch.bfloat16"
3055
+ },
3056
+ "transformer_blocks.21.norm2.linear_1.weight": {
3057
+ "shape": [
3058
+ 256,
3059
+ 2048
3060
+ ],
3061
+ "dtype": "torch.bfloat16"
3062
+ },
3063
+ "transformer_blocks.21.norm2.linear_2.weight": {
3064
+ "shape": [
3065
+ 6144,
3066
+ 256
3067
+ ],
3068
+ "dtype": "torch.bfloat16"
3069
+ },
3070
+ "transformer_blocks.21.norm3.linear_1.weight": {
3071
+ "shape": [
3072
+ 256,
3073
+ 2048
3074
+ ],
3075
+ "dtype": "torch.bfloat16"
3076
+ },
3077
+ "transformer_blocks.21.norm3.linear_2.weight": {
3078
+ "shape": [
3079
+ 6144,
3080
+ 256
3081
+ ],
3082
+ "dtype": "torch.bfloat16"
3083
+ },
3084
+ "transformer_blocks.22.attn1.norm_k.weight": {
3085
+ "shape": [
3086
+ 128
3087
+ ],
3088
+ "dtype": "torch.bfloat16"
3089
+ },
3090
+ "transformer_blocks.22.attn1.norm_q.weight": {
3091
+ "shape": [
3092
+ 128
3093
+ ],
3094
+ "dtype": "torch.bfloat16"
3095
+ },
3096
+ "transformer_blocks.22.attn1.to_k.weight": {
3097
+ "shape": [
3098
+ 2048,
3099
+ 2048
3100
+ ],
3101
+ "dtype": "torch.bfloat16"
3102
+ },
3103
+ "transformer_blocks.22.attn1.to_out.0.weight": {
3104
+ "shape": [
3105
+ 2048,
3106
+ 2048
3107
+ ],
3108
+ "dtype": "torch.bfloat16"
3109
+ },
3110
+ "transformer_blocks.22.attn1.to_q.weight": {
3111
+ "shape": [
3112
+ 2048,
3113
+ 2048
3114
+ ],
3115
+ "dtype": "torch.bfloat16"
3116
+ },
3117
+ "transformer_blocks.22.attn1.to_v.weight": {
3118
+ "shape": [
3119
+ 2048,
3120
+ 2048
3121
+ ],
3122
+ "dtype": "torch.bfloat16"
3123
+ },
3124
+ "transformer_blocks.22.attn2.norm_k.weight": {
3125
+ "shape": [
3126
+ 128
3127
+ ],
3128
+ "dtype": "torch.bfloat16"
3129
+ },
3130
+ "transformer_blocks.22.attn2.norm_q.weight": {
3131
+ "shape": [
3132
+ 128
3133
+ ],
3134
+ "dtype": "torch.bfloat16"
3135
+ },
3136
+ "transformer_blocks.22.attn2.to_k.weight": {
3137
+ "shape": [
3138
+ 2048,
3139
+ 1024
3140
+ ],
3141
+ "dtype": "torch.bfloat16"
3142
+ },
3143
+ "transformer_blocks.22.attn2.to_out.0.weight": {
3144
+ "shape": [
3145
+ 2048,
3146
+ 2048
3147
+ ],
3148
+ "dtype": "torch.bfloat16"
3149
+ },
3150
+ "transformer_blocks.22.attn2.to_q.weight": {
3151
+ "shape": [
3152
+ 2048,
3153
+ 2048
3154
+ ],
3155
+ "dtype": "torch.bfloat16"
3156
+ },
3157
+ "transformer_blocks.22.attn2.to_v.weight": {
3158
+ "shape": [
3159
+ 2048,
3160
+ 1024
3161
+ ],
3162
+ "dtype": "torch.bfloat16"
3163
+ },
3164
+ "transformer_blocks.22.ff.net.0.proj.weight": {
3165
+ "shape": [
3166
+ 8192,
3167
+ 2048
3168
+ ],
3169
+ "dtype": "torch.bfloat16"
3170
+ },
3171
+ "transformer_blocks.22.ff.net.2.weight": {
3172
+ "shape": [
3173
+ 2048,
3174
+ 8192
3175
+ ],
3176
+ "dtype": "torch.bfloat16"
3177
+ },
3178
+ "transformer_blocks.22.norm1.linear_1.weight": {
3179
+ "shape": [
3180
+ 256,
3181
+ 2048
3182
+ ],
3183
+ "dtype": "torch.bfloat16"
3184
+ },
3185
+ "transformer_blocks.22.norm1.linear_2.weight": {
3186
+ "shape": [
3187
+ 6144,
3188
+ 256
3189
+ ],
3190
+ "dtype": "torch.bfloat16"
3191
+ },
3192
+ "transformer_blocks.22.norm2.linear_1.weight": {
3193
+ "shape": [
3194
+ 256,
3195
+ 2048
3196
+ ],
3197
+ "dtype": "torch.bfloat16"
3198
+ },
3199
+ "transformer_blocks.22.norm2.linear_2.weight": {
3200
+ "shape": [
3201
+ 6144,
3202
+ 256
3203
+ ],
3204
+ "dtype": "torch.bfloat16"
3205
+ },
3206
+ "transformer_blocks.22.norm3.linear_1.weight": {
3207
+ "shape": [
3208
+ 256,
3209
+ 2048
3210
+ ],
3211
+ "dtype": "torch.bfloat16"
3212
+ },
3213
+ "transformer_blocks.22.norm3.linear_2.weight": {
3214
+ "shape": [
3215
+ 6144,
3216
+ 256
3217
+ ],
3218
+ "dtype": "torch.bfloat16"
3219
+ },
3220
+ "transformer_blocks.23.attn1.norm_k.weight": {
3221
+ "shape": [
3222
+ 128
3223
+ ],
3224
+ "dtype": "torch.bfloat16"
3225
+ },
3226
+ "transformer_blocks.23.attn1.norm_q.weight": {
3227
+ "shape": [
3228
+ 128
3229
+ ],
3230
+ "dtype": "torch.bfloat16"
3231
+ },
3232
+ "transformer_blocks.23.attn1.to_k.weight": {
3233
+ "shape": [
3234
+ 2048,
3235
+ 2048
3236
+ ],
3237
+ "dtype": "torch.bfloat16"
3238
+ },
3239
+ "transformer_blocks.23.attn1.to_out.0.weight": {
3240
+ "shape": [
3241
+ 2048,
3242
+ 2048
3243
+ ],
3244
+ "dtype": "torch.bfloat16"
3245
+ },
3246
+ "transformer_blocks.23.attn1.to_q.weight": {
3247
+ "shape": [
3248
+ 2048,
3249
+ 2048
3250
+ ],
3251
+ "dtype": "torch.bfloat16"
3252
+ },
3253
+ "transformer_blocks.23.attn1.to_v.weight": {
3254
+ "shape": [
3255
+ 2048,
3256
+ 2048
3257
+ ],
3258
+ "dtype": "torch.bfloat16"
3259
+ },
3260
+ "transformer_blocks.23.attn2.norm_k.weight": {
3261
+ "shape": [
3262
+ 128
3263
+ ],
3264
+ "dtype": "torch.bfloat16"
3265
+ },
3266
+ "transformer_blocks.23.attn2.norm_q.weight": {
3267
+ "shape": [
3268
+ 128
3269
+ ],
3270
+ "dtype": "torch.bfloat16"
3271
+ },
3272
+ "transformer_blocks.23.attn2.to_k.weight": {
3273
+ "shape": [
3274
+ 2048,
3275
+ 1024
3276
+ ],
3277
+ "dtype": "torch.bfloat16"
3278
+ },
3279
+ "transformer_blocks.23.attn2.to_out.0.weight": {
3280
+ "shape": [
3281
+ 2048,
3282
+ 2048
3283
+ ],
3284
+ "dtype": "torch.bfloat16"
3285
+ },
3286
+ "transformer_blocks.23.attn2.to_q.weight": {
3287
+ "shape": [
3288
+ 2048,
3289
+ 2048
3290
+ ],
3291
+ "dtype": "torch.bfloat16"
3292
+ },
3293
+ "transformer_blocks.23.attn2.to_v.weight": {
3294
+ "shape": [
3295
+ 2048,
3296
+ 1024
3297
+ ],
3298
+ "dtype": "torch.bfloat16"
3299
+ },
3300
+ "transformer_blocks.23.ff.net.0.proj.weight": {
3301
+ "shape": [
3302
+ 8192,
3303
+ 2048
3304
+ ],
3305
+ "dtype": "torch.bfloat16"
3306
+ },
3307
+ "transformer_blocks.23.ff.net.2.weight": {
3308
+ "shape": [
3309
+ 2048,
3310
+ 8192
3311
+ ],
3312
+ "dtype": "torch.bfloat16"
3313
+ },
3314
+ "transformer_blocks.23.norm1.linear_1.weight": {
3315
+ "shape": [
3316
+ 256,
3317
+ 2048
3318
+ ],
3319
+ "dtype": "torch.bfloat16"
3320
+ },
3321
+ "transformer_blocks.23.norm1.linear_2.weight": {
3322
+ "shape": [
3323
+ 6144,
3324
+ 256
3325
+ ],
3326
+ "dtype": "torch.bfloat16"
3327
+ },
3328
+ "transformer_blocks.23.norm2.linear_1.weight": {
3329
+ "shape": [
3330
+ 256,
3331
+ 2048
3332
+ ],
3333
+ "dtype": "torch.bfloat16"
3334
+ },
3335
+ "transformer_blocks.23.norm2.linear_2.weight": {
3336
+ "shape": [
3337
+ 6144,
3338
+ 256
3339
+ ],
3340
+ "dtype": "torch.bfloat16"
3341
+ },
3342
+ "transformer_blocks.23.norm3.linear_1.weight": {
3343
+ "shape": [
3344
+ 256,
3345
+ 2048
3346
+ ],
3347
+ "dtype": "torch.bfloat16"
3348
+ },
3349
+ "transformer_blocks.23.norm3.linear_2.weight": {
3350
+ "shape": [
3351
+ 6144,
3352
+ 256
3353
+ ],
3354
+ "dtype": "torch.bfloat16"
3355
+ },
3356
+ "transformer_blocks.24.attn1.norm_k.weight": {
3357
+ "shape": [
3358
+ 128
3359
+ ],
3360
+ "dtype": "torch.bfloat16"
3361
+ },
3362
+ "transformer_blocks.24.attn1.norm_q.weight": {
3363
+ "shape": [
3364
+ 128
3365
+ ],
3366
+ "dtype": "torch.bfloat16"
3367
+ },
3368
+ "transformer_blocks.24.attn1.to_k.weight": {
3369
+ "shape": [
3370
+ 2048,
3371
+ 2048
3372
+ ],
3373
+ "dtype": "torch.bfloat16"
3374
+ },
3375
+ "transformer_blocks.24.attn1.to_out.0.weight": {
3376
+ "shape": [
3377
+ 2048,
3378
+ 2048
3379
+ ],
3380
+ "dtype": "torch.bfloat16"
3381
+ },
3382
+ "transformer_blocks.24.attn1.to_q.weight": {
3383
+ "shape": [
3384
+ 2048,
3385
+ 2048
3386
+ ],
3387
+ "dtype": "torch.bfloat16"
3388
+ },
3389
+ "transformer_blocks.24.attn1.to_v.weight": {
3390
+ "shape": [
3391
+ 2048,
3392
+ 2048
3393
+ ],
3394
+ "dtype": "torch.bfloat16"
3395
+ },
3396
+ "transformer_blocks.24.attn2.norm_k.weight": {
3397
+ "shape": [
3398
+ 128
3399
+ ],
3400
+ "dtype": "torch.bfloat16"
3401
+ },
3402
+ "transformer_blocks.24.attn2.norm_q.weight": {
3403
+ "shape": [
3404
+ 128
3405
+ ],
3406
+ "dtype": "torch.bfloat16"
3407
+ },
3408
+ "transformer_blocks.24.attn2.to_k.weight": {
3409
+ "shape": [
3410
+ 2048,
3411
+ 1024
3412
+ ],
3413
+ "dtype": "torch.bfloat16"
3414
+ },
3415
+ "transformer_blocks.24.attn2.to_out.0.weight": {
3416
+ "shape": [
3417
+ 2048,
3418
+ 2048
3419
+ ],
3420
+ "dtype": "torch.bfloat16"
3421
+ },
3422
+ "transformer_blocks.24.attn2.to_q.weight": {
3423
+ "shape": [
3424
+ 2048,
3425
+ 2048
3426
+ ],
3427
+ "dtype": "torch.bfloat16"
3428
+ },
3429
+ "transformer_blocks.24.attn2.to_v.weight": {
3430
+ "shape": [
3431
+ 2048,
3432
+ 1024
3433
+ ],
3434
+ "dtype": "torch.bfloat16"
3435
+ },
3436
+ "transformer_blocks.24.ff.net.0.proj.weight": {
3437
+ "shape": [
3438
+ 8192,
3439
+ 2048
3440
+ ],
3441
+ "dtype": "torch.bfloat16"
3442
+ },
3443
+ "transformer_blocks.24.ff.net.2.weight": {
3444
+ "shape": [
3445
+ 2048,
3446
+ 8192
3447
+ ],
3448
+ "dtype": "torch.bfloat16"
3449
+ },
3450
+ "transformer_blocks.24.norm1.linear_1.weight": {
3451
+ "shape": [
3452
+ 256,
3453
+ 2048
3454
+ ],
3455
+ "dtype": "torch.bfloat16"
3456
+ },
3457
+ "transformer_blocks.24.norm1.linear_2.weight": {
3458
+ "shape": [
3459
+ 6144,
3460
+ 256
3461
+ ],
3462
+ "dtype": "torch.bfloat16"
3463
+ },
3464
+ "transformer_blocks.24.norm2.linear_1.weight": {
3465
+ "shape": [
3466
+ 256,
3467
+ 2048
3468
+ ],
3469
+ "dtype": "torch.bfloat16"
3470
+ },
3471
+ "transformer_blocks.24.norm2.linear_2.weight": {
3472
+ "shape": [
3473
+ 6144,
3474
+ 256
3475
+ ],
3476
+ "dtype": "torch.bfloat16"
3477
+ },
3478
+ "transformer_blocks.24.norm3.linear_1.weight": {
3479
+ "shape": [
3480
+ 256,
3481
+ 2048
3482
+ ],
3483
+ "dtype": "torch.bfloat16"
3484
+ },
3485
+ "transformer_blocks.24.norm3.linear_2.weight": {
3486
+ "shape": [
3487
+ 6144,
3488
+ 256
3489
+ ],
3490
+ "dtype": "torch.bfloat16"
3491
+ },
3492
+ "transformer_blocks.25.attn1.norm_k.weight": {
3493
+ "shape": [
3494
+ 128
3495
+ ],
3496
+ "dtype": "torch.bfloat16"
3497
+ },
3498
+ "transformer_blocks.25.attn1.norm_q.weight": {
3499
+ "shape": [
3500
+ 128
3501
+ ],
3502
+ "dtype": "torch.bfloat16"
3503
+ },
3504
+ "transformer_blocks.25.attn1.to_k.weight": {
3505
+ "shape": [
3506
+ 2048,
3507
+ 2048
3508
+ ],
3509
+ "dtype": "torch.bfloat16"
3510
+ },
3511
+ "transformer_blocks.25.attn1.to_out.0.weight": {
3512
+ "shape": [
3513
+ 2048,
3514
+ 2048
3515
+ ],
3516
+ "dtype": "torch.bfloat16"
3517
+ },
3518
+ "transformer_blocks.25.attn1.to_q.weight": {
3519
+ "shape": [
3520
+ 2048,
3521
+ 2048
3522
+ ],
3523
+ "dtype": "torch.bfloat16"
3524
+ },
3525
+ "transformer_blocks.25.attn1.to_v.weight": {
3526
+ "shape": [
3527
+ 2048,
3528
+ 2048
3529
+ ],
3530
+ "dtype": "torch.bfloat16"
3531
+ },
3532
+ "transformer_blocks.25.attn2.norm_k.weight": {
3533
+ "shape": [
3534
+ 128
3535
+ ],
3536
+ "dtype": "torch.bfloat16"
3537
+ },
3538
+ "transformer_blocks.25.attn2.norm_q.weight": {
3539
+ "shape": [
3540
+ 128
3541
+ ],
3542
+ "dtype": "torch.bfloat16"
3543
+ },
3544
+ "transformer_blocks.25.attn2.to_k.weight": {
3545
+ "shape": [
3546
+ 2048,
3547
+ 1024
3548
+ ],
3549
+ "dtype": "torch.bfloat16"
3550
+ },
3551
+ "transformer_blocks.25.attn2.to_out.0.weight": {
3552
+ "shape": [
3553
+ 2048,
3554
+ 2048
3555
+ ],
3556
+ "dtype": "torch.bfloat16"
3557
+ },
3558
+ "transformer_blocks.25.attn2.to_q.weight": {
3559
+ "shape": [
3560
+ 2048,
3561
+ 2048
3562
+ ],
3563
+ "dtype": "torch.bfloat16"
3564
+ },
3565
+ "transformer_blocks.25.attn2.to_v.weight": {
3566
+ "shape": [
3567
+ 2048,
3568
+ 1024
3569
+ ],
3570
+ "dtype": "torch.bfloat16"
3571
+ },
3572
+ "transformer_blocks.25.ff.net.0.proj.weight": {
3573
+ "shape": [
3574
+ 8192,
3575
+ 2048
3576
+ ],
3577
+ "dtype": "torch.bfloat16"
3578
+ },
3579
+ "transformer_blocks.25.ff.net.2.weight": {
3580
+ "shape": [
3581
+ 2048,
3582
+ 8192
3583
+ ],
3584
+ "dtype": "torch.bfloat16"
3585
+ },
3586
+ "transformer_blocks.25.norm1.linear_1.weight": {
3587
+ "shape": [
3588
+ 256,
3589
+ 2048
3590
+ ],
3591
+ "dtype": "torch.bfloat16"
3592
+ },
3593
+ "transformer_blocks.25.norm1.linear_2.weight": {
3594
+ "shape": [
3595
+ 6144,
3596
+ 256
3597
+ ],
3598
+ "dtype": "torch.bfloat16"
3599
+ },
3600
+ "transformer_blocks.25.norm2.linear_1.weight": {
3601
+ "shape": [
3602
+ 256,
3603
+ 2048
3604
+ ],
3605
+ "dtype": "torch.bfloat16"
3606
+ },
3607
+ "transformer_blocks.25.norm2.linear_2.weight": {
3608
+ "shape": [
3609
+ 6144,
3610
+ 256
3611
+ ],
3612
+ "dtype": "torch.bfloat16"
3613
+ },
3614
+ "transformer_blocks.25.norm3.linear_1.weight": {
3615
+ "shape": [
3616
+ 256,
3617
+ 2048
3618
+ ],
3619
+ "dtype": "torch.bfloat16"
3620
+ },
3621
+ "transformer_blocks.25.norm3.linear_2.weight": {
3622
+ "shape": [
3623
+ 6144,
3624
+ 256
3625
+ ],
3626
+ "dtype": "torch.bfloat16"
3627
+ },
3628
+ "transformer_blocks.26.attn1.norm_k.weight": {
3629
+ "shape": [
3630
+ 128
3631
+ ],
3632
+ "dtype": "torch.bfloat16"
3633
+ },
3634
+ "transformer_blocks.26.attn1.norm_q.weight": {
3635
+ "shape": [
3636
+ 128
3637
+ ],
3638
+ "dtype": "torch.bfloat16"
3639
+ },
3640
+ "transformer_blocks.26.attn1.to_k.weight": {
3641
+ "shape": [
3642
+ 2048,
3643
+ 2048
3644
+ ],
3645
+ "dtype": "torch.bfloat16"
3646
+ },
3647
+ "transformer_blocks.26.attn1.to_out.0.weight": {
3648
+ "shape": [
3649
+ 2048,
3650
+ 2048
3651
+ ],
3652
+ "dtype": "torch.bfloat16"
3653
+ },
3654
+ "transformer_blocks.26.attn1.to_q.weight": {
3655
+ "shape": [
3656
+ 2048,
3657
+ 2048
3658
+ ],
3659
+ "dtype": "torch.bfloat16"
3660
+ },
3661
+ "transformer_blocks.26.attn1.to_v.weight": {
3662
+ "shape": [
3663
+ 2048,
3664
+ 2048
3665
+ ],
3666
+ "dtype": "torch.bfloat16"
3667
+ },
3668
+ "transformer_blocks.26.attn2.norm_k.weight": {
3669
+ "shape": [
3670
+ 128
3671
+ ],
3672
+ "dtype": "torch.bfloat16"
3673
+ },
3674
+ "transformer_blocks.26.attn2.norm_q.weight": {
3675
+ "shape": [
3676
+ 128
3677
+ ],
3678
+ "dtype": "torch.bfloat16"
3679
+ },
3680
+ "transformer_blocks.26.attn2.to_k.weight": {
3681
+ "shape": [
3682
+ 2048,
3683
+ 1024
3684
+ ],
3685
+ "dtype": "torch.bfloat16"
3686
+ },
3687
+ "transformer_blocks.26.attn2.to_out.0.weight": {
3688
+ "shape": [
3689
+ 2048,
3690
+ 2048
3691
+ ],
3692
+ "dtype": "torch.bfloat16"
3693
+ },
3694
+ "transformer_blocks.26.attn2.to_q.weight": {
3695
+ "shape": [
3696
+ 2048,
3697
+ 2048
3698
+ ],
3699
+ "dtype": "torch.bfloat16"
3700
+ },
3701
+ "transformer_blocks.26.attn2.to_v.weight": {
3702
+ "shape": [
3703
+ 2048,
3704
+ 1024
3705
+ ],
3706
+ "dtype": "torch.bfloat16"
3707
+ },
3708
+ "transformer_blocks.26.ff.net.0.proj.weight": {
3709
+ "shape": [
3710
+ 8192,
3711
+ 2048
3712
+ ],
3713
+ "dtype": "torch.bfloat16"
3714
+ },
3715
+ "transformer_blocks.26.ff.net.2.weight": {
3716
+ "shape": [
3717
+ 2048,
3718
+ 8192
3719
+ ],
3720
+ "dtype": "torch.bfloat16"
3721
+ },
3722
+ "transformer_blocks.26.norm1.linear_1.weight": {
3723
+ "shape": [
3724
+ 256,
3725
+ 2048
3726
+ ],
3727
+ "dtype": "torch.bfloat16"
3728
+ },
3729
+ "transformer_blocks.26.norm1.linear_2.weight": {
3730
+ "shape": [
3731
+ 6144,
3732
+ 256
3733
+ ],
3734
+ "dtype": "torch.bfloat16"
3735
+ },
3736
+ "transformer_blocks.26.norm2.linear_1.weight": {
3737
+ "shape": [
3738
+ 256,
3739
+ 2048
3740
+ ],
3741
+ "dtype": "torch.bfloat16"
3742
+ },
3743
+ "transformer_blocks.26.norm2.linear_2.weight": {
3744
+ "shape": [
3745
+ 6144,
3746
+ 256
3747
+ ],
3748
+ "dtype": "torch.bfloat16"
3749
+ },
3750
+ "transformer_blocks.26.norm3.linear_1.weight": {
3751
+ "shape": [
3752
+ 256,
3753
+ 2048
3754
+ ],
3755
+ "dtype": "torch.bfloat16"
3756
+ },
3757
+ "transformer_blocks.26.norm3.linear_2.weight": {
3758
+ "shape": [
3759
+ 6144,
3760
+ 256
3761
+ ],
3762
+ "dtype": "torch.bfloat16"
3763
+ },
3764
+ "transformer_blocks.27.attn1.norm_k.weight": {
3765
+ "shape": [
3766
+ 128
3767
+ ],
3768
+ "dtype": "torch.bfloat16"
3769
+ },
3770
+ "transformer_blocks.27.attn1.norm_q.weight": {
3771
+ "shape": [
3772
+ 128
3773
+ ],
3774
+ "dtype": "torch.bfloat16"
3775
+ },
3776
+ "transformer_blocks.27.attn1.to_k.weight": {
3777
+ "shape": [
3778
+ 2048,
3779
+ 2048
3780
+ ],
3781
+ "dtype": "torch.bfloat16"
3782
+ },
3783
+ "transformer_blocks.27.attn1.to_out.0.weight": {
3784
+ "shape": [
3785
+ 2048,
3786
+ 2048
3787
+ ],
3788
+ "dtype": "torch.bfloat16"
3789
+ },
3790
+ "transformer_blocks.27.attn1.to_q.weight": {
3791
+ "shape": [
3792
+ 2048,
3793
+ 2048
3794
+ ],
3795
+ "dtype": "torch.bfloat16"
3796
+ },
3797
+ "transformer_blocks.27.attn1.to_v.weight": {
3798
+ "shape": [
3799
+ 2048,
3800
+ 2048
3801
+ ],
3802
+ "dtype": "torch.bfloat16"
3803
+ },
3804
+ "transformer_blocks.27.attn2.norm_k.weight": {
3805
+ "shape": [
3806
+ 128
3807
+ ],
3808
+ "dtype": "torch.bfloat16"
3809
+ },
3810
+ "transformer_blocks.27.attn2.norm_q.weight": {
3811
+ "shape": [
3812
+ 128
3813
+ ],
3814
+ "dtype": "torch.bfloat16"
3815
+ },
3816
+ "transformer_blocks.27.attn2.to_k.weight": {
3817
+ "shape": [
3818
+ 2048,
3819
+ 1024
3820
+ ],
3821
+ "dtype": "torch.bfloat16"
3822
+ },
3823
+ "transformer_blocks.27.attn2.to_out.0.weight": {
3824
+ "shape": [
3825
+ 2048,
3826
+ 2048
3827
+ ],
3828
+ "dtype": "torch.bfloat16"
3829
+ },
3830
+ "transformer_blocks.27.attn2.to_q.weight": {
3831
+ "shape": [
3832
+ 2048,
3833
+ 2048
3834
+ ],
3835
+ "dtype": "torch.bfloat16"
3836
+ },
3837
+ "transformer_blocks.27.attn2.to_v.weight": {
3838
+ "shape": [
3839
+ 2048,
3840
+ 1024
3841
+ ],
3842
+ "dtype": "torch.bfloat16"
3843
+ },
3844
+ "transformer_blocks.27.ff.net.0.proj.weight": {
3845
+ "shape": [
3846
+ 8192,
3847
+ 2048
3848
+ ],
3849
+ "dtype": "torch.bfloat16"
3850
+ },
3851
+ "transformer_blocks.27.ff.net.2.weight": {
3852
+ "shape": [
3853
+ 2048,
3854
+ 8192
3855
+ ],
3856
+ "dtype": "torch.bfloat16"
3857
+ },
3858
+ "transformer_blocks.27.norm1.linear_1.weight": {
3859
+ "shape": [
3860
+ 256,
3861
+ 2048
3862
+ ],
3863
+ "dtype": "torch.bfloat16"
3864
+ },
3865
+ "transformer_blocks.27.norm1.linear_2.weight": {
3866
+ "shape": [
3867
+ 6144,
3868
+ 256
3869
+ ],
3870
+ "dtype": "torch.bfloat16"
3871
+ },
3872
+ "transformer_blocks.27.norm2.linear_1.weight": {
3873
+ "shape": [
3874
+ 256,
3875
+ 2048
3876
+ ],
3877
+ "dtype": "torch.bfloat16"
3878
+ },
3879
+ "transformer_blocks.27.norm2.linear_2.weight": {
3880
+ "shape": [
3881
+ 6144,
3882
+ 256
3883
+ ],
3884
+ "dtype": "torch.bfloat16"
3885
+ },
3886
+ "transformer_blocks.27.norm3.linear_1.weight": {
3887
+ "shape": [
3888
+ 256,
3889
+ 2048
3890
+ ],
3891
+ "dtype": "torch.bfloat16"
3892
+ },
3893
+ "transformer_blocks.27.norm3.linear_2.weight": {
3894
+ "shape": [
3895
+ 6144,
3896
+ 256
3897
+ ],
3898
+ "dtype": "torch.bfloat16"
3899
+ }
3900
+ },
3901
+ "all_tensors_exact_bf16_cast": true,
3902
+ "k_conditioning_preserved": true,
3903
+ "source_vs_export_bf16_forward_max_abs_errors": [
3904
+ 0.0,
3905
+ 0.0,
3906
+ 0.0,
3907
+ 0.0
3908
+ ],
3909
+ "transformer_sha256": "8ea644535ab333540320c6c3d13969c4487c1a6f1135898322317b0b0fb4bf99",
3910
+ "former_hub_revision": "ad1cb61e3d569dc01b748f83ceb58a8199583cee"
3911
+ }
transformer/config.json CHANGED
@@ -1,7 +1,6 @@
1
  {
2
- "_class_name": "CosmosTransformer3DModel",
3
- "_diffusers_version": "0.39.0.dev0",
4
- "_name_or_path": "/home/shynggys-saparbek/.cache/huggingface/hub/models--nvidia--Cosmos-Predict2-2B-Text2Image/snapshots/acdb5fde992a73ef0355f287977d002cbfd127e0/transformer",
5
  "adaln_lora_dim": 256,
6
  "attention_head_dim": 128,
7
  "concat_padding_mask": true,
@@ -32,6 +31,8 @@
32
  4.0,
33
  4.0
34
  ],
 
 
35
  "text_embed_dim": 1024,
36
  "use_crossattn_projection": false
37
  }
 
1
  {
2
+ "_class_name": "CosmosTDMUnifyTransformer3DModel",
3
+ "_diffusers_version": "0.39.0",
 
4
  "adaln_lora_dim": 256,
5
  "attention_head_dim": 128,
6
  "concat_padding_mask": true,
 
31
  4.0,
32
  4.0
33
  ],
34
+ "tdm_unify_initial_scale": 0.01,
35
+ "tdm_unify_shift": 3.0,
36
  "text_embed_dim": 1024,
37
  "use_crossattn_projection": false
38
  }
transformer/diffusion_pytorch_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8aa61a9a670f6bec45b12aae22cebd44a16c209359f8fc3550e80a5a3fc7c5fa
3
- size 3912877104
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ea644535ab333540320c6c3d13969c4487c1a6f1135898322317b0b0fb4bf99
3
+ size 3946436162