truss 0.11.2rc503__py3-none-any.whl → 0.11.2rc505__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.
Potentially problematic release.
This version of truss might be problematic. Click here for more details.
- truss/base/constants.py +3 -0
- truss/cli/chains_commands.py +20 -7
- truss/cli/train/core.py +156 -0
- truss/cli/train/deploy_checkpoints/deploy_checkpoints.py +1 -1
- truss/cli/train_commands.py +72 -0
- truss/templates/base.Dockerfile.jinja +1 -3
- truss/templates/control/control/endpoints.py +82 -33
- truss/templates/control/control/helpers/truss_patch/model_container_patch_applier.py +3 -20
- truss/templates/control/requirements.txt +1 -1
- truss/templates/server/common/errors.py +1 -0
- truss/templates/server/truss_server.py +5 -3
- truss/templates/server.Dockerfile.jinja +2 -4
- truss/templates/train/config.py +46 -0
- truss/templates/train/run.sh +11 -0
- truss/tests/cli/train/test_deploy_checkpoints.py +3 -3
- truss/tests/cli/train/test_train_init.py +499 -0
- truss/tests/patch/test_calc_patch.py +14 -26
- truss/tests/templates/control/control/test_endpoints.py +20 -14
- truss/tests/test_control_truss_patching.py +0 -17
- truss/truss_handle/patch/calc_patch.py +5 -20
- {truss-0.11.2rc503.dist-info → truss-0.11.2rc505.dist-info}/METADATA +1 -1
- {truss-0.11.2rc503.dist-info → truss-0.11.2rc505.dist-info}/RECORD +32 -29
- truss_chains/deployment/code_gen.py +5 -1
- truss_chains/deployment/deployment_client.py +45 -7
- truss_chains/public_types.py +6 -3
- truss_chains/remote_chainlet/utils.py +46 -7
- truss_train/__init__.py +4 -0
- truss_train/definitions.py +47 -2
- truss_train/restore_from_checkpoint.py +42 -0
- truss/templates/server/entrypoint.sh +0 -32
- {truss-0.11.2rc503.dist-info → truss-0.11.2rc505.dist-info}/WHEEL +0 -0
- {truss-0.11.2rc503.dist-info → truss-0.11.2rc505.dist-info}/entry_points.txt +0 -0
- {truss-0.11.2rc503.dist-info → truss-0.11.2rc505.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
set -e
|
|
3
|
-
|
|
4
|
-
# Test sudo permissions first
|
|
5
|
-
echo "Testing sudo permissions..."
|
|
6
|
-
sudo -l | grep chown || echo "No chown permissions found in sudo -l"
|
|
7
|
-
|
|
8
|
-
# Fix ownership of cache directories if they exist
|
|
9
|
-
if [ -d "/cache/model" ]; then
|
|
10
|
-
echo "Setting ownership for /cache/model"
|
|
11
|
-
echo "Before: $(ls -ld /cache/model)"
|
|
12
|
-
if sudo chown -R app:app /cache/model; then
|
|
13
|
-
echo "chown command succeeded"
|
|
14
|
-
else
|
|
15
|
-
echo "chown command failed with exit code: $?"
|
|
16
|
-
fi
|
|
17
|
-
echo "After: $(ls -ld /cache/model)"
|
|
18
|
-
fi
|
|
19
|
-
|
|
20
|
-
if [ -d "/cache/org" ]; then
|
|
21
|
-
echo "Setting ownership for /cache/org"
|
|
22
|
-
echo "Before: $(ls -ld /cache/org)"
|
|
23
|
-
if sudo chown -R app:app /cache/org; then
|
|
24
|
-
echo "chown command succeeded"
|
|
25
|
-
else
|
|
26
|
-
echo "chown command failed with exit code: $?"
|
|
27
|
-
fi
|
|
28
|
-
echo "After: $(ls -ld /cache/org)"
|
|
29
|
-
fi
|
|
30
|
-
|
|
31
|
-
# Execute the original command
|
|
32
|
-
exec "$@"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|