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.14rc0.tar.gz (27.7 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.14rc0-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.14rc0-cp313-cp313t-musllinux_1_2_i686.whl (3.9 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ i686

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

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARMv7l

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

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARM64

truss_transfer-0.0.14rc0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

truss_transfer-0.0.14rc0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (3.9 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ppc64le

truss_transfer-0.0.14rc0-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.14rc0-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.14rc0-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.14rc0-cp313-cp313t-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.13tmacOS 11.0+ ARM64

truss_transfer-0.0.14rc0-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.14rc0-cp38-abi3-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+Windows x86

truss_transfer-0.0.14rc0-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.14rc0-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.14rc0-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.14rc0-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.14rc0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8 MB view details)

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

truss_transfer-0.0.14rc0-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (3.9 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ppc64le

truss_transfer-0.0.14rc0-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.14rc0-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.14rc0-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.14rc0-cp38-abi3-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

truss_transfer-0.0.14rc0-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.14rc0.tar.gz.

File metadata

  • Download URL: truss_transfer-0.0.14rc0.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.1

File hashes

Hashes for truss_transfer-0.0.14rc0.tar.gz
Algorithm Hash digest
SHA256 861caee7bb96dc1266afb9b4f42616a6cf86c696020a7f1823255832108ed9d4
MD5 73b1bbe745788d6ba43b4a994cef6c1f
BLAKE2b-256 d88f799853137f7972d95852ac5782037797974abf2614025dd1c8c38c04e41c

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.14rc0-cp313-cp313t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp313-cp313t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e7626bc9eb36b89a41ce525f78dd1d7f7c3df189b996aa3fd784e485d88637dd
MD5 1078ba8706f920c621a6665ab2b60a43
BLAKE2b-256 aa994037b2049b16748ce3908c999b6d67a4f5c144e24bfc80237ce577d2140a

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.14rc0-cp313-cp313t-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp313-cp313t-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 7993c0054a5b57d97516d70658f10ffbc1a06a62f9cfc428a1de3df920c1e80a
MD5 714159d28a023d35d15111d2bffd8dbc
BLAKE2b-256 e02a5422236645b39459d4c930a3e7b99276c732f1f9b9ac4f25d1cc9f2159dd

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.14rc0-cp313-cp313t-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp313-cp313t-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 56a9513b95809ff15edd24117e748c21bf476a1c62f8f7423b11d0295a220e94
MD5 bf210d934ed2df324b13d0738b816423
BLAKE2b-256 ffccc1b576426a54e682dde29745656e05c88a51e215ec9285545e350610b384

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.14rc0-cp313-cp313t-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp313-cp313t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 332edcae6d92f81b88c56327bcfa52d3fa8badf99f6f32c47546aeaaec41ff12
MD5 2ae0c130880d46ac6937ea1bc31326fc
BLAKE2b-256 81130e7f8a07c0cc47de16d96284d0554b2d222f3b22ae8c0d5de7d71b1e42c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ce7637ee951eefb0333b9859d8169ddcc5bcc21f34a1dd3b74e4aff020908b44
MD5 dbab12aa038f5ce51c5710d6e96aaf4a
BLAKE2b-256 6c93ca5c8f8388d066d1507b3a27b0f65ff01c70f98e77be3d6afacd1e928dc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 5d749462a0b5f332444486b719514fdc2bc671617a9a1d577216f32126625e3b
MD5 30ab27bcf1c86d98745fadb8b8f01a87
BLAKE2b-256 3293cd3e116fac11d192f36ed7ddf0f770fc8c1e8a885148e92af82a4ef55868

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 8c5e2e4b167c63f2f1ff2becd749470e5b384d20d6ca68732c7928f1a2b2be4e
MD5 994538683720cd2b6b6cf124c8b506a2
BLAKE2b-256 24536b78ef844c05e180379d91a9567296756b12652217bbbd187a020d3150fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 078c06ba5717333f2406869c1ce12a6fb68957dcd95e2d19fdcbb88cf2d72a5a
MD5 770f01ecdcdc498992fc5bcfa93a2c4d
BLAKE2b-256 c7e7a12913ecf23ed07ee8ff6891f033bb09acca03066dd42b353a1fd1ece37f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7ff708c611b3f7e8497362f0af5066593932182ce6886e7f3cc50e34eae21956
MD5 f9b47a533fe5dfd1e8dd3a830168ed67
BLAKE2b-256 a83abbbddb38f60ef3497cdb03a052c6aa0247279e01e47a938d13d5702d29f6

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.14rc0-cp313-cp313t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp313-cp313t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a90a6cd1dd1e21e18e98ee7346c513897c047d4d8f0aa36db3df07bc8e872aa
MD5 87e177b4427c9a9277f370734e87f89e
BLAKE2b-256 c57f3cb8af671b91672f99d1167cf1c7ace018671e74699e0b00f9578760d53a

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.14rc0-cp313-cp313t-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp313-cp313t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2f8397af9e16cbe8e23f6c6cfecdbe53686824f673306ec80fee8b507a218895
MD5 c936a3a3a3ef4a09af7d3dbbeed5c58b
BLAKE2b-256 d27289b879110612a66e96ba92e71fc3c27616b89910da66f6d166bb78d2ed9f

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.14rc0-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e476d2dbf948cdd7c1d758de2fd7af0303dea5917ac02c895b209a1fcbc5eb0d
MD5 fed6a7e94f668915389d8f55b2a07540
BLAKE2b-256 e82c00a6e7c8214bdef62aabd1bcd8ee91676ed7062d89011bfcc19221f59910

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.14rc0-cp38-abi3-win32.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 626a8ac813e7d28fd6010baf461ccd2d751aae1c0732a15a61d14a09abe2170b
MD5 eaf060f1d0c6f1fe2b326f4b56014ee2
BLAKE2b-256 682baadbaaebc44ff5ac113686b1d538b5dba1a5d52560618cade6dabed631fb

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.14rc0-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e513b368511b1e0e67ecb2349590e93be2fcd5272b20d2faf0d8627d09603afe
MD5 1dfe25bedcb14f498995edfc0d85e5ba
BLAKE2b-256 54939ed91a55548bbdc45b36b33acf2781a33b1a09f9402b8289310cec0cbcc8

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.14rc0-cp38-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp38-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 dafc995706e6fe40dca11250fdeaf5f1933b4be8d32a3a8b40cf6089e0992199
MD5 df275292fc778af93a8564d5d361b1e0
BLAKE2b-256 2ab18231aa3a50a32daf49221fdab8848da89831b74ad60ee0cda6fea047370b

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.14rc0-cp38-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 9bec615711b3d0b0eb021eafabe5e1cb5eabd9663802a1ec6728fca66de9c9a5
MD5 6f9cb8591f74f2dcdb05e38b206e9a94
BLAKE2b-256 792a2f44e4232d89508a068ba508edbe69557218cbb2a98be573131d24c9f123

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.14rc0-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 cac2b9a2011c743d2e9df3a1240910a472374f810915e10d53afae52c2183e87
MD5 9cf71d0d84286e6e1854e03b992fd153
BLAKE2b-256 43b3e2c80ca09dc4e715dbf4169f9cdaf6088fb5d0b51aaf53a43fb5960f43cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d9c1be067749b741f76531e18a3e9df774c25bc07799f146593c632f188b1321
MD5 5b75aa8cef37341f7f4abc42ae87277a
BLAKE2b-256 6f2996ef2ba8a0c6e4a8f6c4aa913721ef00151b16af93ef1f322c8cc80b1616

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 cf601fb4e4b8541a32d973ae33365e2161ff1ba85da8cdad732e99dceb857301
MD5 2f65c52a4bce318fc21fc44802839946
BLAKE2b-256 afb13c5eb7608932e8468808e34f2272541c414575c659d42be79255ca626604

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 6d3133aa95bbfd2943ac187e6b6a23bf9ef43150477ff4c0de0e3e291b25f34a
MD5 fab0808f2ef8b7315759206aad1f39a6
BLAKE2b-256 34d9473a34a1812105ae95509952f93cb5d24728c1cfeb3d523b31171dfa5567

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 2b54097c993ae8a0e648c4e364a7078fdeef650d8e0a077d3ed93711ac91c5a6
MD5 82fc8a164a97a04986304188775f4d70
BLAKE2b-256 9b9bfba1bcb4a1357b45b35200ddc53bcd13217d00bc5bf7658d67653fe4a2ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 646986be206498a98fe9be3d31bc890b0a5acbff3def859c572b30fd82f36e87
MD5 ef592dab7801dd3b7d5359f699408489
BLAKE2b-256 6fdb594c940a909462b55988b09f19dc75dab1728e2b17772563a518997ffc0e

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.14rc0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb38214cf5299e1cdb7528c09f6c8b1eebcbf88f612a0bfe742a416cdf3b6463
MD5 df62bc79697ad9cd3abe1687498af7f1
BLAKE2b-256 b17034c3355c9e2098cf941a6e1e3f527ffe5b75769118f04d3dc9ff8d35c0f9

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.14rc0-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.14rc0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f0d5842c729c957e2d30118309f2878956181c0bb5a53f3055fecb6ecdc6bd16
MD5 49734674648cd4bcda0e96db0a0d5e30
BLAKE2b-256 25e762db5af770e8182cbd6c036afc6adcf8ec0d0ca8e6d10e7d47bcf00e96a2

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