truss 0.10.0rc1__py3-none-any.whl → 0.60.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.
Potentially problematic release.
This version of truss might be problematic. Click here for more details.
- truss/__init__.py +10 -3
- truss/api/__init__.py +123 -0
- truss/api/definitions.py +51 -0
- truss/base/constants.py +116 -0
- truss/base/custom_types.py +29 -0
- truss/{errors.py → base/errors.py} +4 -0
- truss/base/trt_llm_config.py +310 -0
- truss/{truss_config.py → base/truss_config.py} +344 -31
- truss/{truss_spec.py → base/truss_spec.py} +20 -6
- truss/{validation.py → base/validation.py} +60 -11
- truss/cli/cli.py +841 -88
- truss/{remote → cli}/remote_cli.py +2 -7
- truss/contexts/docker_build_setup.py +67 -0
- truss/contexts/image_builder/cache_warmer.py +2 -8
- truss/contexts/image_builder/image_builder.py +1 -1
- truss/contexts/image_builder/serving_image_builder.py +292 -46
- truss/contexts/image_builder/util.py +1 -3
- truss/contexts/local_loader/docker_build_emulator.py +58 -0
- truss/contexts/local_loader/load_model_local.py +2 -2
- truss/contexts/local_loader/truss_module_loader.py +1 -1
- truss/contexts/local_loader/utils.py +1 -1
- truss/local/local_config.py +2 -6
- truss/local/local_config_handler.py +20 -5
- truss/patch/__init__.py +1 -0
- truss/patch/hash.py +4 -70
- truss/patch/signature.py +4 -16
- truss/patch/truss_dir_patch_applier.py +3 -78
- truss/remote/baseten/api.py +308 -23
- truss/remote/baseten/auth.py +3 -3
- truss/remote/baseten/core.py +257 -50
- truss/remote/baseten/custom_types.py +44 -0
- truss/remote/baseten/error.py +4 -0
- truss/remote/baseten/remote.py +369 -118
- truss/remote/baseten/service.py +118 -11
- truss/remote/baseten/utils/status.py +29 -0
- truss/remote/baseten/utils/tar.py +34 -22
- truss/remote/baseten/utils/transfer.py +36 -23
- truss/remote/remote_factory.py +14 -5
- truss/remote/truss_remote.py +72 -45
- truss/templates/base.Dockerfile.jinja +18 -16
- truss/templates/cache.Dockerfile.jinja +3 -3
- truss/{server → templates/control}/control/application.py +14 -35
- truss/{server → templates/control}/control/endpoints.py +39 -9
- truss/{server/control/patch/types.py → templates/control/control/helpers/custom_types.py} +13 -52
- truss/{server → templates/control}/control/helpers/inference_server_controller.py +4 -8
- truss/{server → templates/control}/control/helpers/inference_server_process_controller.py +2 -4
- truss/{server → templates/control}/control/helpers/inference_server_starter.py +5 -10
- truss/{server/control → templates/control/control/helpers}/truss_patch/model_code_patch_applier.py +8 -6
- truss/{server/control/patch → templates/control/control/helpers/truss_patch}/model_container_patch_applier.py +18 -26
- truss/templates/control/control/helpers/truss_patch/requirement_name_identifier.py +66 -0
- truss/{server → templates/control}/control/server.py +11 -6
- truss/templates/control/requirements.txt +9 -0
- truss/templates/custom_python_dx/my_model.py +28 -0
- truss/templates/docker_server/proxy.conf.jinja +42 -0
- truss/templates/docker_server/supervisord.conf.jinja +27 -0
- truss/templates/docker_server_requirements.txt +1 -0
- truss/templates/server/common/errors.py +231 -0
- truss/{server → templates/server}/common/patches/whisper/patch.py +1 -0
- truss/{server/common/patches/__init__.py → templates/server/common/patches.py} +1 -3
- truss/{server → templates/server}/common/retry.py +1 -0
- truss/{server → templates/server}/common/schema.py +11 -9
- truss/templates/server/common/tracing.py +157 -0
- truss/templates/server/main.py +9 -0
- truss/templates/server/model_wrapper.py +961 -0
- truss/templates/server/requirements.txt +21 -0
- truss/templates/server/truss_server.py +447 -0
- truss/templates/server.Dockerfile.jinja +62 -14
- truss/templates/shared/dynamic_config_resolver.py +28 -0
- truss/templates/shared/lazy_data_resolver.py +164 -0
- truss/templates/shared/log_config.py +125 -0
- truss/{server → templates}/shared/secrets_resolver.py +1 -2
- truss/{server → templates}/shared/serialization.py +31 -9
- truss/{server → templates}/shared/util.py +3 -13
- truss/templates/trtllm-audio/model/model.py +49 -0
- truss/templates/trtllm-audio/packages/sigint_patch.py +14 -0
- truss/templates/trtllm-audio/packages/whisper_trt/__init__.py +215 -0
- truss/templates/trtllm-audio/packages/whisper_trt/assets.py +25 -0
- truss/templates/trtllm-audio/packages/whisper_trt/batching.py +52 -0
- truss/templates/trtllm-audio/packages/whisper_trt/custom_types.py +26 -0
- truss/templates/trtllm-audio/packages/whisper_trt/modeling.py +184 -0
- truss/templates/trtllm-audio/packages/whisper_trt/tokenizer.py +185 -0
- truss/templates/trtllm-audio/packages/whisper_trt/utils.py +245 -0
- truss/templates/trtllm-briton/src/extension.py +64 -0
- truss/tests/conftest.py +302 -94
- truss/tests/contexts/image_builder/test_serving_image_builder.py +74 -31
- truss/tests/contexts/local_loader/test_load_local.py +2 -2
- truss/tests/contexts/local_loader/test_truss_module_finder.py +1 -1
- truss/tests/patch/test_calc_patch.py +439 -127
- truss/tests/patch/test_dir_signature.py +3 -12
- truss/tests/patch/test_hash.py +1 -1
- truss/tests/patch/test_signature.py +1 -1
- truss/tests/patch/test_truss_dir_patch_applier.py +23 -11
- truss/tests/patch/test_types.py +2 -2
- truss/tests/remote/baseten/test_api.py +153 -58
- truss/tests/remote/baseten/test_auth.py +2 -1
- truss/tests/remote/baseten/test_core.py +160 -12
- truss/tests/remote/baseten/test_remote.py +489 -77
- truss/tests/remote/baseten/test_service.py +55 -0
- truss/tests/remote/test_remote_factory.py +16 -18
- truss/tests/remote/test_truss_remote.py +26 -17
- truss/tests/templates/control/control/helpers/test_context_managers.py +11 -0
- truss/tests/templates/control/control/helpers/test_model_container_patch_applier.py +184 -0
- truss/tests/templates/control/control/helpers/test_requirement_name_identifier.py +89 -0
- truss/tests/{server → templates/control}/control/test_server.py +79 -24
- truss/tests/{server → templates/control}/control/test_server_integration.py +24 -16
- truss/tests/templates/core/server/test_dynamic_config_resolver.py +108 -0
- truss/tests/templates/core/server/test_lazy_data_resolver.py +329 -0
- truss/tests/templates/core/server/test_lazy_data_resolver_v2.py +79 -0
- truss/tests/{server → templates}/core/server/test_secrets_resolver.py +1 -1
- truss/tests/{server → templates/server}/common/test_retry.py +3 -3
- truss/tests/templates/server/test_model_wrapper.py +248 -0
- truss/tests/{server → templates/server}/test_schema.py +3 -5
- truss/tests/{server/core/server/common → templates/server}/test_truss_server.py +8 -5
- truss/tests/test_build.py +9 -52
- truss/tests/test_config.py +336 -77
- truss/tests/test_context_builder_image.py +3 -11
- truss/tests/test_control_truss_patching.py +7 -12
- truss/tests/test_custom_server.py +38 -0
- truss/tests/test_data/context_builder_image_test/test.py +3 -0
- truss/tests/test_data/happy.ipynb +56 -0
- truss/tests/test_data/model_load_failure_test/config.yaml +2 -0
- truss/tests/test_data/model_load_failure_test/model/__init__.py +0 -0
- truss/tests/test_data/patch_ping_test_server/__init__.py +0 -0
- truss/{test_data → tests/test_data}/patch_ping_test_server/app.py +3 -9
- truss/{test_data → tests/test_data}/server.Dockerfile +20 -21
- truss/tests/test_data/server_conformance_test_truss/__init__.py +0 -0
- truss/tests/test_data/server_conformance_test_truss/model/__init__.py +0 -0
- truss/{test_data → tests/test_data}/server_conformance_test_truss/model/model.py +1 -3
- truss/tests/test_data/test_async_truss/__init__.py +0 -0
- truss/tests/test_data/test_async_truss/model/__init__.py +0 -0
- truss/tests/test_data/test_basic_truss/__init__.py +0 -0
- truss/tests/test_data/test_basic_truss/config.yaml +16 -0
- truss/tests/test_data/test_basic_truss/model/__init__.py +0 -0
- truss/tests/test_data/test_build_commands/__init__.py +0 -0
- truss/tests/test_data/test_build_commands/config.yaml +13 -0
- truss/tests/test_data/test_build_commands/model/__init__.py +0 -0
- truss/{test_data/test_streaming_async_generator_truss → tests/test_data/test_build_commands}/model/model.py +2 -3
- truss/tests/test_data/test_build_commands_failure/__init__.py +0 -0
- truss/tests/test_data/test_build_commands_failure/config.yaml +14 -0
- truss/tests/test_data/test_build_commands_failure/model/__init__.py +0 -0
- truss/tests/test_data/test_build_commands_failure/model/model.py +17 -0
- truss/tests/test_data/test_concurrency_truss/__init__.py +0 -0
- truss/tests/test_data/test_concurrency_truss/config.yaml +4 -0
- truss/tests/test_data/test_concurrency_truss/model/__init__.py +0 -0
- truss/tests/test_data/test_custom_server_truss/__init__.py +0 -0
- truss/tests/test_data/test_custom_server_truss/config.yaml +20 -0
- truss/tests/test_data/test_custom_server_truss/test_docker_image/Dockerfile +17 -0
- truss/tests/test_data/test_custom_server_truss/test_docker_image/README.md +10 -0
- truss/tests/test_data/test_custom_server_truss/test_docker_image/VERSION +1 -0
- truss/tests/test_data/test_custom_server_truss/test_docker_image/__init__.py +0 -0
- truss/tests/test_data/test_custom_server_truss/test_docker_image/app.py +19 -0
- truss/tests/test_data/test_custom_server_truss/test_docker_image/build_upload_new_image.sh +6 -0
- truss/tests/test_data/test_openai/__init__.py +0 -0
- truss/{test_data/test_basic_truss → tests/test_data/test_openai}/config.yaml +1 -2
- truss/tests/test_data/test_openai/model/__init__.py +0 -0
- truss/tests/test_data/test_openai/model/model.py +15 -0
- truss/tests/test_data/test_pyantic_v1/__init__.py +0 -0
- truss/tests/test_data/test_pyantic_v1/model/__init__.py +0 -0
- truss/tests/test_data/test_pyantic_v1/model/model.py +28 -0
- truss/tests/test_data/test_pyantic_v1/requirements.txt +1 -0
- truss/tests/test_data/test_pyantic_v2/__init__.py +0 -0
- truss/tests/test_data/test_pyantic_v2/config.yaml +13 -0
- truss/tests/test_data/test_pyantic_v2/model/__init__.py +0 -0
- truss/tests/test_data/test_pyantic_v2/model/model.py +30 -0
- truss/tests/test_data/test_pyantic_v2/requirements.txt +1 -0
- truss/tests/test_data/test_requirements_file_truss/__init__.py +0 -0
- truss/tests/test_data/test_requirements_file_truss/config.yaml +13 -0
- truss/tests/test_data/test_requirements_file_truss/model/__init__.py +0 -0
- truss/{test_data → tests/test_data}/test_requirements_file_truss/model/model.py +1 -0
- truss/tests/test_data/test_streaming_async_generator_truss/__init__.py +0 -0
- truss/tests/test_data/test_streaming_async_generator_truss/config.yaml +4 -0
- truss/tests/test_data/test_streaming_async_generator_truss/model/__init__.py +0 -0
- truss/tests/test_data/test_streaming_async_generator_truss/model/model.py +7 -0
- truss/tests/test_data/test_streaming_read_timeout/__init__.py +0 -0
- truss/tests/test_data/test_streaming_read_timeout/model/__init__.py +0 -0
- truss/tests/test_data/test_streaming_truss/__init__.py +0 -0
- truss/tests/test_data/test_streaming_truss/config.yaml +4 -0
- truss/tests/test_data/test_streaming_truss/model/__init__.py +0 -0
- truss/tests/test_data/test_streaming_truss_with_error/__init__.py +0 -0
- truss/tests/test_data/test_streaming_truss_with_error/model/__init__.py +0 -0
- truss/{test_data → tests/test_data}/test_streaming_truss_with_error/model/model.py +3 -11
- truss/tests/test_data/test_streaming_truss_with_error/packages/__init__.py +0 -0
- truss/tests/test_data/test_streaming_truss_with_error/packages/helpers_1.py +5 -0
- truss/tests/test_data/test_streaming_truss_with_error/packages/helpers_2.py +2 -0
- truss/tests/test_data/test_streaming_truss_with_tracing/__init__.py +0 -0
- truss/tests/test_data/test_streaming_truss_with_tracing/config.yaml +43 -0
- truss/tests/test_data/test_streaming_truss_with_tracing/model/__init__.py +0 -0
- truss/tests/test_data/test_streaming_truss_with_tracing/model/model.py +65 -0
- truss/tests/test_data/test_trt_llm_truss/__init__.py +0 -0
- truss/tests/test_data/test_trt_llm_truss/config.yaml +15 -0
- truss/tests/test_data/test_trt_llm_truss/model/__init__.py +0 -0
- truss/tests/test_data/test_trt_llm_truss/model/model.py +15 -0
- truss/tests/test_data/test_truss/__init__.py +0 -0
- truss/tests/test_data/test_truss/config.yaml +4 -0
- truss/tests/test_data/test_truss/model/__init__.py +0 -0
- truss/tests/test_data/test_truss/model/dummy +0 -0
- truss/tests/test_data/test_truss/packages/__init__.py +0 -0
- truss/tests/test_data/test_truss/packages/test_package/__init__.py +0 -0
- truss/tests/test_data/test_truss_server_caching_truss/__init__.py +0 -0
- truss/tests/test_data/test_truss_server_caching_truss/model/__init__.py +0 -0
- truss/tests/test_data/test_truss_with_error/__init__.py +0 -0
- truss/tests/test_data/test_truss_with_error/config.yaml +4 -0
- truss/tests/test_data/test_truss_with_error/model/__init__.py +0 -0
- truss/tests/test_data/test_truss_with_error/model/model.py +8 -0
- truss/tests/test_data/test_truss_with_error/packages/__init__.py +0 -0
- truss/tests/test_data/test_truss_with_error/packages/helpers_1.py +5 -0
- truss/tests/test_data/test_truss_with_error/packages/helpers_2.py +2 -0
- truss/tests/test_docker.py +2 -1
- truss/tests/test_model_inference.py +1340 -292
- truss/tests/test_model_schema.py +33 -26
- truss/tests/test_testing_utilities_for_other_tests.py +50 -5
- truss/tests/test_truss_gatherer.py +3 -5
- truss/tests/test_truss_handle.py +62 -59
- truss/tests/test_util.py +2 -1
- truss/tests/test_validation.py +15 -13
- truss/tests/trt_llm/test_trt_llm_config.py +41 -0
- truss/tests/trt_llm/test_validation.py +91 -0
- truss/tests/util/test_config_checks.py +40 -0
- truss/tests/util/test_env_vars.py +14 -0
- truss/tests/util/test_path.py +10 -23
- truss/trt_llm/config_checks.py +43 -0
- truss/trt_llm/validation.py +42 -0
- truss/truss_handle/__init__.py +0 -0
- truss/truss_handle/build.py +122 -0
- truss/{decorators.py → truss_handle/decorators.py} +1 -1
- truss/truss_handle/patch/__init__.py +0 -0
- truss/{patch → truss_handle/patch}/calc_patch.py +146 -92
- truss/{types.py → truss_handle/patch/custom_types.py} +35 -27
- truss/{patch → truss_handle/patch}/dir_signature.py +1 -1
- truss/truss_handle/patch/hash.py +71 -0
- truss/{patch → truss_handle/patch}/local_truss_patch_applier.py +6 -4
- truss/truss_handle/patch/signature.py +22 -0
- truss/truss_handle/patch/truss_dir_patch_applier.py +87 -0
- truss/{readme_generator.py → truss_handle/readme_generator.py} +3 -2
- truss/{truss_gatherer.py → truss_handle/truss_gatherer.py} +3 -2
- truss/{truss_handle.py → truss_handle/truss_handle.py} +174 -78
- truss/util/.truss_ignore +3 -0
- truss/{docker.py → util/docker.py} +6 -2
- truss/util/download.py +6 -15
- truss/util/env_vars.py +41 -0
- truss/util/log_utils.py +52 -0
- truss/util/path.py +20 -20
- truss/util/requirements.py +11 -0
- {truss-0.10.0rc1.dist-info → truss-0.60.0.dist-info}/METADATA +18 -16
- truss-0.60.0.dist-info/RECORD +324 -0
- {truss-0.10.0rc1.dist-info → truss-0.60.0.dist-info}/WHEEL +1 -1
- truss-0.60.0.dist-info/entry_points.txt +4 -0
- truss_chains/__init__.py +71 -0
- truss_chains/definitions.py +756 -0
- truss_chains/deployment/__init__.py +0 -0
- truss_chains/deployment/code_gen.py +816 -0
- truss_chains/deployment/deployment_client.py +871 -0
- truss_chains/framework.py +1480 -0
- truss_chains/public_api.py +231 -0
- truss_chains/py.typed +0 -0
- truss_chains/pydantic_numpy.py +131 -0
- truss_chains/reference_code/reference_chainlet.py +34 -0
- truss_chains/reference_code/reference_model.py +10 -0
- truss_chains/remote_chainlet/__init__.py +0 -0
- truss_chains/remote_chainlet/model_skeleton.py +60 -0
- truss_chains/remote_chainlet/stub.py +380 -0
- truss_chains/remote_chainlet/utils.py +332 -0
- truss_chains/streaming.py +378 -0
- truss_chains/utils.py +178 -0
- CODE_OF_CONDUCT.md +0 -131
- CONTRIBUTING.md +0 -48
- README.md +0 -137
- context_builder.Dockerfile +0 -24
- truss/blob/blob_backend.py +0 -10
- truss/blob/blob_backend_registry.py +0 -23
- truss/blob/http_public_blob_backend.py +0 -23
- truss/build/__init__.py +0 -2
- truss/build/build.py +0 -143
- truss/build/configure.py +0 -63
- truss/cli/__init__.py +0 -2
- truss/cli/console.py +0 -5
- truss/cli/create.py +0 -5
- truss/config/trt_llm.py +0 -81
- truss/constants.py +0 -61
- truss/model_inference.py +0 -123
- truss/patch/types.py +0 -30
- truss/pytest.ini +0 -7
- truss/server/common/errors.py +0 -100
- truss/server/common/termination_handler_middleware.py +0 -64
- truss/server/common/truss_server.py +0 -389
- truss/server/control/patch/model_code_patch_applier.py +0 -46
- truss/server/control/patch/requirement_name_identifier.py +0 -17
- truss/server/inference_server.py +0 -29
- truss/server/model_wrapper.py +0 -434
- truss/server/shared/logging.py +0 -81
- truss/templates/trtllm/model/model.py +0 -97
- truss/templates/trtllm/packages/build_engine_utils.py +0 -34
- truss/templates/trtllm/packages/constants.py +0 -11
- truss/templates/trtllm/packages/schema.py +0 -216
- truss/templates/trtllm/packages/tensorrt_llm_model_repository/ensemble/config.pbtxt +0 -246
- truss/templates/trtllm/packages/tensorrt_llm_model_repository/postprocessing/1/model.py +0 -181
- truss/templates/trtllm/packages/tensorrt_llm_model_repository/postprocessing/config.pbtxt +0 -64
- truss/templates/trtllm/packages/tensorrt_llm_model_repository/preprocessing/1/model.py +0 -260
- truss/templates/trtllm/packages/tensorrt_llm_model_repository/preprocessing/config.pbtxt +0 -99
- truss/templates/trtllm/packages/tensorrt_llm_model_repository/tensorrt_llm/config.pbtxt +0 -208
- truss/templates/trtllm/packages/triton_client.py +0 -150
- truss/templates/trtllm/packages/utils.py +0 -43
- truss/test_data/context_builder_image_test/test.py +0 -4
- truss/test_data/happy.ipynb +0 -54
- truss/test_data/model_load_failure_test/config.yaml +0 -2
- truss/test_data/test_concurrency_truss/config.yaml +0 -2
- truss/test_data/test_streaming_async_generator_truss/config.yaml +0 -2
- truss/test_data/test_streaming_truss/config.yaml +0 -3
- truss/test_data/test_truss/config.yaml +0 -2
- truss/tests/server/common/test_termination_handler_middleware.py +0 -93
- truss/tests/server/control/test_model_container_patch_applier.py +0 -203
- truss/tests/server/core/server/common/test_util.py +0 -19
- truss/tests/server/test_model_wrapper.py +0 -87
- truss/util/data_structures.py +0 -16
- truss-0.10.0rc1.dist-info/RECORD +0 -216
- truss-0.10.0rc1.dist-info/entry_points.txt +0 -3
- truss/{server/shared → base}/__init__.py +0 -0
- truss/{server → templates/control}/control/helpers/context_managers.py +0 -0
- truss/{server/control → templates/control/control/helpers}/errors.py +0 -0
- truss/{server/control/patch → templates/control/control/helpers/truss_patch}/__init__.py +0 -0
- truss/{server/control/patch → templates/control/control/helpers/truss_patch}/system_packages.py +0 -0
- truss/{test_data/annotated_types_truss/model → templates/server}/__init__.py +0 -0
- truss/{server → templates/server}/common/__init__.py +0 -0
- truss/{test_data/gcs_fix/model → templates/shared}/__init__.py +0 -0
- truss/templates/{trtllm → trtllm-briton}/README.md +0 -0
- truss/{test_data/server_conformance_test_truss/model → tests/test_data}/__init__.py +0 -0
- truss/{test_data/test_basic_truss/model → tests/test_data/annotated_types_truss}/__init__.py +0 -0
- truss/{test_data → tests/test_data}/annotated_types_truss/config.yaml +0 -0
- truss/{test_data/test_requirements_file_truss → tests/test_data/annotated_types_truss}/model/__init__.py +0 -0
- truss/{test_data → tests/test_data}/annotated_types_truss/model/model.py +0 -0
- truss/{test_data → tests/test_data}/auto-mpg.data +0 -0
- truss/{test_data → tests/test_data}/context_builder_image_test/Dockerfile +0 -0
- truss/{test_data/test_truss/model → tests/test_data/context_builder_image_test}/__init__.py +0 -0
- truss/{test_data/test_truss_server_caching_truss/model → tests/test_data/gcs_fix}/__init__.py +0 -0
- truss/{test_data → tests/test_data}/gcs_fix/config.yaml +0 -0
- truss/tests/{local → test_data/gcs_fix/model}/__init__.py +0 -0
- truss/{test_data → tests/test_data}/gcs_fix/model/model.py +0 -0
- truss/{test_data/test_truss/model/dummy → tests/test_data/model_load_failure_test/__init__.py} +0 -0
- truss/{test_data → tests/test_data}/model_load_failure_test/model/model.py +0 -0
- truss/{test_data → tests/test_data}/pima-indians-diabetes.csv +0 -0
- truss/{test_data → tests/test_data}/readme_int_example.md +0 -0
- truss/{test_data → tests/test_data}/readme_no_example.md +0 -0
- truss/{test_data → tests/test_data}/readme_str_example.md +0 -0
- truss/{test_data → tests/test_data}/server_conformance_test_truss/config.yaml +0 -0
- truss/{test_data → tests/test_data}/test_async_truss/config.yaml +0 -0
- truss/{test_data → tests/test_data}/test_async_truss/model/model.py +3 -3
- /truss/{test_data → tests/test_data}/test_basic_truss/model/model.py +0 -0
- /truss/{test_data → tests/test_data}/test_concurrency_truss/model/model.py +0 -0
- /truss/{test_data/test_requirements_file_truss → tests/test_data/test_pyantic_v1}/config.yaml +0 -0
- /truss/{test_data → tests/test_data}/test_requirements_file_truss/requirements.txt +0 -0
- /truss/{test_data → tests/test_data}/test_streaming_read_timeout/config.yaml +0 -0
- /truss/{test_data → tests/test_data}/test_streaming_read_timeout/model/model.py +0 -0
- /truss/{test_data → tests/test_data}/test_streaming_truss/model/model.py +0 -0
- /truss/{test_data → tests/test_data}/test_streaming_truss_with_error/config.yaml +0 -0
- /truss/{test_data → tests/test_data}/test_truss/examples.yaml +0 -0
- /truss/{test_data → tests/test_data}/test_truss/model/model.py +0 -0
- /truss/{test_data → tests/test_data}/test_truss/packages/test_package/test.py +0 -0
- /truss/{test_data → tests/test_data}/test_truss_server_caching_truss/config.yaml +0 -0
- /truss/{test_data → tests/test_data}/test_truss_server_caching_truss/model/model.py +0 -0
- /truss/{patch → truss_handle/patch}/constants.py +0 -0
- /truss/{notebook.py → util/notebook.py} +0 -0
- {truss-0.10.0rc1.dist-info → truss-0.60.0.dist-info}/LICENSE +0 -0
truss-0.10.0rc1.dist-info/RECORD
DELETED
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
CODE_OF_CONDUCT.md,sha256=RVXkBQ1MA-dQLh5XVQySqTUU8Zu2DweKVrtCnYpS4E4,5483
|
|
2
|
-
CONTRIBUTING.md,sha256=d_up5Xxmd8Vowrs0RnDnbk-EM4xSWn3SeWuwUnOENgM,1821
|
|
3
|
-
README.md,sha256=Bbos1rr9Nk7jcx6FCx7qgtcDGnBomu8AzKKT1XTPf7s,5107
|
|
4
|
-
context_builder.Dockerfile,sha256=zJ7NanR86HHUIQdHaR24TKorW7xppWiW903A18f7GCo,933
|
|
5
|
-
truss/__init__.py,sha256=d5cAIx5e1DIm06b5tqXx0_O3sFPbu0B4FhHzP5vA57Q,255
|
|
6
|
-
truss/blob/blob_backend.py,sha256=U1pAbsiVuxa4u1RJc1yjRpEKqZ5EdGB_3l6ptybKAlU,252
|
|
7
|
-
truss/blob/blob_backend_registry.py,sha256=qoJ6YU5PC4pqdzEcRivj2SO_dRqWalrYQaNEFPLEbqU,733
|
|
8
|
-
truss/blob/http_public_blob_backend.py,sha256=7K9aZ0eVTRtp_kqBjfDdL7R9bsbscl-Y3JtszKlwB3c,648
|
|
9
|
-
truss/build/__init__.py,sha256=lNd8HotU75OLBQ3gMi_t-z1M-W94CRjOlhpXcobs4iU,36
|
|
10
|
-
truss/build/build.py,sha256=Eux1nA5ZLKR7x61YQ01WM4NUy3F1doGWb6WVIAkCUe4,4518
|
|
11
|
-
truss/build/configure.py,sha256=VV3O9mlptkb0lZgDuldtEhSCAdE1YP93IvTD5l-qbLE,1966
|
|
12
|
-
truss/cli/__init__.py,sha256=MbysOY8Sxg1QaFfyMEmpme5epW2nlufJ-pq8y-7s5Hk,51
|
|
13
|
-
truss/cli/cli.py,sha256=nQIqxEajYN1TmRpJznZ77a7fRjzQevTBJXq9CY3Sxu8,18059
|
|
14
|
-
truss/cli/console.py,sha256=LbMcWawYYiMVT_QE9Ba6npIJ2Nu0zaT68SaerBLMbig,115
|
|
15
|
-
truss/cli/create.py,sha256=lB3ltYbv6PW59OfqHiw4ncGFlv-So_eR9HTHJsEv3tc,134
|
|
16
|
-
truss/config/trt_llm.py,sha256=d7qAGUBFR6TFW_-POgZHqxdQW9oeH5uaD1jZ3-CVGm0,2521
|
|
17
|
-
truss/constants.py,sha256=HWYe5hejjlS5ntrcMB3clv5rHFoaiBmEpl1ANbM-sx4,1831
|
|
18
|
-
truss/contexts/image_builder/cache_warmer.py,sha256=uzqsJLmpDq8cPFoMFvk6SmeDFt_aohrAtDG07dbnYmk,7425
|
|
19
|
-
truss/contexts/image_builder/image_builder.py,sha256=vspFT19A1CNfQeTQjSnYGHcxDbwBO3v7Z8z2X8gROWw,1456
|
|
20
|
-
truss/contexts/image_builder/serving_image_builder.py,sha256=ScOdC4nXmP2JJvlJ4AWvwV5R8xWOx4qmW6CxKfBcrVg,16253
|
|
21
|
-
truss/contexts/image_builder/util.py,sha256=h5gXcfan4Bk_AR4mYmuVXJzMNk6HB9J62eCdVb461AU,1561
|
|
22
|
-
truss/contexts/local_loader/load_model_local.py,sha256=euSeioW7Zcw37B-Alg887l9i6hWDPst9hRJDsfQdVbQ,1813
|
|
23
|
-
truss/contexts/local_loader/truss_module_loader.py,sha256=xTOhxL8A0MouaHdQ-pmHyMS9qy222QAxygeD83KdkrY,5711
|
|
24
|
-
truss/contexts/local_loader/utils.py,sha256=IX99KNbhlgZZTNj5rtmaG7Kc9f5rt5WvLrZ9VuY_GCM,853
|
|
25
|
-
truss/contexts/truss_context.py,sha256=uS6L-ACHxNk0BsJwESOHh1lA0OGGw0pb33aFKGsASj4,436
|
|
26
|
-
truss/decorators.py,sha256=3MjHWBdtI1OwLXf1xBJdURfDTM7ayZSrXYSeHs7zxG8,394
|
|
27
|
-
truss/docker.py,sha256=E4jlgJOp3atiCG30b9ZBJuaYMWF16PbVT5LW6AR4moc,3641
|
|
28
|
-
truss/errors.py,sha256=ym2lrKLyMEPBDxOPH7GWzGX55db_RVmQIYcgF1vtIFo,643
|
|
29
|
-
truss/local/local_config.py,sha256=mFj0VMWlJZ9EDzq91YsrMnn-qL-5lFGMUPlrKw8DLes,824
|
|
30
|
-
truss/local/local_config_handler.py,sha256=OpHQREA7VL5oWP5z_qrYaGiv3ktt0-0JnCHpw49f3iU,3896
|
|
31
|
-
truss/model_inference.py,sha256=0GDzKAbMzQfX9xoxRK81Op8melHTji3PqJgTvO0ScRI,3934
|
|
32
|
-
truss/notebook.py,sha256=2O936QwA1mnSNoPQt24Y-tIavPg_mQLyaD8cQgetgmI,510
|
|
33
|
-
truss/patch/calc_patch.py,sha256=hD9zO7LFqOGFa5OBn5ki5w2zdM_QCjIgI2y-n9ffL_Y,15114
|
|
34
|
-
truss/patch/constants.py,sha256=pCEi5Pwi8Rnqthrr3VEsWL9EP1P1VV1T8DEYuitHLmc,139
|
|
35
|
-
truss/patch/dir_signature.py,sha256=zePRss3ytGckimLCC-Otcvm1FurlCcJqd7fw_wBA024,908
|
|
36
|
-
truss/patch/hash.py,sha256=KdrWbANvERPmV00SlsTjPwPAD0k70n37sUtOS4TseZQ,2110
|
|
37
|
-
truss/patch/local_truss_patch_applier.py,sha256=XwtmrWKuFBMqc-fxhzNfK8P1bAqzMNbOiBGK3pDmg5o,2864
|
|
38
|
-
truss/patch/signature.py,sha256=RdGvea8_Zchyf3rDUHJW5z5nBwg7bLRbhu3CUNtHZ90,570
|
|
39
|
-
truss/patch/truss_dir_patch_applier.py,sha256=T0l7wONgx6QSmAOYWVdPOO101h3GbXjZ0m4S2eM4b2I,3285
|
|
40
|
-
truss/patch/types.py,sha256=0VXCJlKBsyfgmEsrrQI_8KQYHa2iLzV3pSJqbOkLw10,960
|
|
41
|
-
truss/pytest.ini,sha256=ep9phAqWH4Pwy3q0naC5WjpdBqpg4NqOJawPPFEnPxw,237
|
|
42
|
-
truss/readme_generator.py,sha256=1pby1_p3zB1GqInQwMbuQ39okWAxS5GuMfZuo5F7M24,705
|
|
43
|
-
truss/remote/baseten/__init__.py,sha256=XNqJW1zyp143XQc6-7XVwsUA_Q_ZJv_ausn1_Ohtw9Y,176
|
|
44
|
-
truss/remote/baseten/api.py,sha256=T88rUJolP3XKI4ZF0EiR5JT0N4pDdWZlTVR56KNXQyE,7198
|
|
45
|
-
truss/remote/baseten/auth.py,sha256=Po4U1okV6u_g3_hxp3ceLQEuPdE_WJM6PyLZRF7X8mw,752
|
|
46
|
-
truss/remote/baseten/core.py,sha256=p9cKkkwI_3utB9PcghKhTtPp69YbflQyll1IIiW2Aew,6952
|
|
47
|
-
truss/remote/baseten/error.py,sha256=MDf_C4Jk6kdiTX4vdGyz_hz-rgq9J5o6ibB2EVDSads,541
|
|
48
|
-
truss/remote/baseten/remote.py,sha256=3HyLUvpigUiQe7hqS3X-YFo3A0SqS58J_DwoQTL9pbE,11775
|
|
49
|
-
truss/remote/baseten/service.py,sha256=ytoDHz-URATOhH4wexFtFkCXMF-XMRULLOhH7_La58M,2665
|
|
50
|
-
truss/remote/baseten/utils/tar.py,sha256=cGx5_KFH-u9nM8MmvaJQESIuxfA0nIuBPxvBvE2lx7o,1951
|
|
51
|
-
truss/remote/baseten/utils/transfer.py,sha256=tSkKPHlB4TPWnRjf9pLvgyztGgLF9C4F7iR3umsJSXY,985
|
|
52
|
-
truss/remote/remote_cli.py,sha256=CvdHiXx2yjQfwNlTIIp9rhjmRl1-SusBP6iJgqu2u0E,1854
|
|
53
|
-
truss/remote/remote_factory.py,sha256=5FCNb_9Qq6wljg4wi1VyPXfDyhES6c8mpKu650ODsqY,4219
|
|
54
|
-
truss/remote/truss_remote.py,sha256=t_IgmIiXa0P-ydPqHaHHoBW1tAbSTbYZZ6NRhEYWPR0,7474
|
|
55
|
-
truss/server/common/__init__.py,sha256=qHIqr68L5Tn4mV6S-PbORpcuJ4jmtBR8aCuRTIWDvNo,85
|
|
56
|
-
truss/server/common/errors.py,sha256=1j48yrWZSD5vVzm4O50vJOVNJJAUvHyli39frx71Ef4,2561
|
|
57
|
-
truss/server/common/patches/__init__.py,sha256=AuYpwZEWx1gVRULma25mBl46OZL4T8IaVCbwTJhapwo,1438
|
|
58
|
-
truss/server/common/patches/whisper/patch.py,sha256=DeEb5gdWuetjkBPffcLsf7IEfDvs30Uj7hjXJ1iQqAA,2382
|
|
59
|
-
truss/server/common/retry.py,sha256=DTAd9G2AKYdYVv4UZOkLnin3JecBSE-dHkx7q0TALmM,593
|
|
60
|
-
truss/server/common/schema.py,sha256=1nRxd-3WAHjW2Uw1JjHBPR3xF1qIgeJRNGxGepztxk4,5758
|
|
61
|
-
truss/server/common/termination_handler_middleware.py,sha256=VOBOVAQUgwIMdM7QBll_VBhruSV-S7wFxXgcx7IUDi0,2340
|
|
62
|
-
truss/server/common/truss_server.py,sha256=kkXjpOYjetCzvBO6ncpw25V3QndRPQSecN4bxRE32Mg,14320
|
|
63
|
-
truss/server/control/application.py,sha256=bKROu2cs-G0kHi44FGe_SbSXdWvCZQ1pLRJRPtdeGNg,3972
|
|
64
|
-
truss/server/control/endpoints.py,sha256=IKgirjMacakhtmEVwz_hw2xO6H_wOp69jRBi9FoPkCg,5410
|
|
65
|
-
truss/server/control/errors.py,sha256=QVE54p_yanBKpm9o-XPGB0ybp5l9E0KBfTqoqS28nyc,955
|
|
66
|
-
truss/server/control/helpers/context_managers.py,sha256=W6dyFgLBhPa5meqrOb3w_phMtKfaJI-GhwUfpiycDc8,413
|
|
67
|
-
truss/server/control/helpers/inference_server_controller.py,sha256=gebfQ05OxkCdNQZqHA8DfcBOklWwABF0lRFpbp6EvPM,6395
|
|
68
|
-
truss/server/control/helpers/inference_server_process_controller.py,sha256=LaffoRRLOSScyvznqMrpcqawxyWasCQ48HenE5tBmnA,4266
|
|
69
|
-
truss/server/control/helpers/inference_server_starter.py,sha256=xayVvHRDmasf2Fe-5beD7eWhnntFRnSVjcv-CjY-Cic,2674
|
|
70
|
-
truss/server/control/patch/__init__.py,sha256=CXZdUV_ylqLTJrKuFpvSnUT6PUFrZrMF2y6jiHbdaKU,998
|
|
71
|
-
truss/server/control/patch/model_code_patch_applier.py,sha256=Ae0i1Oo3N6pSVgMHZ-SsIwoMvN0oVu-WvWW2xSqawcg,1675
|
|
72
|
-
truss/server/control/patch/model_container_patch_applier.py,sha256=elXtxAGyXYVp9ocoNWATdew0WFTz8qw-npfLwTV1l2Y,7451
|
|
73
|
-
truss/server/control/patch/requirement_name_identifier.py,sha256=-BH55SX2QhX2ukh6O1oNlVisUN8DKLwNRbMp616NAyU,551
|
|
74
|
-
truss/server/control/patch/system_packages.py,sha256=IYh1CVU_kooAvtSGXKQDDWnNdOhlv7ENWagsL1wvhgw,208
|
|
75
|
-
truss/server/control/patch/types.py,sha256=mKYhJwmJ3uwb3xHuG9o1Muz-hdNhvCM5jAVub0aOjiU,5930
|
|
76
|
-
truss/server/control/server.py,sha256=dpCfNCRXC1h6n32gG6IjiZp2fHB41c4Mr9Jwq1koRTw,2248
|
|
77
|
-
truss/server/control/truss_patch/model_code_patch_applier.py,sha256=QX9x9cJw87AVjnMhJVqixbY3KiXtRKOcBKbbQ-dCc1A,1615
|
|
78
|
-
truss/server/inference_server.py,sha256=Hx9XaHiATEMc38DNsgtM37MOZonkHYVqvUdGmF9jkB4,761
|
|
79
|
-
truss/server/model_wrapper.py,sha256=5tPkkwRkegvCn8OqZlWhWh_amoqxqu2Uz0Jd6zMGkgw,15905
|
|
80
|
-
truss/server/shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
81
|
-
truss/server/shared/logging.py,sha256=QGVZeXlw137jHK07Gv9qsyAkM7w5mDYqBXlkCZpY5W8,2469
|
|
82
|
-
truss/server/shared/secrets_resolver.py,sha256=8XuqZh4VAuMHy7O1Ax-H5Svm21Yv7vynVjwTPgUqT4I,2163
|
|
83
|
-
truss/server/shared/serialization.py,sha256=nHmFEKP3GQarE9JWV9ULETdtKljI7YWqOGJ4Ij0dyAk,3318
|
|
84
|
-
truss/server/shared/util.py,sha256=1ZW495d5KdXhCUJDF9bVZn_hQKuPHbWD2Wi40epW7N0,2408
|
|
85
|
-
truss/templates/README.md.jinja,sha256=OVURgSPiQGgyFWEI2c7QPgJI7SrOw0K2uvDsmpzR9qg,2482
|
|
86
|
-
truss/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
87
|
-
truss/templates/base.Dockerfile.jinja,sha256=ryTYvBqHGtTO0YAo0HUHUdGQMrPwVbqMcDtmkIuMibw,2315
|
|
88
|
-
truss/templates/cache.Dockerfile.jinja,sha256=PFyQnzc3_odLBcwDaKcv6GLx2tzd3BAt7RrovaVSNlY,1026
|
|
89
|
-
truss/templates/cache_requirements.txt,sha256=xoPoJ-OVnf1z6oq_RVM3vCr3ionByyqMLj7wGs61nUs,87
|
|
90
|
-
truss/templates/copy_cache_files.Dockerfile.jinja,sha256=arHldnuclt7vUFHyRz6vus5NGMDkIofm-1RU37A0xZM,98
|
|
91
|
-
truss/templates/custom/examples.yaml,sha256=2UcCtEdavImWmiCtj31ckBlAKVOwNMC5AwMIIznKDag,48
|
|
92
|
-
truss/templates/custom/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
93
|
-
truss/templates/custom/model/model.py,sha256=J04rLxK09Pwt2F4GoKOLKL-H-CqZUdYIM-PL2CE9PoE,1079
|
|
94
|
-
truss/templates/server.Dockerfile.jinja,sha256=6D1-YIf3QW52KJ5lax7Zhl5TpOhsxuibnxiEGnQaug4,2758
|
|
95
|
-
truss/templates/trtllm/README.md,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
96
|
-
truss/templates/trtllm/model/model.py,sha256=8HoFdASLjE58_bHCyj6SwFFCYcIvm9rjky0f_st0kVw,3071
|
|
97
|
-
truss/templates/trtllm/packages/build_engine_utils.py,sha256=ftKVvwU4eAQZ-IxKvWXx4cvbO9dJlNSBcdkOee7z1u8,1043
|
|
98
|
-
truss/templates/trtllm/packages/constants.py,sha256=JliXXP1qK26l0qeyDJ4mhMHfDmKTzKZO5WDfaq-jn9w,397
|
|
99
|
-
truss/templates/trtllm/packages/schema.py,sha256=KQNNpnXlZZtbLfVPne3UsIAvuiyWF_D4wSpYpXnqquo,7419
|
|
100
|
-
truss/templates/trtllm/packages/tensorrt_llm_model_repository/ensemble/config.pbtxt,sha256=PhBjRylGCGA0t7iWdrAaAOq23HpQsgoLKGH-m4pzWps,5498
|
|
101
|
-
truss/templates/trtllm/packages/tensorrt_llm_model_repository/postprocessing/1/model.py,sha256=0ZnEMIWuVYZ6KFG859vz6bAHpsC-eAPfyewqt5D1Ngg,7855
|
|
102
|
-
truss/templates/trtllm/packages/tensorrt_llm_model_repository/postprocessing/config.pbtxt,sha256=LdgusTIyhjF0Mbww2WZG_zHShDSnXfZpFDbB5kgdX8E,2034
|
|
103
|
-
truss/templates/trtllm/packages/tensorrt_llm_model_repository/preprocessing/1/model.py,sha256=9NEIxCLqDRAP_HLMWOgTfR8qUKV34IXG5HZf7Qpdtjc,10875
|
|
104
|
-
truss/templates/trtllm/packages/tensorrt_llm_model_repository/preprocessing/config.pbtxt,sha256=OGtLearmCZ0NpmoVzA9MEIjYAO4GewizFbaQ4X9RFC0,2737
|
|
105
|
-
truss/templates/trtllm/packages/tensorrt_llm_model_repository/tensorrt_llm/config.pbtxt,sha256=TzXhjAO1SZy7eJrrp1-hihRWId_zQS0QD755rGgmeqE,4461
|
|
106
|
-
truss/templates/trtllm/packages/triton_client.py,sha256=dGB7LOAdCM6zPfn-oqt9-5vwSmqyfQVtrAHd3cCOBJg,5025
|
|
107
|
-
truss/templates/trtllm/packages/utils.py,sha256=8GrgXk-ZVu-GpjAZJaTculjIGSmzXAgunSDBj1V-MxE,1378
|
|
108
|
-
truss/test_data/annotated_types_truss/config.yaml,sha256=B-ZyyjLLqtxGfXj2tkH68Hy7NOMB_coYvoWyWom61g0,147
|
|
109
|
-
truss/test_data/annotated_types_truss/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
110
|
-
truss/test_data/annotated_types_truss/model/model.py,sha256=uYaHgz2eRRm1bvGmDbKE-b0jwbn1KMOl8DL87XspvI0,274
|
|
111
|
-
truss/test_data/auto-mpg.data,sha256=SLgw4R_u5VclJfjxaR3bnTjT17cGPtzY_KZywqXhfY0,30286
|
|
112
|
-
truss/test_data/context_builder_image_test/Dockerfile,sha256=nEnjj3nNrOmwVivtRP_nxip5TZAVGlObJ9j0II5bX3o,93
|
|
113
|
-
truss/test_data/context_builder_image_test/test.py,sha256=8CTsALbMJ2SyLwGq8TRoA-bx5ARSCl1ipQZuqTM9FF8,72
|
|
114
|
-
truss/test_data/gcs_fix/config.yaml,sha256=DrIQnzkUKuG7baialNoaYl1Ed7RMBJeAuuR5SM8YQtE,234
|
|
115
|
-
truss/test_data/gcs_fix/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
116
|
-
truss/test_data/gcs_fix/model/model.py,sha256=J04rLxK09Pwt2F4GoKOLKL-H-CqZUdYIM-PL2CE9PoE,1079
|
|
117
|
-
truss/test_data/happy.ipynb,sha256=mkqrfr3voNoZNDDnMBlYtHcZzpExBobbuhoj1JSZWU8,1394
|
|
118
|
-
truss/test_data/model_load_failure_test/config.yaml,sha256=YxHslvQnNJJuWYv3K0ElL_hkLassiM_3IhPeV_wU4XM,51
|
|
119
|
-
truss/test_data/model_load_failure_test/model/model.py,sha256=P9zI0n7ensYvUy0F_7LR5BpAlNM-P2UCtDT73uOJfNg,552
|
|
120
|
-
truss/test_data/patch_ping_test_server/app.py,sha256=KUpFNOnhVueX-G8CMVjXo8Jr5Vra40JSHMyOPrpRbfA,1267
|
|
121
|
-
truss/test_data/pima-indians-diabetes.csv,sha256=BvW3ws17ymhv2k-S6rX2Hn_2QmqazvouPdoE_FQpPPU,23279
|
|
122
|
-
truss/test_data/readme_int_example.md,sha256=fuHvpLtdkJy1f4NAR_djotVBdzusHYNXc-Fwh588XAE,1586
|
|
123
|
-
truss/test_data/readme_no_example.md,sha256=T2CzFMRvICXeX3_5XbFoqhHchcHGot-xM7izx34B3aQ,1607
|
|
124
|
-
truss/test_data/readme_str_example.md,sha256=fP4pvMqgLdIapaOf_BgRiV0H7pw4so0RNxrlq5lbROE,1726
|
|
125
|
-
truss/test_data/server.Dockerfile,sha256=mWXm_3wx1KuP1ZEDHGYHiNUgvSOuQN_JNwExhX5Kv9U,1649
|
|
126
|
-
truss/test_data/server_conformance_test_truss/config.yaml,sha256=QM9fG4QPKy_8ICSPhtMXM22ls82q9yrZX9_0E52E7O0,57
|
|
127
|
-
truss/test_data/server_conformance_test_truss/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
128
|
-
truss/test_data/server_conformance_test_truss/model/model.py,sha256=rMeUt3-lIFPU3gBHmadl4o5oAUnLWHG1zZjAu188a2Y,597
|
|
129
|
-
truss/test_data/test_async_truss/config.yaml,sha256=SQ0Sbm7yokcSSXd6_e3qn01PVnSxNTbVJJplgIN8ooc,44
|
|
130
|
-
truss/test_data/test_async_truss/model/model.py,sha256=f3ccxnuhtf2FPaLFC1nLamYyhxr0Q1BM28JTIhFRCts,646
|
|
131
|
-
truss/test_data/test_basic_truss/config.yaml,sha256=10MRLZMXZ3TadLV7-ojXYjP2DFqbk0GcTCLk485kV1E,238
|
|
132
|
-
truss/test_data/test_basic_truss/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
133
|
-
truss/test_data/test_basic_truss/model/model.py,sha256=J04rLxK09Pwt2F4GoKOLKL-H-CqZUdYIM-PL2CE9PoE,1079
|
|
134
|
-
truss/test_data/test_concurrency_truss/config.yaml,sha256=9evmEYkRXc8zaND_Envg4zi1qUA5nWo__g4h56tAN3I,34
|
|
135
|
-
truss/test_data/test_concurrency_truss/model/model.py,sha256=RZZnOykhezeZeIRVAvn9T7tVlDWdBgKsXR461ExswQg,547
|
|
136
|
-
truss/test_data/test_requirements_file_truss/config.yaml,sha256=fqWpH3E4UPEnjvAw6Q9_F5oZZLy69RAfycbgtmCFsXo,270
|
|
137
|
-
truss/test_data/test_requirements_file_truss/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
138
|
-
truss/test_data/test_requirements_file_truss/model/model.py,sha256=XVR-GOejULkcB99vvJq--lgOjKRx12HbNAQfSlRqQng,1106
|
|
139
|
-
truss/test_data/test_requirements_file_truss/requirements.txt,sha256=DsI3R7RysM8hloBUC9ynRCH8YZu15WEiDN-9W5UU9JU,13
|
|
140
|
-
truss/test_data/test_streaming_async_generator_truss/config.yaml,sha256=-bSuMZVa-BjAh-OL-paWvetyRYc98rK0q5Of2TB_9bE,64
|
|
141
|
-
truss/test_data/test_streaming_async_generator_truss/model/model.py,sha256=0-qGw3Fjp6zoF_p08LEfiUPNBxoDr0YUR0q4KRN9dtc,521
|
|
142
|
-
truss/test_data/test_streaming_read_timeout/config.yaml,sha256=JPjgYm7W-pT71xze9eREYtiAZ27bRR82RF-nYV02VIc,206
|
|
143
|
-
truss/test_data/test_streaming_read_timeout/model/model.py,sha256=-0TTVhs-E6c-XQOMOQO2rNDEYec9SLUoMCTKhhitxhM,636
|
|
144
|
-
truss/test_data/test_streaming_truss/config.yaml,sha256=7z1E068P2CfAHLANeSf_Vl44oID4Mo74WhO1DDQCaFU,49
|
|
145
|
-
truss/test_data/test_streaming_truss/model/model.py,sha256=YfSzzJvTiCHK3bpDvJpC6wIALDHyIY-DhnoUIKyE4x4,606
|
|
146
|
-
truss/test_data/test_streaming_truss_with_error/config.yaml,sha256=_WYxhe_ugCJlIQU3uH9G6dmurSn8lJTACrVFKjj8UmU,59
|
|
147
|
-
truss/test_data/test_streaming_truss_with_error/model/model.py,sha256=2tOmQgtzedp_5Hp4t0FMjUaNvNe4uY1F1U6exw6DHig,673
|
|
148
|
-
truss/test_data/test_truss/config.yaml,sha256=i_0NVRuLedSm-IcsDZ1hoXj-3_9HO5M8y2N2yTuvri0,38
|
|
149
|
-
truss/test_data/test_truss/examples.yaml,sha256=2UcCtEdavImWmiCtj31ckBlAKVOwNMC5AwMIIznKDag,48
|
|
150
|
-
truss/test_data/test_truss/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
151
|
-
truss/test_data/test_truss/model/dummy,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
152
|
-
truss/test_data/test_truss/model/model.py,sha256=ey1i66JmGGWTIEVMtiIxPrB4xSqjntBGiaHvbeqDt3w,534
|
|
153
|
-
truss/test_data/test_truss/packages/test_package/test.py,sha256=Crrh4K5yghbuRJk8Wjp1X4scOH2Uf8TE9yyrDkqEIUs,6
|
|
154
|
-
truss/test_data/test_truss_server_caching_truss/config.yaml,sha256=_XNyYiZenx5jjXRBx170Pu93PVXqIhSF7Rn-Lv5Rqp0,352
|
|
155
|
-
truss/test_data/test_truss_server_caching_truss/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
156
|
-
truss/test_data/test_truss_server_caching_truss/model/model.py,sha256=PzIUuHohTxl7rqFpKNF6Gx2t9cfYhc_T6_a8FEPygyo,448
|
|
157
|
-
truss/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
158
|
-
truss/tests/conftest.py,sha256=gyWK6tYSrzbErYIfj4lC5Hon0PQuQ_C9NOSDor9FDNE,17265
|
|
159
|
-
truss/tests/contexts/image_builder/test_serving_image_builder.py,sha256=ecXnRZSuF_pqdh2N25OBL3VPjggSJ7M6ei0t_ArwsJ4,10356
|
|
160
|
-
truss/tests/contexts/local_loader/test_load_local.py,sha256=V2OH35_CEL4Gt_LVIWqFIPn3DU_japrQCmW0KmNMdzo,783
|
|
161
|
-
truss/tests/contexts/local_loader/test_truss_module_finder.py,sha256=mDh0IC0mjbfaL0NjPKsrvYBCdPJIIYCr0vKamNUWy94,5337
|
|
162
|
-
truss/tests/helpers.py,sha256=DKnUGzmt-k4IN_wSnlAXbVYCiEt58xFzFmmuCDSQ0dg,555
|
|
163
|
-
truss/tests/local/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
164
|
-
truss/tests/local/test_local_config_handler.py,sha256=aLvcOyfppskA2MziVLy_kMcagjxMpO4mjar9zxUN6g0,2245
|
|
165
|
-
truss/tests/patch/test_calc_patch.py,sha256=wEIsUOmEIscwaZCdLI9zfJ_MrnuRAIGejxwr2eYf5Ic,19220
|
|
166
|
-
truss/tests/patch/test_dir_signature.py,sha256=j3_Y1ob3o3I-G79R-sQbqqXnzicWG6V2MyyFcsSkX3g,1090
|
|
167
|
-
truss/tests/patch/test_hash.py,sha256=4-A1vG_36Pif7_ZeHRaYDxxlrHHbJKFr1SXdYD5HENE,5983
|
|
168
|
-
truss/tests/patch/test_signature.py,sha256=N1iQtTNScUMeCeeWPAw7H5kQ2nXqW6mKCa_RWLss00o,715
|
|
169
|
-
truss/tests/patch/test_truss_dir_patch_applier.py,sha256=eW0ZOl-G4wZRjEV3xfAWC6eahxOqlGDBDaEK1rwPmHY,2591
|
|
170
|
-
truss/tests/patch/test_types.py,sha256=syCUgeFsEigv5lORBVrowbgGBHFz2Mt9_zDr-NvWwO0,273
|
|
171
|
-
truss/tests/remote/baseten/test_api.py,sha256=6BtcotfVVVUZv9HB4DefwqTq3U5zHaR2YyiodftVAs8,7658
|
|
172
|
-
truss/tests/remote/baseten/test_auth.py,sha256=sCTk1jutFkjvs-0h4qkQIUenmv3zfnz8_P2MzHy0h9w,580
|
|
173
|
-
truss/tests/remote/baseten/test_core.py,sha256=twTqsasXRfI6fSRVtFulY4yoCnZ0IXKwFHRTG-3CQVM,2589
|
|
174
|
-
truss/tests/remote/baseten/test_remote.py,sha256=-q7STOFTuuECnwB93_XARHQP_OdRvAJKAc1MNVbewYk,8243
|
|
175
|
-
truss/tests/remote/test_remote_factory.py,sha256=DZwlvAsfcpj2kuxCk4JKtC5iZxFzEQjLsh3-yEZubcI,4626
|
|
176
|
-
truss/tests/remote/test_truss_remote.py,sha256=9WbhUJNjKQL97pVJxixeD-xXaAUYjhvw16x6xsmsGjA,2475
|
|
177
|
-
truss/tests/server/common/test_retry.py,sha256=J_CwUW3iy7ybkB8LsDmW8hsIQL_9QrMIrw1WdQ86GxU,2038
|
|
178
|
-
truss/tests/server/common/test_termination_handler_middleware.py,sha256=NdQJ5Uf2CaTkuO5frbzP31sctRPp5xpXE_1qQ8JluZc,2595
|
|
179
|
-
truss/tests/server/control/test_model_container_patch_applier.py,sha256=IuhvolMYR9tsy2xYd9FQ4P_Uvfmrz0dgupooESlGN-E,5552
|
|
180
|
-
truss/tests/server/control/test_server.py,sha256=otLE3paHfZLirD60f8jE3m3s-5tT5pvm4qa1M7iGL4U,7106
|
|
181
|
-
truss/tests/server/control/test_server_integration.py,sha256=i-ALewlYFenndrX2RITKlf49QQpnyFrIRkVaL6HhGTU,8126
|
|
182
|
-
truss/tests/server/core/server/common/test_truss_server.py,sha256=4MplqW3JIkGcl_2LPtwDLmxmVM_h1NU7oes8DmrAxoc,1478
|
|
183
|
-
truss/tests/server/core/server/common/test_util.py,sha256=EO3BlgMY6-VLb-V_fCDo-hYoxzxx_AMNiPTtoA4RWD4,821
|
|
184
|
-
truss/tests/server/core/server/test_secrets_resolver.py,sha256=Xxn_RdGu-2dokEWW9uaOG9MrCtoRJIhFlXTMtYJyElw,1536
|
|
185
|
-
truss/tests/server/test_model_wrapper.py,sha256=4gOYSra3OByeTMRhVhNk5M2CqqjNImaC6Ha0Ivo9EcY,3113
|
|
186
|
-
truss/tests/server/test_schema.py,sha256=gObOb7oKsop-IHgAyiddyGLji-hiwtKMBuqzBU0GJD4,7931
|
|
187
|
-
truss/tests/test_build.py,sha256=PBfRjNIhnDd1mHw0xqRuBWUMwwrQsWVANrSdaB5UcaI,1952
|
|
188
|
-
truss/tests/test_config.py,sha256=t_HkwK2LuPeKKkgfgfjybtx3yqljA6IN-vbiCb6KDqc,8756
|
|
189
|
-
truss/tests/test_context_builder_image.py,sha256=ROkdzNRNfOZS5bS0zH6TscFqJhUnUpgS2I8p6d7MSP4,1188
|
|
190
|
-
truss/tests/test_control_truss_patching.py,sha256=7BIm3UdIJ_fx_p5qIF5vpD3BjMtAuHZuhPoAscyyXhA,15076
|
|
191
|
-
truss/tests/test_docker.py,sha256=VWIglAqmfXpcayXUOj5UUXhO5pX7Ec4pr2bsP7iyQGQ,517
|
|
192
|
-
truss/tests/test_model_inference.py,sha256=fzke2TcdqwEyZqWWu28pUgIiNcwyAib3cfBQfN7L54w,29804
|
|
193
|
-
truss/tests/test_model_schema.py,sha256=owiaCd51x3It6RNoFcm4onFMK7N-flaG57p9r_UUwYc,13814
|
|
194
|
-
truss/tests/test_testing_utilities_for_other_tests.py,sha256=YMg2MDlCuWEibOvTAGtlhEFaSXRojcpHR0ppVgPfQhQ,1483
|
|
195
|
-
truss/tests/test_truss_gatherer.py,sha256=RwXHL_3oBGfIe_66SjDeEts3zl_t4WaRRI_P9crSGbw,1252
|
|
196
|
-
truss/tests/test_truss_handle.py,sha256=vcsbzSStsn4SVTZWV-i96di8yq8DvJ2CLsEqHK94I5Y,28387
|
|
197
|
-
truss/tests/test_util.py,sha256=qv0Z5aZH85IwJtyM9XQJ_em8sWFcQGsQzjt1qYfYIqA,1358
|
|
198
|
-
truss/tests/test_validation.py,sha256=EPPe4FtW7uFAal6znI6DYtyWjQMd6PaRL1Hfr7FuSZc,1865
|
|
199
|
-
truss/tests/util/test_path.py,sha256=2ARfoHQtj0Bv267SLFu2YrzFqgUUPuMQBMWJgrf7yEA,7480
|
|
200
|
-
truss/truss_config.py,sha256=cdZmn8D1k3iKKdaF-eZ6GZUWcU1LbwmRPjBDK4un9DU,20978
|
|
201
|
-
truss/truss_gatherer.py,sha256=0RkYTGtZX7Vy03LwUfRH2BOXSvEc_kQpiWYedBIv570,2843
|
|
202
|
-
truss/truss_handle.py,sha256=0rnLJB9dmSdmsQyINS649ideqIRUf2TgfXVIv0tZVj4,37137
|
|
203
|
-
truss/truss_spec.py,sha256=9q9jCwZRpiWxyWGHcD16XvrFOLcO0W03E7utQs0W8po,5568
|
|
204
|
-
truss/types.py,sha256=La-5TaXkGrXsCWtmI2e2sjNEKiHcyHcjKeF4evQb1dY,2716
|
|
205
|
-
truss/util/.truss_ignore,sha256=NfsT-XE6af-zh-hD7SQa9WwyB33lPw3AHLT-Uny8PFI,3110
|
|
206
|
-
truss/util/data_structures.py,sha256=3zSU7JKEr0RLqLRc-o5uOtcki8cYOb7L8qvEthKtshc,379
|
|
207
|
-
truss/util/download.py,sha256=pdlWTRLbHSJ90naiV6j7vnqAcxeRwYXmeCzBcNf4R0g,2566
|
|
208
|
-
truss/util/gpu.py,sha256=YiEF_JZyzur0MDMJOebMuJBQxrHD9ApGI0aPpWdb5BU,553
|
|
209
|
-
truss/util/jinja.py,sha256=7KbuYNq55I3DGtImAiCvBwR0K9-z1Jo6gMhmsy4lNZE,333
|
|
210
|
-
truss/util/path.py,sha256=wd5h1ZbCG3BqVDoH8M_y8GC7not9AbSqb3k7UknjQSQ,6337
|
|
211
|
-
truss/validation.py,sha256=EtXBz16vkDHJfkeT47yvIL_Rzz7csR7BlwUSVMYS2ms,2868
|
|
212
|
-
truss-0.10.0rc1.dist-info/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
|
|
213
|
-
truss-0.10.0rc1.dist-info/METADATA,sha256=HzxDC7xPC_-wi5sS4phAoz6CVlEDz_QY35rotHpPCJ0,7103
|
|
214
|
-
truss-0.10.0rc1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
215
|
-
truss-0.10.0rc1.dist-info/entry_points.txt,sha256=t8Vr_PlZjD8JhBRkjPuSnZrJt02rGKsM40cgUH_jPZQ,45
|
|
216
|
-
truss-0.10.0rc1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
truss/{server/control/patch → templates/control/control/helpers/truss_patch}/system_packages.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
truss/{test_data/test_basic_truss/model → tests/test_data/annotated_types_truss}/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
truss/{test_data/test_truss_server_caching_truss/model → tests/test_data/gcs_fix}/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
truss/{test_data/test_truss/model/dummy → tests/test_data/model_load_failure_test/__init__.py}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -15,8 +15,8 @@ class Model:
|
|
|
15
15
|
async def preprocess(self, model_input: Dict):
|
|
16
16
|
return {"preprocess_value": "value", **model_input}
|
|
17
17
|
|
|
18
|
-
async def postprocess(self, response: Dict):
|
|
19
|
-
return {"postprocess_value": "value", **response}
|
|
20
|
-
|
|
21
18
|
async def predict(self, model_input: Any) -> Dict[str, List]:
|
|
22
19
|
return model_input
|
|
20
|
+
|
|
21
|
+
async def postprocess(self, response: Dict):
|
|
22
|
+
return {"postprocess_value": "value", **response}
|
|
File without changes
|
|
File without changes
|
/truss/{test_data/test_requirements_file_truss → tests/test_data/test_pyantic_v1}/config.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|