Skip to main content

Speed up file transfers with the baseten.co + baseten_fs.

Project description

Truss-Transfer

Python-optional download utility

pip install truss-transfer
# pip install /workspace/model-performance/michaelfeil/truss/truss-transfer/target/wheels/truss_transfer-0.1.0-cp39-cp39-manylinux_2_34_x86_64.whl
import truss_transfer

def lazy_data_loader(download_dir: str):
    print(f"download using {truss_transfer.__version__}")
    try:
        truss_transfer.lazy_data_resolve(str(download_dir))
    except Exception as e:
        print(f"Lazy data resolution failed: {e}")
        raise

Environment variables:

# If b10fs is enabled and mounted to `/cache/org/artifacts`. Can be 1 or 0.
BASETEN_FS_ENABLED=0
# if the file path is a relative path e.g. "model.safetensors", what path to preceed it with. No effect if the path in the manifest is absolute (`/tmp/mymodel/model.safetensors`)
TRUSS_TRANSFER_DOWNLOAD_DIR="/tmp/bptr-resolved"
# after how much time since the last access of the file,
# deleting all files from other tenants in the org to make space for this deployment.
# "/cache/org/artifacts/truss_transfer_managed_v1";
TRUSS_TRANSFER_B10FS_CLEANUP_HOURS_ENV_VAR="48" # sets it to two days.

Running the CLI as binary

Compiling the libary as musl-linux target for cross-platform usage.

# Add one-time installations
# apt-get install -y musl-tools libssl-dev libatomic-ops-dev
# rustup target add x86_64-unknown-linux-musl

# To build with cargo:
cargo build --release --target x86_64-unknown-linux-musl --features cli --bin truss_transfer_cli
# To run the binary
./target/x86_64-unknown-linux-musl/release/truss_transfer_cli /tmp/ptr

Building a wheel from source

Prerequisites:

# apt-get install patchelf
# Install rust via Rustup https://www.rust-lang.org/tools/install
pip install maturin==1.8.1

This will build you the wheels for your current python3 --version. The output should look like this:

maturin build --release
🔗 Found pyo3 bindings
🐍 Found CPython 3.9 at /workspace/model-performance/michaelfeil/.asdf/installs/python/3.9.21/bin/python3
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.75s
🖨  Copied external shared libraries to package truss_transfer.libs directory:
    /usr/lib/x86_64-linux-gnu/libssl.so.3
    /usr/lib/x86_64-linux-gnu/libcrypto.so.3
📦 Built wheel for CPython 3.9 to /workspace/model-performance/michaelfeil/truss/truss-transfer/target/wheels/truss_transfer-0.1.0-cp39-cp39-manylinux_2_34_x86_64.whl

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

