diff --git a/README.md b/README.md index 85673c3..1e2f1c4 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file diff --git a/SmoothCache/diffuser_cache_helper.py b/SmoothCache/diffuser_cache_helper.py index 6461640..c8291af 100644 --- a/SmoothCache/diffuser_cache_helper.py +++ b/SmoothCache/diffuser_cache_helper.py @@ -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 diff --git a/SmoothCache/dit_cache_helper.py b/SmoothCache/dit_cache_helper.py index bb85cbe..178d6d2 100644 --- a/SmoothCache/dit_cache_helper.py +++ b/SmoothCache/dit_cache_helper.py @@ -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 diff --git a/SmoothCache/smooth_cache_helper.py b/SmoothCache/smooth_cache_helper.py index 90cd463..d7298d1 100644 --- a/SmoothCache/smooth_cache_helper.py +++ b/SmoothCache/smooth_cache_helper.py @@ -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