cortex-training 0.0.3__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.
- cortex_training/__init__.py +49 -0
- cortex_training/__main__.py +20 -0
- cortex_training/_cli.py +1050 -0
- cortex_training/cli.py +103 -0
- cortex_training/client.py +2866 -0
- cortex_training/peft.py +112 -0
- cortex_training/telemetry.py +526 -0
- cortex_training/tui/__init__.py +23 -0
- cortex_training/tui/__main__.py +109 -0
- cortex_training/tui/app.py +646 -0
- cortex_training/tui/format.py +389 -0
- cortex_training/tui/log_cache.py +415 -0
- cortex_training/wire.py +414 -0
- cortex_training-0.0.3.dist-info/METADATA +143 -0
- cortex_training-0.0.3.dist-info/RECORD +19 -0
- cortex_training-0.0.3.dist-info/WHEEL +5 -0
- cortex_training-0.0.3.dist-info/entry_points.txt +3 -0
- cortex_training-0.0.3.dist-info/licenses/LICENSE +177 -0
- cortex_training-0.0.3.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
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
|
+
# http://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
|
+
"""Public Python API for Cortex Training."""
|
|
17
|
+
|
|
18
|
+
__version__ = "0.0.2"
|
|
19
|
+
|
|
20
|
+
from . import wire
|
|
21
|
+
from .client import ChunkGroupConflictError
|
|
22
|
+
from .client import ChunkGroupError
|
|
23
|
+
from .client import ChunkGroupRestartError
|
|
24
|
+
from .client import CortexTrainingClient
|
|
25
|
+
from .client import Hardware
|
|
26
|
+
from .client import InferenceConfig
|
|
27
|
+
from .client import JobType
|
|
28
|
+
from .client import SubJobConfig
|
|
29
|
+
from .client import TrainingConfig
|
|
30
|
+
from .client import build_forward_backward_kwargs
|
|
31
|
+
from .client import build_forward_backward_payload
|
|
32
|
+
from .client import serialize_forward_backward_args
|
|
33
|
+
|
|
34
|
+
__all__ = [
|
|
35
|
+
"CortexTrainingClient",
|
|
36
|
+
"build_forward_backward_kwargs",
|
|
37
|
+
"build_forward_backward_payload",
|
|
38
|
+
"ChunkGroupError",
|
|
39
|
+
"ChunkGroupRestartError",
|
|
40
|
+
"ChunkGroupConflictError",
|
|
41
|
+
"serialize_forward_backward_args",
|
|
42
|
+
"SubJobConfig",
|
|
43
|
+
"TrainingConfig",
|
|
44
|
+
"InferenceConfig",
|
|
45
|
+
"JobType",
|
|
46
|
+
"Hardware",
|
|
47
|
+
"wire",
|
|
48
|
+
"__version__",
|
|
49
|
+
]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Copyright 2025 Snowflake Inc.
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
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
|
+
# http://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
|
+
"""Module entry point for ``python -m cortex_training``."""
|
|
17
|
+
|
|
18
|
+
from cortex_training.cli import main
|
|
19
|
+
|
|
20
|
+
raise SystemExit(main())
|