Skip to content

Commit 6d0a2c3

Browse files
committed
add license headers, remove commented out code.
1 parent 42c3920 commit 6d0a2c3

3 files changed

Lines changed: 32 additions & 3 deletions

File tree

src/maxdiffusion/models/attention_flax.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,6 @@ def wrap_flash_attention(query, key, value):
210210
q_seq_shards=1, # the sizes of the axis is sharding over seq_len
211211
block_sizes=block_sizes,
212212
)
213-
# jax.debug.print("query.shape: {x}", x=query.shape)
214-
# jax.debug.print("key.shape: {x}", x=key.shape)
215-
# jax.debug.print("value.shape: {x}", x=value.shape)
216213
attention_output = jax.vmap(splash_kernel)(query, key, value)
217214
return attention_output
218215

src/maxdiffusion/models/gradient_checkpoint.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
"""
2+
Copyright 2025 Google LLC
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
https://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
"""
16+
117
from enum import Enum, auto
218
from typing import Optional
319

src/maxdiffusion/models/wan/wan_utils.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
"""
2+
Copyright 2025 Google LLC
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
https://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
"""
16+
117
import os
218
import json
319
import torch

0 commit comments

Comments
 (0)