diff --git a/LICENSE b/LICENSE
index 81000948cc4e..2f7f12054730 100644
--- a/LICENSE
+++ b/LICENSE
@@ -341,6 +341,38 @@ License: https://github.com/LMAX-Exchange/disruptor/blob/master/LICENCE.txt
--------------------------------------------------------------------------------
+The following file includes code modified from GLIDE project.
+
+./iotdb-core/ainode/iotdb/ainode/core/model/sundial/flow_loss.py
+
+The GLIDE project is open source software licensed under the MIT License.
+Project page: https://github.com/openai/glide-text2im
+License: https://github.com/openai/glide-text2im/blob/main/LICENSE
+
+MIT License
+
+Copyright (c) 2021 OpenAI
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+--------------------------------------------------------------------------------
+
The following files include code modified from chronos-forecasting project.
./iotdb-core/ainode/iotdb/ainode/core/model/chronos2/*
@@ -348,6 +380,7 @@ The following files include code modified from chronos-forecasting project.
The chronos-forecasting is open source software licensed under the Apache License 2.0
Project page: https://github.com/amazon-science/chronos-forecasting
License: https://github.com/amazon-science/chronos-forecasting/blob/main/LICENSE
+Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
--------------------------------------------------------------------------------
@@ -358,6 +391,7 @@ The following files include code modified from uni2ts project.
The uni2ts is open source software licensed under the Apache License 2.0
Project page: https://github.com/SalesforceAIResearch/uni2ts
License: https://github.com/SalesforceAIResearch/uni2ts/blob/main/LICENSE.txt
+Copyright (c) 2024, Salesforce, Inc.
--------------------------------------------------------------------------------
diff --git a/NOTICE b/NOTICE
index 79e9122a3d1d..b457766a81ba 100644
--- a/NOTICE
+++ b/NOTICE
@@ -26,8 +26,16 @@ This product includes source code derived from the DataDog/toto project:
============================================================================
+This product includes source code derived from the chronos-forecasting project:
+
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ Licensed under the Apache License, Version 2.0
+ https://github.com/amazon-science/chronos-forecasting
+
+============================================================================
+
Apache Commons Collections
Copyright 2001-2019 The Apache Software Foundation
This product includes software developed at
-The Apache Software Foundation (http://www.apache.org/).
\ No newline at end of file
+The Apache Software Foundation (http://www.apache.org/).
diff --git a/distribution/src/assembly/ainode-common-files.xml b/distribution/src/assembly/ainode-common-files.xml
new file mode 100644
index 000000000000..1728964a95e5
--- /dev/null
+++ b/distribution/src/assembly/ainode-common-files.xml
@@ -0,0 +1,52 @@
+
+
+
+
+
+ ${project.basedir}/../licenses
+ licenses
+
+
+ ${project.basedir}/../iotdb-core/ainode/src/assembly/resources/licenses
+ licenses
+
+
+
+
+ ${project.basedir}/../README.md
+
+
+ ${project.basedir}/../README_ZH.md
+
+
+ ${project.basedir}/../LICENSE-binary
+ LICENSE
+
+
+ ${project.basedir}/../iotdb-core/ainode/src/assembly/resources/NOTICE-binary
+ NOTICE
+
+
+ ${project.basedir}/../RELEASE_NOTES.md
+
+
+
diff --git a/distribution/src/assembly/ainode.xml b/distribution/src/assembly/ainode.xml
index 46bf51930b7a..bfdbca984bd7 100644
--- a/distribution/src/assembly/ainode.xml
+++ b/distribution/src/assembly/ainode.xml
@@ -47,6 +47,6 @@
- common-files.xml
+ ainode-common-files.xml
diff --git a/iotdb-core/ainode/ainode.xml b/iotdb-core/ainode/ainode.xml
index b47cbeb4a796..bd762a9786af 100644
--- a/iotdb-core/ainode/ainode.xml
+++ b/iotdb-core/ainode/ainode.xml
@@ -37,7 +37,7 @@
LICENSE
- ${maven.multiModuleProjectDirectory}/NOTICE-binary
+ src/assembly/resources/NOTICE-binaryNOTICE
@@ -60,6 +60,10 @@
lib0755
+
+ src/assembly/resources/licenses
+ licenses
+ ${project.basedir}/../../scripts/sbinsbin
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/__init__.py b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/__init__.py
index 2a1e720805f2..de6dab65c42d 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/__init__.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/__init__.py
@@ -15,3 +15,5 @@
# specific language governing permissions and limitations
# under the License.
#
+# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+# SPDX-License-Identifier: Apache-2.0
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/base.py b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/base.py
index 17052145857b..03c3cdad3aee 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/base.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/base.py
@@ -15,6 +15,9 @@
# specific language governing permissions and limitations
# under the License.
#
+# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from enum import Enum
from pathlib import Path
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/chronos_bolt.py b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/chronos_bolt.py
index 68880e63edb5..ab8fa132e910 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/chronos_bolt.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/chronos_bolt.py
@@ -15,6 +15,9 @@
# specific language governing permissions and limitations
# under the License.
#
+# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import copy
from dataclasses import dataclass
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/config.py b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/config.py
index 226e1ccfdf82..f56beb0b2e63 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/config.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/config.py
@@ -15,6 +15,9 @@
# specific language governing permissions and limitations
# under the License.
#
+# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from dataclasses import dataclass
from typing import List, Literal
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/dataset.py b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/dataset.py
index cf3b5edbff34..5d81c741eb82 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/dataset.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/dataset.py
@@ -15,6 +15,9 @@
# specific language governing permissions and limitations
# under the License.
#
+# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import math
from enum import Enum
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/layers.py b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/layers.py
index 818e3fc30cf1..5de7226b1eae 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/layers.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/layers.py
@@ -15,6 +15,9 @@
# specific language governing permissions and limitations
# under the License.
#
+# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from dataclasses import dataclass
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/model.py b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/model.py
index ae33015c1366..b2714765b1aa 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/model.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/model.py
@@ -15,6 +15,9 @@
# specific language governing permissions and limitations
# under the License.
#
+# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import copy
from dataclasses import dataclass
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/pipeline_chronos2.py b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/pipeline_chronos2.py
index 083125e4b996..2d9cdf4fb2fe 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/pipeline_chronos2.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/pipeline_chronos2.py
@@ -15,6 +15,9 @@
# specific language governing permissions and limitations
# under the License.
#
+# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+# SPDX-License-Identifier: Apache-2.0
+
import math
import torch
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/utils.py b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/utils.py
index 279652abba95..18ae18368686 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/utils.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/chronos2/utils.py
@@ -15,6 +15,9 @@
# specific language governing permissions and limitations
# under the License.
#
+# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+# SPDX-License-Identifier: Apache-2.0
+
from typing import List
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/__init__.py b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/__init__.py
index f1ad0c458d3f..584f77484782 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/__init__.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/__init__.py
@@ -17,6 +17,8 @@
#
# This file is part of the Apache IoTDB project.
#
-# This file includes code modified from the uni2ts project (https://github.com/salesforce/uni2ts).
-# The original code is licensed under the Apache License 2.0.
+# This file includes code modified from the uni2ts project:
+# https://github.com/SalesforceAIResearch/uni2ts
+# Copyright (c) 2024, Salesforce, Inc.
+# SPDX-License-Identifier: Apache-2
#
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/common/torch_util.py b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/common/torch_util.py
index 469e8044b991..382b7d05eb1e 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/common/torch_util.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/common/torch_util.py
@@ -16,6 +16,11 @@
# under the License.
#
+# This file includes code modified from the uni2ts project:
+# https://github.com/SalesforceAIResearch/uni2ts
+# Copyright (c) 2024, Salesforce, Inc.
+# SPDX-License-Identifier: Apache-2
+
from typing import Optional
import numpy as np
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/modeling_moirai2.py b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/modeling_moirai2.py
index c9b7afc98a32..b64f623af892 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/modeling_moirai2.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/modeling_moirai2.py
@@ -16,6 +16,11 @@
# under the License.
#
+# This file includes code modified from the uni2ts project:
+# https://github.com/SalesforceAIResearch/uni2ts
+# Copyright (c) 2024, Salesforce, Inc.
+# SPDX-License-Identifier: Apache-2
+
import math
import warnings
from contextlib import contextmanager
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/attention.py b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/attention.py
index 407b4f4abd99..885d14361a7c 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/attention.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/attention.py
@@ -16,6 +16,11 @@
# under the License.
#
+# This file includes code modified from the uni2ts project:
+# https://github.com/SalesforceAIResearch/uni2ts
+# Copyright (c) 2024, Salesforce, Inc.
+# SPDX-License-Identifier: Apache-2
+
import math
from collections.abc import Callable
from functools import partial
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/ffn.py b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/ffn.py
index 2c737ecc00c8..629fe09e26ac 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/ffn.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/ffn.py
@@ -16,6 +16,11 @@
# under the License.
#
+# This file includes code modified from the uni2ts project:
+# https://github.com/SalesforceAIResearch/uni2ts
+# Copyright (c) 2024, Salesforce, Inc.
+# SPDX-License-Identifier: Apache-2
+
from collections.abc import Callable
from typing import Optional
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/norm.py b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/norm.py
index e7ef8eb6932d..a6809de29f32 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/norm.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/norm.py
@@ -16,6 +16,11 @@
# under the License.
#
+# This file includes code modified from the uni2ts project:
+# https://github.com/SalesforceAIResearch/uni2ts
+# Copyright (c) 2024, Salesforce, Inc.
+# SPDX-License-Identifier: Apache-2
+
from typing import Optional
import torch
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/packed_scaler.py b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/packed_scaler.py
index 832145acef36..4754a3b1e20b 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/packed_scaler.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/packed_scaler.py
@@ -16,6 +16,11 @@
# under the License.
#
+# This file includes code modified from the uni2ts project:
+# https://github.com/SalesforceAIResearch/uni2ts
+# Copyright (c) 2024, Salesforce, Inc.
+# SPDX-License-Identifier: Apache-2
+
from typing import Optional
import torch
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/position/__init__.py b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/position/__init__.py
index 4d23d3fd41b9..884d8de01922 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/position/__init__.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/position/__init__.py
@@ -16,6 +16,11 @@
# under the License.
#
+# This file includes code modified from the uni2ts project:
+# https://github.com/SalesforceAIResearch/uni2ts
+# Copyright (c) 2024, Salesforce, Inc.
+# SPDX-License-Identifier: Apache-2
+
from .additive import LearnedEmbedding, SinusoidalPositionEncoding
from .attn_bias import (
AttentionBias,
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/position/additive.py b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/position/additive.py
index 8bf1ba723afb..b872a3cbcef3 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/position/additive.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/position/additive.py
@@ -16,6 +16,11 @@
# under the License.
#
+# This file includes code modified from the uni2ts project:
+# https://github.com/SalesforceAIResearch/uni2ts
+# Copyright (c) 2024, Salesforce, Inc.
+# SPDX-License-Identifier: Apache-2
+
import math
import torch
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/position/attn_bias.py b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/position/attn_bias.py
index 49b8139b7c53..5219a6bf3202 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/position/attn_bias.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/position/attn_bias.py
@@ -16,6 +16,11 @@
# under the License.
#
+# This file includes code modified from the uni2ts project:
+# https://github.com/SalesforceAIResearch/uni2ts
+# Copyright (c) 2024, Salesforce, Inc.
+# SPDX-License-Identifier: Apache-2
+
import abc
import torch
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/position/attn_projection.py b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/position/attn_projection.py
index e5bfb63c6522..5ddc542cd1ce 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/position/attn_projection.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/position/attn_projection.py
@@ -16,6 +16,11 @@
# under the License.
#
+# This file includes code modified from the uni2ts project:
+# https://github.com/SalesforceAIResearch/uni2ts
+# Copyright (c) 2024, Salesforce, Inc.
+# SPDX-License-Identifier: Apache-2
+
import abc
import math
from functools import cached_property
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/transformer.py b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/transformer.py
index 3f12468128c2..3089fdcf64ae 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/transformer.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/transformer.py
@@ -16,6 +16,11 @@
# under the License.
#
+# This file includes code modified from the uni2ts project:
+# https://github.com/SalesforceAIResearch/uni2ts
+# Copyright (c) 2024, Salesforce, Inc.
+# SPDX-License-Identifier: Apache-2
+
from collections.abc import Callable
from functools import partial
from typing import Optional
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/ts_embed.py b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/ts_embed.py
index 5cddbaa1dae2..7959e0e9aba8 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/ts_embed.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/module/ts_embed.py
@@ -16,6 +16,11 @@
# under the License.
#
+# This file includes code modified from the uni2ts project:
+# https://github.com/SalesforceAIResearch/uni2ts
+# Copyright (c) 2024, Salesforce, Inc.
+# SPDX-License-Identifier: Apache-2
+
import math
from typing import Optional
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/transform/_base.py b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/transform/_base.py
index b4aa490ed29b..dd70d9a3d275 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/transform/_base.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/transform/_base.py
@@ -16,6 +16,11 @@
# under the License.
#
+# This file includes code modified from the uni2ts project:
+# https://github.com/SalesforceAIResearch/uni2ts
+# Copyright (c) 2024, Salesforce, Inc.
+# SPDX-License-Identifier: Apache-2
+
import abc
from dataclasses import dataclass
from typing import Any
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/transform/_mixin.py b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/transform/_mixin.py
index e5c38a1bf31d..95064ea90e3b 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/transform/_mixin.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/transform/_mixin.py
@@ -16,6 +16,11 @@
# under the License.
#
+# This file includes code modified from the uni2ts project:
+# https://github.com/SalesforceAIResearch/uni2ts
+# Copyright (c) 2024, Salesforce, Inc.
+# SPDX-License-Identifier: Apache-2
+
from collections.abc import Callable
from typing import Any
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/transform/imputation.py b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/transform/imputation.py
index 1f9269a966ad..21f15a704e25 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/transform/imputation.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moirai2/transform/imputation.py
@@ -16,6 +16,11 @@
# under the License.
#
+# This file includes code modified from the uni2ts project:
+# https://github.com/SalesforceAIResearch/uni2ts
+# Copyright (c) 2024, Salesforce, Inc.
+# SPDX-License-Identifier: Apache-2
+
from dataclasses import dataclass
from typing import Any
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moment/configuration_moment.py b/iotdb-core/ainode/iotdb/ainode/core/model/moment/configuration_moment.py
index e249d620ff80..58fcbd9504c3 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moment/configuration_moment.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moment/configuration_moment.py
@@ -19,6 +19,7 @@
# This file contains code adapted from the MOMENT project
# (https://github.com/moment-timeseries-foundation-model/moment),
# originally licensed under the MIT License.
+# Copyright (c) 2024 Auton Lab, Carnegie Mellon University
from typing import Optional
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moment/modeling_moment.py b/iotdb-core/ainode/iotdb/ainode/core/model/moment/modeling_moment.py
index a3b358a21e39..b998a5fda420 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moment/modeling_moment.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moment/modeling_moment.py
@@ -19,6 +19,7 @@
# This file contains code adapted from the MOMENT project
# (https://github.com/moment-timeseries-foundation-model/moment),
# originally licensed under the MIT License.
+# Copyright (c) 2024 Auton Lab, Carnegie Mellon University
import json
import os
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/moment/pipeline_moment.py b/iotdb-core/ainode/iotdb/ainode/core/model/moment/pipeline_moment.py
index 67108d736dee..f9b3d3bd83a0 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/moment/pipeline_moment.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/moment/pipeline_moment.py
@@ -19,6 +19,7 @@
# This file contains code adapted from the MOMENT project
# (https://github.com/moment-timeseries-foundation-model/moment),
# originally licensed under the MIT License.
+# Copyright (c) 2024 Auton Lab, Carnegie Mellon University
import torch
diff --git a/iotdb-core/ainode/iotdb/ainode/core/model/sundial/flow_loss.py b/iotdb-core/ainode/iotdb/ainode/core/model/sundial/flow_loss.py
index b3fe95dbe2d2..6e1288ca5d53 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/model/sundial/flow_loss.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/model/sundial/flow_loss.py
@@ -98,7 +98,9 @@ def timestep_embedding(t, dim, max_period=10000):
:param max_period: controls the minimum frequency of the embeddings.
:return: an (N, D) Tensor of positional embeddings.
"""
+ # Adapted from GLIDE:
# https://github.com/openai/glide-text2im/blob/main/glide_text2im/nn.py
+ # Copyright (c) 2021 OpenAI
half = dim // 2
freqs = torch.exp(
-math.log(max_period)
diff --git a/iotdb-core/ainode/src/assembly/resources/NOTICE-binary b/iotdb-core/ainode/src/assembly/resources/NOTICE-binary
new file mode 100644
index 000000000000..e30b3ffd5b39
--- /dev/null
+++ b/iotdb-core/ainode/src/assembly/resources/NOTICE-binary
@@ -0,0 +1,65 @@
+Apache IoTDB AINode
+Copyright 2018-2026 The Apache Software Foundation.
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+============================================================================
+
+IoTDB project uses 4 Chinese Patents:
+* 201711384490X
+* 201810111712.9
+* 201711322631.5
+* 201711319331.1
+
+According to the Apache 2.0 License. The owner of the patents, Tsinghua University,
+grant the users the right to the use of patent under the requirement of Apache 2.0 License.
+
+============================================================================
+
+This product includes source code derived from the DataDog/toto project:
+
+ Toto - Timeseries-Optimized Transformer for Observability
+ Copyright 2025 Datadog, Inc.
+ Licensed under the Apache License, Version 2.0
+ https://github.com/DataDog/toto
+
+============================================================================
+
+This product includes source code modified from the GLIDE project:
+
+ Copyright (c) 2021 OpenAI
+ Licensed under the MIT License (see licenses/LICENSE-GLIDE)
+ https://github.com/openai/glide-text2im
+
+============================================================================
+
+This product includes source code modified from the MOMENT project:
+
+ Copyright (c) 2024 Auton Lab, Carnegie Mellon University
+ Licensed under the MIT License (see licenses/LICENSE-MOMENT)
+ https://github.com/moment-timeseries-foundation-model/moment
+
+============================================================================
+
+This product includes source code modified from the uni2ts project:
+
+ Copyright (c) 2024, Salesforce, Inc.
+ Licensed under the Apache License, Version 2.0
+ https://github.com/SalesforceAIResearch/uni2ts
+
+============================================================================
+
+This product includes source code derived from the chronos-forecasting project:
+
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ Licensed under the Apache License, Version 2.0
+ https://github.com/amazon-science/chronos-forecasting
+
+============================================================================
+
+Apache Commons Collections
+Copyright 2001-2019 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
diff --git a/iotdb-core/ainode/src/assembly/resources/licenses/LICENSE-GLIDE b/iotdb-core/ainode/src/assembly/resources/licenses/LICENSE-GLIDE
new file mode 100644
index 000000000000..c123b6933471
--- /dev/null
+++ b/iotdb-core/ainode/src/assembly/resources/licenses/LICENSE-GLIDE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2021 OpenAI
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/iotdb-core/ainode/src/assembly/resources/licenses/LICENSE-MOMENT b/iotdb-core/ainode/src/assembly/resources/licenses/LICENSE-MOMENT
new file mode 100644
index 000000000000..c4844b20ecd0
--- /dev/null
+++ b/iotdb-core/ainode/src/assembly/resources/licenses/LICENSE-MOMENT
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 Auton Lab, Carnegie Mellon University
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/pom.xml b/pom.xml
index 7d4b3d74a426..8b6b73ab4b07 100644
--- a/pom.xml
+++ b/pom.xml
@@ -766,6 +766,9 @@
**/package-metadata/third_party/NOTICE**/package-metadata/third_party/licenses/**
+
+ **/ainode/src/assembly/resources/NOTICE-binary
+ **/ainode/src/assembly/resources/licenses/**hadoopbinwindowssystem32