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.

Files changed (33) hide show
  1. truss/base/constants.py +3 -0
  2. truss/cli/chains_commands.py +20 -7
  3. truss/cli/train/core.py +156 -0
  4. truss/cli/train/deploy_checkpoints/deploy_checkpoints.py +1 -1
  5. truss/cli/train_commands.py +72 -0
  6. truss/templates/base.Dockerfile.jinja +1 -3
  7. truss/templates/control/control/endpoints.py +82 -33
  8. truss/templates/control/control/helpers/truss_patch/model_container_patch_applier.py +3 -20
  9. truss/templates/control/requirements.txt +1 -1
  10. truss/templates/server/common/errors.py +1 -0
  11. truss/templates/server/truss_server.py +5 -3
  12. truss/templates/server.Dockerfile.jinja +2 -4
  13. truss/templates/train/config.py +46 -0
  14. truss/templates/train/run.sh +11 -0
  15. truss/tests/cli/train/test_deploy_checkpoints.py +3 -3
  16. truss/tests/cli/train/test_train_init.py +499 -0
  17. truss/tests/patch/test_calc_patch.py +14 -26
  18. truss/tests/templates/control/control/test_endpoints.py +20 -14
  19. truss/tests/test_control_truss_patching.py +0 -17
  20. truss/truss_handle/patch/calc_patch.py +5 -20
  21. {truss-0.11.2rc503.dist-info → truss-0.11.2rc505.dist-info}/METADATA +1 -1
  22. {truss-0.11.2rc503.dist-info → truss-0.11.2rc505.dist-info}/RECORD +32 -29
  23. truss_chains/deployment/code_gen.py +5 -1
  24. truss_chains/deployment/deployment_client.py +45 -7
  25. truss_chains/public_types.py +6 -3
  26. truss_chains/remote_chainlet/utils.py +46 -7
  27. truss_train/__init__.py +4 -0
  28. truss_train/definitions.py +47 -2
  29. truss_train/restore_from_checkpoint.py +42 -0
  30. truss/templates/server/entrypoint.sh +0 -32
  31. {truss-0.11.2rc503.dist-info → truss-0.11.2rc505.dist-info}/WHEEL +0 -0
  32. {truss-0.11.2rc503.dist-info → truss-0.11.2rc505.dist-info}/entry_points.txt +0 -0
  33. {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 "$@"