Truss-transfer is a Python-optional download utility library for resolving Baseten Pointers (bptr), designed to speed up file transfers within the Baseten ecosystem. It is primarily used internally by the `truss` CLI for serving AI/ML models in production. The current stable version is 0.0.41, with frequent releases often coinciding with updates to the main `truss` library.
pip install truss-transferVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to define `PyModelRepo` objects, which are central to `truss-transfer`'s functionality. These objects specify how to fetch model artifacts from sources like Hugging Face or Google Cloud Storage, often managed as Baseten Pointers (bptr) for deployment with the main `truss` library.
Focus on using the main `truss` CLI for model deployment. `truss-transfer`'s functionality is integrated into `truss`'s model serving and data transfer processes. Consult Baseten's official `truss` documentation for model deployment workflows.
Always use `import truss_transfer` in Python code after `pip install truss-transfer`.
When `truss-transfer` is a direct dependency in a `truss` project, ensure `truss` and `truss-transfer` versions are compatible. Refer to the Baseten `truss` documentation and release notes for any specific version requirements or migration guides. Regularly update both `truss` and `truss-transfer` to their latest stable versions.
Change the import statement to use an underscore: `import truss_transfer`.
Consult the latest `truss-transfer` or Baseten `truss` documentation (specifically `PyModelRepo` usage) for the correct set of parameters. Remove or update the offending keyword argument.
Verify the `repo_id` is correct and accessible from the Baseten environment. Ensure that any specified `runtime_secret_name` (e.g., `hf_access_token`, `gcs-service-account-jsn`) is correctly configured and available within your Baseten workspace. Check network connectivity if deploying to a custom environment.
No dependency data recorded yet.