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.8rc5.tar.gz (25.8 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.8rc5-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.8rc5-cp313-cp313t-musllinux_1_2_i686.whl (3.9 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ i686

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

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARMv7l

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

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARM64

truss_transfer-0.0.8rc5-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.8rc5-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (3.6 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ppc64le

truss_transfer-0.0.8rc5-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.8rc5-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.8rc5-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.8rc5-cp313-cp313t-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.13tmacOS 11.0+ ARM64

truss_transfer-0.0.8rc5-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.8rc5-cp38-abi3-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+Windows x86

truss_transfer-0.0.8rc5-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.8rc5-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.8rc5-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.8rc5-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.8rc5-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.8rc5-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (3.6 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ppc64le

truss_transfer-0.0.8rc5-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.8rc5-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.8rc5-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.8rc5-cp38-abi3-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

truss_transfer-0.0.8rc5-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.8rc5.tar.gz.

File metadata

  • Download URL: truss_transfer-0.0.8rc5.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.3

File hashes

Hashes for truss_transfer-0.0.8rc5.tar.gz
Algorithm Hash digest
SHA256 2a9cd7e1f9dc8f6cc183d5264f1a9b6874f316717e02740d239a7b3878ad1a2f
MD5 0d1085849d4678ed1e340af7e6c7afad
BLAKE2b-256 5ea46f77b7601096c30c2feb045009b19a44ed8221cc307bf39772f961c658ca

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.8rc5-cp313-cp313t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp313-cp313t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1fa61cff3e2a7e687af60e5fae4f6a88edac3b00c94be9f6d8744d4bfd79cdf9
MD5 20dba86b6516c11d1d9a2ab355663d1b
BLAKE2b-256 3d627499ae18851094c6fdb2831db3bfc8aa2f7b897fb8b2622eea9b0f2f9b22

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.8rc5-cp313-cp313t-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp313-cp313t-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 d85d0b66fba10a1b50862dbc28165a8f407adb978ca4685decf073c4e2f0d883
MD5 68d3d3d8b6ff8fa618778cd619b3595e
BLAKE2b-256 5481d0ea27ddd17a9ee39b09d781612b64f514bcf3f6474d49f57679eeaad875

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.8rc5-cp313-cp313t-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp313-cp313t-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 e7291f4cc456b89c9600b98b9d7123cf21ea1a4da18d40f43d697788deef3f7e
MD5 b8981470cb1c6ee7be0ef8db8edd5745
BLAKE2b-256 299b200a5ec6dc903b13c429ed979eb6ca6ab278ca502f0dd6cd6c16aa04387c

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.8rc5-cp313-cp313t-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp313-cp313t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 cedf8ce1fa654ebef7dc06e7fd63bcc23c0862fd2adfa51fdd3743f5c8ef0c52
MD5 35eae8e8ba5d8bc03dde77fdfb4b1fb0
BLAKE2b-256 71ebeef3ceffb6b6e207e69fd6445e83dafc8f3f9f0093815b633c39f50fe136

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d7dc8abeb616ea7281dc3605f52a20e892498812c54521f8a695b483d067c224
MD5 4700411d8b1d43e8ef9dc9af08051230
BLAKE2b-256 7df6898fdd28098b8f88af68234e707e10c1658b0b3abf07fda6d02d9c4249a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 a8be63ec6896ab97714608fae8faf2ed1c303638e5bcb6e14c5a2d777d74722f
MD5 6f706cb6e2d820b0888d1e9cb37a2df0
BLAKE2b-256 1d69d56983e9a59e500c0cf5f4ffdf37752c3137c926915a85e6e5623c77e775

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 ac12c5e96885a5b0aea1ad93c0535ee2d6be731d3207a1396c662542107f95fc
MD5 9b2d1fef9147c8214155735ac21c3946
BLAKE2b-256 332c54376cd448f13072b20d2b4af0c006bb5337d80259865df65082dcaca9a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 6c83550297633b2d209caf4c1ec5f7fcb5db7e25fadb0f46be4acfb1b25ddc46
MD5 0322db65c7e4438a2cd26027fbfb386b
BLAKE2b-256 de8d5e1a93711b45a1bf9502ac352c1e92fafa8311109ce1a3568b0cd924f370

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 46efcbfe536b72e29c6b65ecb58bc22b4b78b12d3f3c9932e872facb637e49a1
MD5 3fbe4b145d5a9b5acf74c98c5afd125a
BLAKE2b-256 5f20765288c664246abf49af725314ede39566e1e276f4b164d0e098528a3e1d

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.8rc5-cp313-cp313t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp313-cp313t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 22a4cbe37e208d8cf933b6a6e6fb0f07e139b451f13733a4082ecf230d0023f7
MD5 7a563605fa2c3ac98d077a3db993e478
BLAKE2b-256 88bae7c08a9dfa0a25f602c740676b03a5e4116449976b360421366fa3f4fb7e

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.8rc5-cp313-cp313t-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp313-cp313t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8da742050b4786c88730b8774a06dd88923c7dc68312682f6db4ea6a3d3a9f6f
MD5 f8535b36c2a65dac1bd1454b7771f5ed
BLAKE2b-256 a58ace7e29a40d5c0b4ec00706e1bf81002ab4d45a73cadd92c933fd1cfc6290

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.8rc5-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 406c5bc36dd7f372318d764a76074c15220db73578c32dd7ed8e5e891e74f242
MD5 f9057896414ab1e4275b8ebe4ce8732d
BLAKE2b-256 16f865d8d7fde24b65b6b808cfe13aec41b6634ef4976bf254ee0bba82384936

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.8rc5-cp38-abi3-win32.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 2ea20fff1f2600adf89fa9c45d954abb873f12864095347175b9887a537fa361
MD5 8283db4d5cf9047744825a937688aee7
BLAKE2b-256 0db0285dffab7e02e3790e597a069c172b5fc50771a90eecfe56ed4fb02bc706

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.8rc5-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 01c3334c255be1143c38043597de3661de26e1f939a29005429330c53ac2424e
MD5 abefe2621797e64daa79f2308e486de4
BLAKE2b-256 342202ae193c85a6afcf0d41ff8365ccd0680905f1f78259571ab8bc841983f3

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.8rc5-cp38-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp38-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 269322506b3d26eb8ea2c7beca988d1cf90ea37739ca384e9206ed5680959e17
MD5 66cafb07134f6d8b61b3aff4a97f69dd
BLAKE2b-256 4dc21e361a3f9cd47985bec617ebde0e2e15a8d765285ad53512a6a1cf1e67fe

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.8rc5-cp38-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 cd72518f09f2357616f6dfde8da909f3c4352550d0c8e690abe5ccae3bc25754
MD5 b45ed81761136f18db3a99c4e7c7ae7e
BLAKE2b-256 900f0105e76e1be142d90d19715001908490882cf21b0f280d320a073ab124cf

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.8rc5-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 c779be05dd07fc1fdaa6db559e42e8e7f7cdc9b549622c04d2c94c02746cf551
MD5 64f323f6dc5c381e2e534375ca381814
BLAKE2b-256 9894d477ea177606f81a4e5cd1ff689f3a66cdf869cf03fe1e309bc0056151b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 384bca76ffbcd44ad558a8fe5512489f89029b577ddc3672228c147aaf4c46dd
MD5 7c31a1811cca89ad60e799a4438f885c
BLAKE2b-256 d549064090541540de6b65b5ba548b4b1663fbf9f9ed6de896a99f3f681f7ced

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 a1411df0bd2cd1bd7f8d0f1ed3690d31735605cf4de8431a401bc23281cc0e20
MD5 7fa8b22b399996e2621268199052de2d
BLAKE2b-256 85c56645b4d626ab156d8cfbb5fae1b9652094dac46dd92ae930908f23901b70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 c0dcd67fa1748a1b342eb7b8ca23f372b3c46a4d398942fea05a56e581dae1f6
MD5 94041e312e5e9f3dd5acbfee0d763cd1
BLAKE2b-256 79bc92087c1199002f7eb02689fd44b8181ce87ac00f16e178e8fc072c894f6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 9e3a58a8d997963ec912a6481cb6700a1aa3cb1fe4eb9fb3f9d4e1383a175789
MD5 349ba15e75dd7ed0e41e66111cd594a0
BLAKE2b-256 86af57b07ec4a98cf4cb2906f5d4879795057e90bf39a31bba6a6e40c1b9eae5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 077af691023acc7e583d2144a716f90f3800fb9a1d58caccdd7b90d0f5662de5
MD5 121d7522083da7cb6004c7b146ef9504
BLAKE2b-256 86dbc307e370f7b4fe38c0cfb0977b53ea4d89854f4a907f84717bfe609e0612

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.8rc5-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1232bf31bc9d1f318cd674ce2007a3f25d2a6d9d86c1d6bd4b53111d70e8bb51
MD5 5fed4ff091dccff59bdae043c7855c0d
BLAKE2b-256 8100982e0d168c01577fe7647e2445d8958e79c80caeff37b6c3e119cb0c04d2

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.8rc5-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.8rc5-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 69ae23047b8bbf9bfa68a7759456b192c62f5a0e594c69fb1dea221b75217f4a
MD5 d9319ce3b8af85efe5ff35c4482d8360
BLAKE2b-256 cbfe4910cc892f9e51bb27a49025e15a6e5a999d119ae88021bcebb87a0f8bc6

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