tsugi 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tsugi/__init__.py +29 -0
- tsugi/_about.py +21 -0
- tsugi/kpool.py +33 -0
- tsugi/mend.py +14 -0
- tsugi-0.1.0.dist-info/METADATA +119 -0
- tsugi-0.1.0.dist-info/RECORD +9 -0
- tsugi-0.1.0.dist-info/WHEEL +4 -0
- tsugi-0.1.0.dist-info/licenses/LICENSE +238 -0
- tsugi-0.1.0.dist-info/licenses/NOTICE +24 -0
tsugi/__init__.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""tsugi: unified developer surface for TsugiCinema's open-source distributed-training SDKs.
|
|
2
|
+
|
|
3
|
+
Re-exports two physically separate Apache-2.0 SDKs at a packaging level:
|
|
4
|
+
|
|
5
|
+
tsugi.mend cross-rack reducer; patent-independent; public-art techniques
|
|
6
|
+
(Decoupled DiLoCo, DES-LOC, async-TP, FALCON). Wraps
|
|
7
|
+
tsugi-mend.
|
|
8
|
+
|
|
9
|
+
tsugi.kpool K-Pool LoRA / Infinity software analog; patent-aligned.
|
|
10
|
+
Apache-2.0 patent grant extends to TsugiCinema's K-Pool LoRA
|
|
11
|
+
(US App. 64/060,315) and Infinity (US App. 64/055,093) patent
|
|
12
|
+
estates as practiced by the SDK code as distributed. Wraps
|
|
13
|
+
tsugi-kpool.
|
|
14
|
+
|
|
15
|
+
The two sub-SDKs share zero code. This package is a thin packaging-level
|
|
16
|
+
wrapper. See LICENSE in each sub-SDK repo for full IP-posture details.
|
|
17
|
+
"""
|
|
18
|
+
from tsugi import mend, kpool
|
|
19
|
+
|
|
20
|
+
__version__ = "0.1.0"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def about() -> None:
|
|
24
|
+
"""Print versions, licenses, and patent-posture for the unified package."""
|
|
25
|
+
from tsugi._about import _about_text
|
|
26
|
+
print(_about_text())
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
__all__ = ["mend", "kpool", "about", "__version__"]
|
tsugi/_about.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""Implementation of tsugi.about(). Kept separate so the top-level package
|
|
2
|
+
import does not have to materialize the sub-SDK __version__ attributes.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def _about_text() -> str:
|
|
7
|
+
import tsugi
|
|
8
|
+
import tsugi_mend
|
|
9
|
+
import tsugi_kpool
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
f"tsugi {tsugi.__version__} unified developer surface\n"
|
|
13
|
+
f" tsugi-mend {tsugi_mend.__version__} Apache-2.0 "
|
|
14
|
+
"patent-independent (Decoupled DiLoCo + DES-LOC + async-TP + FALCON)\n"
|
|
15
|
+
f" tsugi-kpool {tsugi_kpool.__version__} Apache-2.0 "
|
|
16
|
+
"patent-aligned (US App. 64/060,315 K-Pool LoRA + US App. 64/055,093 Infinity)\n"
|
|
17
|
+
"\n"
|
|
18
|
+
"Both SDKs are licensed under the Apache License, Version 2.0.\n"
|
|
19
|
+
"The two SDKs share zero code; this is a packaging-level wrapper.\n"
|
|
20
|
+
"Homepage: https://tsugilabs.ai"
|
|
21
|
+
)
|
tsugi/kpool.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""tsugi.kpool: re-exports of tsugi-kpool public API.
|
|
2
|
+
|
|
3
|
+
Patent-aligned. The Apache-2.0 patent grant on this SDK extends to
|
|
4
|
+
TsugiCinema's K-Pool LoRA (US App. 64/060,315) and Infinity (US App.
|
|
5
|
+
64/055,093) patent estates AS PRACTICED BY THE SDK CODE AS DISTRIBUTED.
|
|
6
|
+
Apache-2.0 Section 3's "necessarily infringed by their Contribution"
|
|
7
|
+
language bounds the patent license to the specific embodiment present in
|
|
8
|
+
the SDK code, not the broader scope of the patent claims as filed. See
|
|
9
|
+
tsugi_kpool/LICENSE preamble for the full IP posture.
|
|
10
|
+
|
|
11
|
+
This module imports only KPoolLoraConfig (a torch-free dataclass) at load
|
|
12
|
+
time; plesio_init, plesio_shutdown, apply_kpool_step, pre_forward_step,
|
|
13
|
+
and post_backward_step are re-exported as lazy wrappers that import torch
|
|
14
|
+
via tsugi_kpool.runtime on first call. This keeps `import tsugi` torch-free
|
|
15
|
+
for docs and CI environments.
|
|
16
|
+
"""
|
|
17
|
+
from tsugi_kpool import (
|
|
18
|
+
KPoolLoraConfig,
|
|
19
|
+
apply_kpool_step,
|
|
20
|
+
plesio_init,
|
|
21
|
+
plesio_shutdown,
|
|
22
|
+
post_backward_step,
|
|
23
|
+
pre_forward_step,
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
__all__ = [
|
|
27
|
+
"KPoolLoraConfig",
|
|
28
|
+
"plesio_init",
|
|
29
|
+
"plesio_shutdown",
|
|
30
|
+
"apply_kpool_step",
|
|
31
|
+
"pre_forward_step",
|
|
32
|
+
"post_backward_step",
|
|
33
|
+
]
|
tsugi/mend.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""tsugi.mend: re-exports of tsugi-mend public API.
|
|
2
|
+
|
|
3
|
+
Patent-independent by deliberate construction. The Apache-2.0 patent grant
|
|
4
|
+
on this SDK does NOT extend to TsugiCinema's K-Pool LoRA or Infinity patent
|
|
5
|
+
estates. See tsugi_mend/LICENSE preamble for the full IP posture.
|
|
6
|
+
|
|
7
|
+
This module imports only MendConfig (a torch-free dataclass) at load time;
|
|
8
|
+
mend_init and mend_shutdown are re-exported as lazy wrappers that import
|
|
9
|
+
torch via tsugi_mend.runtime on first call. This keeps `import tsugi`
|
|
10
|
+
torch-free for docs and CI environments.
|
|
11
|
+
"""
|
|
12
|
+
from tsugi_mend import MendConfig, mend_init, mend_shutdown
|
|
13
|
+
|
|
14
|
+
__all__ = ["MendConfig", "mend_init", "mend_shutdown"]
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tsugi
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Unified developer surface for TsugiCinema's open-source distributed-training SDKs. pip install tsugi pulls tsugi-mend (Apache-2.0; patent-independent) and tsugi-kpool (Apache-2.0; patent-aligned) and re-exports both under one namespace.
|
|
5
|
+
Project-URL: Homepage, https://tsugilabs.ai
|
|
6
|
+
Project-URL: Repository, https://github.com/tsugiai/tsugi
|
|
7
|
+
Project-URL: Companion-SDK-Mend, https://github.com/tsugiai/tsugi-mend
|
|
8
|
+
Project-URL: Companion-SDK-KPool, https://github.com/tsugiai/tsugi-kpool
|
|
9
|
+
Author-email: Tong Liu <tong@tsugicinema.com>
|
|
10
|
+
License: Apache-2.0
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
License-File: NOTICE
|
|
13
|
+
Keywords: cross-rack,decoupled-diloco,distributed-training,infinity,k-pool-lora,lora,peft,pytorch
|
|
14
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Requires-Dist: tsugi-kpool==0.1.0
|
|
22
|
+
Requires-Dist: tsugi-mend==0.1.0
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: mypy>=1.10; extra == 'dev'
|
|
25
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
26
|
+
Requires-Dist: ruff>=0.5; extra == 'dev'
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
|
|
29
|
+
# tsugi
|
|
30
|
+
|
|
31
|
+
Unified developer surface for TsugiCinema's open-source distributed-training SDKs.
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
pip install tsugi
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
`tsugi` is a thin packaging-level wrapper that depends on and re-exports two physically separate Apache-2.0 SDKs published by TsugiCinema, Inc.
|
|
38
|
+
|
|
39
|
+
| Sub-SDK | PyPI package | Imports as | Patent posture |
|
|
40
|
+
|---|---|---|---|
|
|
41
|
+
| Cross-rack reducer (Decoupled DiLoCo + DES-LOC + async-TP + FALCON) | `tsugi-mend` | `tsugi.mend` | Patent-independent by deliberate construction |
|
|
42
|
+
| K-Pool LoRA / Infinity software analog | `tsugi-kpool` | `tsugi.kpool` | Patent-aligned (US App. 64/060,315 + US App. 64/055,093) |
|
|
43
|
+
|
|
44
|
+
The two sub-SDKs share zero code. This meta-package exposes them under a unified import namespace for developer convenience. Both sub-SDKs and this meta-package are licensed under the Apache License, Version 2.0.
|
|
45
|
+
|
|
46
|
+
## Status
|
|
47
|
+
|
|
48
|
+
**Pre-Alpha (0.1.0).** APIs are stabilizing. Cross-SDK integration patterns may evolve. The two sub-SDK packages are also at 0.1.0 and are pinned by exact version in this meta-package's dependencies.
|
|
49
|
+
|
|
50
|
+
## Quickstart
|
|
51
|
+
|
|
52
|
+
```python
|
|
53
|
+
import tsugi
|
|
54
|
+
|
|
55
|
+
tsugi.about()
|
|
56
|
+
# tsugi 0.1.0 unified developer surface
|
|
57
|
+
# tsugi-mend 0.1.0 Apache-2.0 patent-independent (Decoupled DiLoCo + DES-LOC + async-TP + FALCON)
|
|
58
|
+
# tsugi-kpool 0.1.0 Apache-2.0 patent-aligned (US App. 64/060,315 K-Pool LoRA + US App. 64/055,093 Infinity)
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Cross-rack reducer (`tsugi.mend`)
|
|
62
|
+
|
|
63
|
+
```python
|
|
64
|
+
from tsugi.mend import MendConfig, mend_init, mend_shutdown
|
|
65
|
+
|
|
66
|
+
# After your model is wrapped (FSDP, TP, etc.):
|
|
67
|
+
config = MendConfig(quorum_min_learners=2, grace_window_ms=2000)
|
|
68
|
+
mend_init(model, config)
|
|
69
|
+
|
|
70
|
+
# ... train ...
|
|
71
|
+
|
|
72
|
+
mend_shutdown(model)
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
See [`tsugi-mend`](https://github.com/tsugiai/tsugi-mend) for benchmark protocols, the multi-stage validation record (Stage A through Stage E-prime), and the Phase 2 sprint plan.
|
|
76
|
+
|
|
77
|
+
### K-Pool LoRA / Infinity (`tsugi.kpool`)
|
|
78
|
+
|
|
79
|
+
```python
|
|
80
|
+
from tsugi.kpool import KPoolLoraConfig, plesio_init, plesio_shutdown
|
|
81
|
+
|
|
82
|
+
config = KPoolLoraConfig(
|
|
83
|
+
r=16,
|
|
84
|
+
lora_alpha=32,
|
|
85
|
+
n_adapters=8,
|
|
86
|
+
k_active=4,
|
|
87
|
+
sideband_enabled=True,
|
|
88
|
+
aggregation_mode="buffer_convergence",
|
|
89
|
+
)
|
|
90
|
+
plesio_init(model, config)
|
|
91
|
+
|
|
92
|
+
# ... train with K-of-N adapter routing ...
|
|
93
|
+
|
|
94
|
+
plesio_shutdown(model)
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
See [`tsugi-kpool`](https://github.com/tsugiai/tsugi-kpool) for the buffer-convergence trigger characterization and the K-of-N routing semantics.
|
|
98
|
+
|
|
99
|
+
## Architecture
|
|
100
|
+
|
|
101
|
+
`tsugi` itself is a torch-free import: `import tsugi` resolves only to configuration dataclasses on each sub-SDK. The runtime functions (`mend_init`, `plesio_init`, etc.) lazy-import torch via each sub-SDK's facade on first call. This keeps documentation builds and torch-free CI environments working.
|
|
102
|
+
|
|
103
|
+
When you actually call a runtime function, that sub-SDK loads torch and its own runtime machinery. The two sub-SDKs never cross-reference each other; they can be installed and used independently of this meta-package.
|
|
104
|
+
|
|
105
|
+
## License and IP posture
|
|
106
|
+
|
|
107
|
+
Apache-2.0 with full automatic patent grant. See [`LICENSE`](LICENSE) for the preamble that distinguishes this meta-package's grant scope from each sub-SDK's grant scope, and [`NOTICE`](NOTICE) for the attribution chain to the upstream sub-SDKs.
|
|
108
|
+
|
|
109
|
+
The patent posture, in brief:
|
|
110
|
+
|
|
111
|
+
- This meta-package itself contains no patent-exercising code. Its Apache-2.0 patent grant covers only the thin wrapper code in this repository.
|
|
112
|
+
- `tsugi-mend` is patent-independent. Its Apache-2.0 grant does not extend to TsugiCinema's K-Pool LoRA or Infinity patent estates.
|
|
113
|
+
- `tsugi-kpool` is patent-aligned. Its Apache-2.0 grant in Section 3 extends to TsugiCinema's K-Pool LoRA (US App. 64/060,315) and Infinity (US App. 64/055,093) patent estates AS PRACTICED BY THE SDK CODE AS DISTRIBUTED. Apache-2.0 Section 3's "necessarily infringed by their Contribution" language bounds the patent license to the specific embodiment present in the SDK code, not the broader scope of the patent claims as filed.
|
|
114
|
+
|
|
115
|
+
## Links
|
|
116
|
+
|
|
117
|
+
- Homepage: https://tsugilabs.ai
|
|
118
|
+
- Companion SDK (Mend): https://github.com/tsugiai/tsugi-mend
|
|
119
|
+
- Companion SDK (KPool): https://github.com/tsugiai/tsugi-kpool
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
tsugi/__init__.py,sha256=dYO6riBJFAQxQcYjFxCpWMsmLGEDNtCdHhiiFPjSbuA,1108
|
|
2
|
+
tsugi/_about.py,sha256=J3QpOpsvR2RXfp2Sqye288GlNU68Wj9iVQXHZj8VwCI,831
|
|
3
|
+
tsugi/kpool.py,sha256=EaGT1tKkfpqvNan6j9vnXEsH3aYWI0npg5QkQZGn8lY,1170
|
|
4
|
+
tsugi/mend.py,sha256=W44sxORtBYns0t2o5piXsyDMTSWDgiktxSydyMoYz18,650
|
|
5
|
+
tsugi-0.1.0.dist-info/METADATA,sha256=kewRc7kMioImgNuFvGWiEZOnM7mdB_R2Kp-bnOfoidA,5430
|
|
6
|
+
tsugi-0.1.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
7
|
+
tsugi-0.1.0.dist-info/licenses/LICENSE,sha256=QUdRJyMPqKmF8N69sxYFh4Iz21f6hAi8yV-Xdx37T0I,12914
|
|
8
|
+
tsugi-0.1.0.dist-info/licenses/NOTICE,sha256=MxZ_yO3AC7B__RwWO6xjswkFdXflnEd0HFPfrLsr-cw,1135
|
|
9
|
+
tsugi-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
================================================================
|
|
2
|
+
Why Apache-2.0 for tsugi (NOTICE PREAMBLE)
|
|
3
|
+
================================================================
|
|
4
|
+
|
|
5
|
+
This package (tsugi, the "Software") is licensed under the Apache
|
|
6
|
+
License, Version 2.0 ("Apache-2.0"), with its full automatic patent
|
|
7
|
+
grant. The full Apache-2.0 license text follows below.
|
|
8
|
+
|
|
9
|
+
tsugi is a packaging-level meta-package. It is a thin wrapper that
|
|
10
|
+
depends on two physically separate SDKs published by TsugiCinema,
|
|
11
|
+
Inc. ("Licensor"):
|
|
12
|
+
|
|
13
|
+
- tsugi-mend (tsugiai-mend-sdk): Apache-2.0. Patent-independent by
|
|
14
|
+
deliberate construction. Wraps public-art techniques (Decoupled
|
|
15
|
+
DiLoCo, DES-LOC, async tensor parallelism, FALCON). Does NOT
|
|
16
|
+
exercise TsugiCinema's K-Pool LoRA or Infinity patent estates.
|
|
17
|
+
|
|
18
|
+
- tsugi-kpool (tsugiai-kpool-sdk): Apache-2.0. Patent-aligned. The
|
|
19
|
+
Apache-2.0 patent grant on that SDK extends to TsugiCinema's
|
|
20
|
+
K-Pool LoRA (US App. 64/060,315, filed 2026-05-07) and Infinity
|
|
21
|
+
(US App. 64/055,093, filed 2026-05-01) patent estates AS PRACTICED
|
|
22
|
+
BY THE SDK CODE AS DISTRIBUTED. Apache-2.0 Section 3's "necessarily
|
|
23
|
+
infringed by their Contribution" language bounds the patent license
|
|
24
|
+
to the specific embodiment present in the SDK code, not the broader
|
|
25
|
+
scope of the patent claims as filed.
|
|
26
|
+
|
|
27
|
+
This meta-package itself contains no patent-exercising code. Its
|
|
28
|
+
Apache-2.0 patent grant covers only the small wrapper code in this
|
|
29
|
+
repository. Each sub-SDK's own Apache-2.0 license is the operative
|
|
30
|
+
patent grant for the techniques implemented in that sub-SDK.
|
|
31
|
+
|
|
32
|
+
The two sub-SDKs share zero code. tsugi exposes them under a unified
|
|
33
|
+
import namespace (tsugi.mend and tsugi.kpool) for developer
|
|
34
|
+
convenience.
|
|
35
|
+
|
|
36
|
+
DOCTRINE BACKGROUND:
|
|
37
|
+
|
|
38
|
+
The Apache-2.0 license posture across this package and both sub-SDKs
|
|
39
|
+
is intentionally aligned with the Lightning AI / Together AI /
|
|
40
|
+
Anyscale Ray / Databricks-Mosaic pattern of an Apache-2.0 open-source
|
|
41
|
+
SDK as the developer-adoption surface, supplemented by a paid
|
|
42
|
+
managed-API and enterprise-SLA tier as the revenue surface.
|
|
43
|
+
|
|
44
|
+
The full Apache License, Version 2.0 follows.
|
|
45
|
+
|
|
46
|
+
================================================================
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
Apache License
|
|
50
|
+
Version 2.0, January 2004
|
|
51
|
+
http://www.apache.org/licenses/
|
|
52
|
+
|
|
53
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
54
|
+
|
|
55
|
+
1. Definitions.
|
|
56
|
+
|
|
57
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
58
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
59
|
+
|
|
60
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
61
|
+
the copyright owner that is granting the License.
|
|
62
|
+
|
|
63
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
64
|
+
other entities that control, are controlled by, or are under common
|
|
65
|
+
control with that entity. For the purposes of this definition,
|
|
66
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
67
|
+
direction or management of such entity, whether by contract or
|
|
68
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
69
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
70
|
+
|
|
71
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
72
|
+
exercising permissions granted by this License.
|
|
73
|
+
|
|
74
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
75
|
+
including but not limited to software source code, documentation
|
|
76
|
+
source, and configuration files.
|
|
77
|
+
|
|
78
|
+
"Object" form shall mean any form resulting from mechanical
|
|
79
|
+
transformation or translation of a Source form, including but
|
|
80
|
+
not limited to compiled object code, generated documentation,
|
|
81
|
+
and conversions to other media types.
|
|
82
|
+
|
|
83
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
84
|
+
Object form, made available under the License, as indicated by a
|
|
85
|
+
copyright notice that is included in or attached to the work
|
|
86
|
+
(an example is provided in the Appendix below).
|
|
87
|
+
|
|
88
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
89
|
+
form, that is based on (or derived from) the Work and for which the
|
|
90
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
91
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
92
|
+
of this License, Derivative Works shall not include works that remain
|
|
93
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
94
|
+
the Work and Derivative Works thereof.
|
|
95
|
+
|
|
96
|
+
"Contribution" shall mean any work of authorship, including
|
|
97
|
+
the original version of the Work and any modifications or additions
|
|
98
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
99
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
100
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
101
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
102
|
+
means any form of electronic, verbal, or written communication sent
|
|
103
|
+
to the Licensor or its representatives, including but not limited to
|
|
104
|
+
communication on electronic mailing lists, source code control systems,
|
|
105
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
106
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
107
|
+
excluding communication that is conspicuously marked or otherwise
|
|
108
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
109
|
+
|
|
110
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
111
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
112
|
+
subsequently incorporated within the Work.
|
|
113
|
+
|
|
114
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
115
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
116
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
117
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
118
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
119
|
+
Work and such Derivative Works in Source or Object form.
|
|
120
|
+
|
|
121
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
122
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
123
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
124
|
+
(except as stated in this section) patent license to make, have made,
|
|
125
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
126
|
+
where such license applies only to those patent claims licensable
|
|
127
|
+
by such Contributor that are necessarily infringed by their
|
|
128
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
129
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
130
|
+
institute patent litigation against any entity (including a
|
|
131
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
132
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
133
|
+
or contributory patent infringement, then any patent licenses
|
|
134
|
+
granted to You under this License for that Work shall terminate
|
|
135
|
+
as of the date such litigation is filed.
|
|
136
|
+
|
|
137
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
138
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
139
|
+
modifications, and in Source or Object form, provided that You
|
|
140
|
+
meet the following conditions:
|
|
141
|
+
|
|
142
|
+
(a) You must give any other recipients of the Work or
|
|
143
|
+
Derivative Works a copy of this License; and
|
|
144
|
+
|
|
145
|
+
(b) You must cause any modified files to carry prominent notices
|
|
146
|
+
stating that You changed the files; and
|
|
147
|
+
|
|
148
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
149
|
+
that You distribute, all copyright, patent, trademark, and
|
|
150
|
+
attribution notices from the Source form of the Work,
|
|
151
|
+
excluding those notices that do not pertain to any part of
|
|
152
|
+
the Derivative Works; and
|
|
153
|
+
|
|
154
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
155
|
+
distribution, then any Derivative Works that You distribute must
|
|
156
|
+
include a readable copy of the attribution notices contained
|
|
157
|
+
within such NOTICE file, excluding those notices that do not
|
|
158
|
+
pertain to any part of the Derivative Works, in at least one
|
|
159
|
+
of the following places: within a NOTICE text file distributed
|
|
160
|
+
as part of the Derivative Works; within the Source form or
|
|
161
|
+
documentation, if provided along with the Derivative Works; or,
|
|
162
|
+
within a display generated by the Derivative Works, if and
|
|
163
|
+
wherever such third-party notices normally appear. The contents
|
|
164
|
+
of the NOTICE file are for informational purposes only and
|
|
165
|
+
do not modify the License. You may add Your own attribution
|
|
166
|
+
notices within Derivative Works that You distribute, alongside
|
|
167
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
168
|
+
that such additional attribution notices cannot be construed
|
|
169
|
+
as modifying the License.
|
|
170
|
+
|
|
171
|
+
You may add Your own copyright statement to Your modifications and
|
|
172
|
+
may provide additional or different license terms and conditions
|
|
173
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
174
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
175
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
176
|
+
the conditions stated in this License.
|
|
177
|
+
|
|
178
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
179
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
180
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
181
|
+
this License, without any additional terms or conditions.
|
|
182
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
183
|
+
the terms of any separate license agreement you may have executed
|
|
184
|
+
with Licensor regarding such Contributions.
|
|
185
|
+
|
|
186
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
187
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
188
|
+
except as required for describing the origin of the Work and
|
|
189
|
+
reproducing the content of the NOTICE file.
|
|
190
|
+
|
|
191
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
192
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
193
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
194
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
195
|
+
implied, including, without limitation, any warranties or conditions
|
|
196
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
197
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
198
|
+
appropriateness of using or redistributing the Work and assume any
|
|
199
|
+
risks associated with Your exercise of permissions under this License.
|
|
200
|
+
|
|
201
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
202
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
203
|
+
unless required by applicable law (such as deliberate and grossly
|
|
204
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
205
|
+
liable to You for damages, including any direct, indirect, special,
|
|
206
|
+
incidental, or consequential damages of any character arising as a
|
|
207
|
+
result of this License or out of the use or inability to use the
|
|
208
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
209
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
210
|
+
other commercial damages or losses), even if such Contributor
|
|
211
|
+
has been advised of the possibility of such damages.
|
|
212
|
+
|
|
213
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
214
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
215
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
216
|
+
or other liability obligations and/or rights consistent with this
|
|
217
|
+
License. However, in accepting such obligations, You may act only
|
|
218
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
219
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
220
|
+
defend, and hold each Contributor harmless for any liability
|
|
221
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
222
|
+
of your accepting any such warranty or additional liability.
|
|
223
|
+
|
|
224
|
+
END OF TERMS AND CONDITIONS
|
|
225
|
+
|
|
226
|
+
Copyright 2026 TsugiCinema, Inc.
|
|
227
|
+
|
|
228
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
229
|
+
you may not use this file except in compliance with the License.
|
|
230
|
+
You may obtain a copy of the License at
|
|
231
|
+
|
|
232
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
233
|
+
|
|
234
|
+
Unless required by applicable law or agreed to in writing, software
|
|
235
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
236
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
237
|
+
See the License for the specific language governing permissions and
|
|
238
|
+
limitations under the License.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
tsugi
|
|
2
|
+
Copyright 2026 TsugiCinema, Inc.
|
|
3
|
+
|
|
4
|
+
This product is a packaging-level meta-package. It depends on and
|
|
5
|
+
re-exports two physically separate Apache-2.0 SDKs published by
|
|
6
|
+
TsugiCinema, Inc.:
|
|
7
|
+
|
|
8
|
+
- tsugi-mend (https://github.com/tsugiai/tsugi-mend)
|
|
9
|
+
Apache-2.0; patent-independent; integration of
|
|
10
|
+
Decoupled DiLoCo + DES-LOC + async tensor parallelism
|
|
11
|
+
+ FALCON fail-slow mitigation. See that repository's
|
|
12
|
+
NOTICE file for the upstream attributions.
|
|
13
|
+
|
|
14
|
+
- tsugi-kpool (https://github.com/tsugiai/tsugi-kpool)
|
|
15
|
+
Apache-2.0; patent-aligned reduction-to-practice for
|
|
16
|
+
US App. 64/060,315 (K-Pool LoRA) and US App. 64/055,093
|
|
17
|
+
(Infinity). See that repository's LICENSE preamble for
|
|
18
|
+
the patent-grant scope.
|
|
19
|
+
|
|
20
|
+
This meta-package itself contains no patent-exercising code. Its
|
|
21
|
+
Apache-2.0 patent grant covers only the small wrapper code in this
|
|
22
|
+
repository. The operative patent grants for the techniques
|
|
23
|
+
implemented in each sub-SDK are governed by each sub-SDK's own
|
|
24
|
+
Apache-2.0 license, included with that sub-SDK's distribution.
|