tuft 0.1.0__py3-none-any.whl → 0.1.2__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.
- tuft/__init__.py +5 -2
- tuft/__main__.py +7 -0
- tuft/auth.py +35 -0
- tuft/backend.py +254 -0
- tuft/backends/__init__.py +10 -0
- tuft/backends/base_backend.py +112 -0
- tuft/backends/hf_training_model.py +404 -0
- tuft/backends/sampling_backend.py +253 -0
- tuft/backends/training_backend.py +327 -0
- tuft/checkpoints.py +193 -0
- tuft/cli.py +124 -0
- tuft/config.py +123 -0
- tuft/exceptions.py +138 -0
- tuft/futures.py +431 -0
- tuft/loss_fn/__init__.py +48 -0
- tuft/loss_fn/cispo.py +40 -0
- tuft/loss_fn/cross_entropy.py +26 -0
- tuft/loss_fn/dro.py +37 -0
- tuft/loss_fn/importance_sampling.py +33 -0
- tuft/loss_fn/ppo.py +43 -0
- tuft/persistence/__init__.py +32 -0
- tuft/persistence/file_redis.py +268 -0
- tuft/persistence/redis_store.py +488 -0
- tuft/sampling_controller.py +368 -0
- tuft/server.py +720 -0
- tuft/state.py +352 -0
- tuft/telemetry/__init__.py +17 -0
- tuft/telemetry/metrics.py +335 -0
- tuft/telemetry/provider.py +198 -0
- tuft/telemetry/tracing.py +43 -0
- tuft/training_controller.py +728 -0
- tuft-0.1.2.dist-info/METADATA +633 -0
- tuft-0.1.2.dist-info/RECORD +36 -0
- {tuft-0.1.0.dist-info → tuft-0.1.2.dist-info}/WHEEL +1 -2
- tuft-0.1.2.dist-info/entry_points.txt +2 -0
- {tuft-0.1.0.dist-info → tuft-0.1.2.dist-info}/licenses/LICENSE +2 -2
- tuft-0.1.0.dist-info/METADATA +0 -77
- tuft-0.1.0.dist-info/RECORD +0 -6
- tuft-0.1.0.dist-info/top_level.txt +0 -1
tuft-0.1.0.dist-info/METADATA
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: tuft
|
|
3
|
-
Version: 0.1.0
|
|
4
|
-
Summary: Tenant-unified FineTuning
|
|
5
|
-
Author-email: Eric Zhu <test@example.com>
|
|
6
|
-
License: MIT
|
|
7
|
-
Project-URL: Homepage, https://github.com/Eric Zhu/tuft
|
|
8
|
-
Project-URL: Repository, https://github.com/Eric Zhu/tuft
|
|
9
|
-
Classifier: Development Status :: 3 - Alpha
|
|
10
|
-
Classifier: Intended Audience :: Developers
|
|
11
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
-
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
-
Requires-Python: >=3.8
|
|
19
|
-
Description-Content-Type: text/markdown
|
|
20
|
-
License-File: LICENSE
|
|
21
|
-
Provides-Extra: dev
|
|
22
|
-
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
23
|
-
Requires-Dist: pytest-cov>=4.0; extra == "dev"
|
|
24
|
-
Requires-Dist: black>=23.0; extra == "dev"
|
|
25
|
-
Requires-Dist: flake8>=6.0; extra == "dev"
|
|
26
|
-
Requires-Dist: mypy>=1.0; extra == "dev"
|
|
27
|
-
Dynamic: license-file
|
|
28
|
-
|
|
29
|
-
# tuft
|
|
30
|
-
|
|
31
|
-
Tenant-unified FineTuning
|
|
32
|
-
|
|
33
|
-
## Installation
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
uv pip install tuft
|
|
37
|
-
# or
|
|
38
|
-
pip install tuft
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## Usage
|
|
42
|
-
|
|
43
|
-
```python
|
|
44
|
-
import tuft
|
|
45
|
-
|
|
46
|
-
# Your code here
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Development
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
# Install in development mode with uv
|
|
53
|
-
uv pip install -e ".[dev]"
|
|
54
|
-
|
|
55
|
-
# Run tests
|
|
56
|
-
uv run pytest
|
|
57
|
-
|
|
58
|
-
# Format code
|
|
59
|
-
uv run black src tests
|
|
60
|
-
|
|
61
|
-
# Type check
|
|
62
|
-
uv run mypy src
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
## Building and Publishing
|
|
66
|
-
|
|
67
|
-
```bash
|
|
68
|
-
# Build the package
|
|
69
|
-
uv build
|
|
70
|
-
|
|
71
|
-
# Publish to PyPI
|
|
72
|
-
uv publish
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## License
|
|
76
|
-
|
|
77
|
-
MIT License - see LICENSE file for details.
|
tuft-0.1.0.dist-info/RECORD
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
tuft/__init__.py,sha256=sAM0ngF8F2PnB93Yj_fNZqiPuLsXms1ZTClg7wTswl8,57
|
|
2
|
-
tuft-0.1.0.dist-info/licenses/LICENSE,sha256=H4tiBAqgq0cUtH7ZBaRKerD-uCjIw_dY6Wmb2iYkW5M,1065
|
|
3
|
-
tuft-0.1.0.dist-info/METADATA,sha256=q5JEzz9iaOJgqfpcMnG7w963bjVtAIfSY9DfMaUwlO0,1544
|
|
4
|
-
tuft-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
5
|
-
tuft-0.1.0.dist-info/top_level.txt,sha256=wRe9JNRCYedpws7kJ_dSExH4UzQC3tyFMJ2GLrw5g08,5
|
|
6
|
-
tuft-0.1.0.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tuft
|