Skip to content

Commit

Permalink
add license info
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyu-guo committed Nov 8, 2024
1 parent c57a566 commit 6811f69
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# SmoothCache
Implementation of SmoothCache, a project aimed at speeding-up Diffusion Transformer (DiT) based GenAI models with error-guided caching.

# License
SmoothCache is licensed under the [Apache-2.0](LICENSE) license.
17 changes: 16 additions & 1 deletion SmoothCache/diffuser_cache_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
# SmoothCache/diffuser_cache_helper.py
# Copyright 2022 Roblox Corporation

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# https://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Helper Class for Diffusion Transformer Implemented at
https://github.com/huggingface/diffusers/tree/main/src/diffusers/pipelines/dit"""

from .smooth_cache_helper import SmoothCacheHelper

Expand Down
17 changes: 16 additions & 1 deletion SmoothCache/dit_cache_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
# SmoothCache/dit_cache_helper.py
# Copyright 2022 Roblox Corporation

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# https://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Helper Class for Diffusion Transformer Implemented at
https://github.com/facebookresearch/DiT"""

from .smooth_cache_helper import SmoothCacheHelper

Expand Down
16 changes: 15 additions & 1 deletion SmoothCache/smooth_cache_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
# SmoothCache/smooth_cache_helper.py
# Copyright 2022 Roblox Corporation

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# https://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Core SmoothCache Helper Implementation"""

from typing import Dict, Any, Optional, List, Union, Type
import torch
Expand Down

0 comments on commit 6811f69

Please sign in to comment.