truss_transfer-0.0.12.tar.gz (25.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

truss_transfer-0.0.12-cp313-cp313t-musllinux_1_2_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ x86-64

truss_transfer-0.0.12-cp313-cp313t-musllinux_1_2_i686.whl (3.9 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ i686

truss_transfer-0.0.12-cp313-cp313t-musllinux_1_2_armv7l.whl (3.6 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARMv7l

truss_transfer-0.0.12-cp313-cp313t-musllinux_1_2_aarch64.whl (4.3 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARM64

truss_transfer-0.0.12-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

truss_transfer-0.0.12-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (3.8 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ppc64le

truss_transfer-0.0.12-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl (3.8 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ i686

truss_transfer-0.0.12-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.3 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARMv7l

truss_transfer-0.0.12-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.9 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARM64

truss_transfer-0.0.12-cp313-cp313t-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.13tmacOS 11.0+ ARM64

truss_transfer-0.0.12-cp313-cp313t-macosx_10_12_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.13tmacOS 10.12+ x86-64

truss_transfer-0.0.12-cp38-abi3-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.8+Windows x86-64

truss_transfer-0.0.12-cp38-abi3-win32.whl (1.3 MB view details)

Uploaded CPython 3.8+Windows x86

truss_transfer-0.0.12-cp38-abi3-musllinux_1_2_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ x86-64

truss_transfer-0.0.12-cp38-abi3-musllinux_1_2_i686.whl (3.9 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ i686

truss_transfer-0.0.12-cp38-abi3-musllinux_1_2_armv7l.whl (3.6 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

truss_transfer-0.0.12-cp38-abi3-musllinux_1_2_aarch64.whl (4.3 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

truss_transfer-0.0.12-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

truss_transfer-0.0.12-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (3.8 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ppc64le

truss_transfer-0.0.12-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (3.8 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

truss_transfer-0.0.12-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.3 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARMv7l

truss_transfer-0.0.12-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.9 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

truss_transfer-0.0.12-cp38-abi3-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

truss_transfer-0.0.12-cp38-abi3-macosx_10_12_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file truss_transfer-0.0.12.tar.gz.

File metadata

  • Download URL: truss_transfer-0.0.12.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.6

File hashes

Hashes for truss_transfer-0.0.12.tar.gz
Algorithm Hash digest
SHA256 41adc5bfcaf51a0bd94a1896262dd5aaad78ae1828d4ce30b7d7b1154daa25ef
MD5 a597347370f06f43059188d69a905c77
BLAKE2b-256 526310c82beb6fda3b31919e68768db6ca515c048146a337f2c1ba70baafb7a5

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp313-cp313t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp313-cp313t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 80bc9a481ac1cfc1cab3d1af2b612ca4f395136bf2c8c8c1ed6ed7f0c75f56bf
MD5 fa8f1885396364b8bdb78a072d79a037
BLAKE2b-256 ec1d2dfcd98cc72a66ba67cfa38a888ce6628854b1decbbde6bf41a1192e173b

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp313-cp313t-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp313-cp313t-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 cb35dea082599a3e8bf628ed85ba890eb796a5a6bdaae6668d60cbd761483b0e
MD5 b13c033b7ccddbe1adfb4cc8005eb205
BLAKE2b-256 d2b0b8978276b459f894be9d7f46688cdb176e2154d22a1ea46794acd3d761b5

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp313-cp313t-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp313-cp313t-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 6a7b3d2a950492a860acf3f1f0e1f1f786fa868dad4e1ca770a1fc2b17d41d4f
MD5 454d0e1bb3e129320c5a4db4e82a2225
BLAKE2b-256 4e2e24ad20d7e6e8584ea40488572661b4d3e6b5fc72136d449a14dcb9c96d5d

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp313-cp313t-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp313-cp313t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 2559d43ef7781f51e694845287b1409e07bb6b5802154755c79b2186b290c4a2
MD5 8b7fa1d138b5dbcb2ae7e4bf99714e35
BLAKE2b-256 4b885bd1963c804f867c8a2777d6d67b0285fc69845db848157781e4512f5e97

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 edb356239f0c11f2bba20f87645d3b8b8b78fd6c64790f73fbbe729793938107
MD5 e63ae6b04b46a861b7285deed66a922c
BLAKE2b-256 d0921646312e5b067f5bdcbc908a5c6c95d48c2fba06520a2d61e7b4314ea53e

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 c6b47fefb4ac1840a2a2d11992a24768128181884329cb8c4064c7dc35cf5883
MD5 cc13812fe2c06739988ac3476f45960d
BLAKE2b-256 2d093ddaccf35e3105e963b104367dc5ca66ecbd30d06f9d8c745692bd746579

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 356d66025809116a3fedc39292c4759ddde56c305c8acee4e3f22f082660689b
MD5 e2ccdb9d99e4c5ed00773a56d95138fe
BLAKE2b-256 aa62d0d1abfc9a45b012a7e00a05ae58f6c48509923d18810265151c71b50a9a

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 bc29165390daccb3e0462d44e21b00a700fb4d12d46bbaff4eb45a9278dbedb0
MD5 a8f7b38a9cbf584c00cf92ad7907744f
BLAKE2b-256 a09fbdd722160b772519693118ec73059d45fc857005ee6b46248aa0c99da763

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7605ea4ddfacbc6113f3c7d45432126e3e0594490c96e947484e774454bc288d
MD5 ca38d2b1941cb4b2525a068e65e83a16
BLAKE2b-256 02048fd5df9d65b1afa64d4058725bd2584559e27de8d38d356d6d8e4e64fc14

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp313-cp313t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp313-cp313t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00b49478db1e0905c56f4b0a6b2ef08f2fba902c6f9336b9c0e65c76e6658bfc
MD5 7c88dc7bee8fa3b936685ed4d9c7caaf
BLAKE2b-256 9e9553da490ee01025dea3f83d5b7ce775dbc19a5c4c93a436f82e1c8a9f955f

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp313-cp313t-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp313-cp313t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b144b438f05498024ecd8c67a72050a42c9786cb36b8388bfa51b8e560df20b3
MD5 cd0ab47530b83e9169f7690b70bfb75e
BLAKE2b-256 524caef3b2ae4d3e81dbe7eacb869ab5bcc4403be026adba9591d3d98cba9ea1

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 fdeb2df356aa15d69a40c90e3c0eead46d04d05bdc66770d0dcb1b0305d10d58
MD5 7af0fe499e9a1ed62b08231a27d3d246
BLAKE2b-256 0ddcc948a55366512db2d28e780b781c0204d272edd48c16a7c59e02f03debb9

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp38-abi3-win32.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 5cbdf4d538e8a381bcd787c1c8f5bd9efe704670b23b1f99bcd08af6fb68a90a
MD5 7bd4ec294a4eea21166427826a2c5834
BLAKE2b-256 a30e95bdf2d049841c6e18b9c073e7341b008aee4ece5f9a1d518c9a31b545e9

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e104237f024c3904a4bf20ecf32d502c511d3ce97f7f2eb09601b94859ff9c2d
MD5 864fe0489b2580384825358bdbc6499a
BLAKE2b-256 b6d8607550e85e319eb89308364be248b25a70842827bb575e9c03f9f87101e2

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp38-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp38-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 f2354afa185ba198e3b43039e494f47ed993898439a4fe0444ab2615f0cdb899
MD5 6d20a4e8ded08972a73fbb79b44ccab4
BLAKE2b-256 9c8351650b65f714332c354e4f7e1101f529742d7945f16448a469815e22d61a

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp38-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 e53b721b55d6547a3cc24cad7df1f7bbafea82ad900c1a06bcfc4f24398504cc
MD5 4d16af539010b15b313205ebf77cea9d
BLAKE2b-256 4a291b1eb8b905b1bc07f2315eca4abb31acb6825007e13d52c767da4dfc3499

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 43bfce3dde1a217a866b80a15db9739c1f4e6d6291dc927fc183496abfe1b4c6
MD5 eb4039aaa43ee0c23d77043e10994a4f
BLAKE2b-256 300298c97183f380c3232bfdd29ca61575a6ab367044168c23d61c5613141c98

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f9c61f97ee2b359466766f253b2208edf45cf7ca9ed0677998021df7ea9093db
MD5 d8ec329d19264d7b4a1b15ccfd19f4a2
BLAKE2b-256 e379657f162cd0bea2609bc9cdfb95aed92c126cd75e75bf2e0a20f70078653d

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 1486471375c91b1351791ef8e93a41726eb73e8557ffe500742904a5234684b5
MD5 75991b902bc92efa7c80e5e455a7e6a8
BLAKE2b-256 6ae47903bf3c6f9cc9cb9432fa43762cfae0ab3dc8d495b884e5597eb046979e

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 9023ec7ae7ce15e7dd83fddbd252d972cce14d199cc6d1c490b84b987a5a3ef5
MD5 2daeb041021697df144490b84759feca
BLAKE2b-256 6aeeaa89995a4f7fe48deead9189bc502d1361dba72e494b1589a10fdad9efa7

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 235a7faa01932be589fc882f48b5332cb5b568819d1b25ffaa1213b1ebda3ce9
MD5 cfeaeb1b0d8eb9ed29563ff8863d3649
BLAKE2b-256 7bf87c41f1dbdcd7962131ac4421f510fcc5721da669ed4841286035c616c787

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6b60c0e5f4ba794f3f83cfb4256d488c2458c1247b599650ecbe595d47a422db
MD5 00de3474cdb728946a9ca9014b4f7d0f
BLAKE2b-256 e8e0f43945017fb832450aaa1c3c0f7fd8e45fbc88255f00457d26baa0c7dc16

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d2bed9da27153d9e239be97aeb47c9a8950a05b07e52efe960a1f235b6ad8ad
MD5 0287b02db909ad66ef18834f3ebaf9ed
BLAKE2b-256 f14ac66ac7658406c460684d5317cfba79eaa44745877ecf201dec6635d6e896

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.12-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.12-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b5fd5ecf23a6883e8f8f0bab3356f0dc7a3465a3104475cd5383d35a2aa875f9
MD5 70f1035767201e31a93e6aad39c26d4e
BLAKE2b-256 868700ab35901e03c56a78252eb37f98813bedf97165a60740cdebb0e2b7cd92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page