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.11.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.11-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.11-cp313-cp313t-musllinux_1_2_i686.whl (3.9 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ i686

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

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARMv7l

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

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.13tmacOS 11.0+ ARM64

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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+Windows x86

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

truss_transfer-0.0.11-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.11.tar.gz.

File metadata

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

File hashes

Hashes for truss_transfer-0.0.11.tar.gz
Algorithm Hash digest
SHA256 6a056bf22755548354913192335e46df9e7d3f381792f98edc14406da16f6ce8
MD5 187320fa1f0cb1c836ea61d2b8dd09de
BLAKE2b-256 30596a17b4811a9476ed35b6a481f3057622cfd4254af936e56e17d9aefb2dbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp313-cp313t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d5c3e870f5719913013ce9bca0e589c5c1ac7ce425e3a95de52683da14ff370c
MD5 f55f5ce3fb6ab13c8fd67b28bdaa32ed
BLAKE2b-256 f00b13c67dc454a4197c10c3067c950d24401874f22e1d5fe3453744a9a94043

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp313-cp313t-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 4cc5ccf98712929e0ce1c6974ab741ac21c33bd906ae28ee622b1e344a06fe21
MD5 b201d68fe53fd0b7bf6fccfa74398bf4
BLAKE2b-256 662ad0a3db1e843c47b69b783208d59aa6354b4216a6caee09c68b26d780fcfe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp313-cp313t-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 c414b6c3d611bb0bc1e11dfdfd836d4f75b8e5cd2fafcd2b177f2b6199512bd0
MD5 f08002b838b739f290c5d7f1d29f218f
BLAKE2b-256 45df5500a17fe99171bee0873c1d382ac1a483633d63b4896e8d3c776ebddc32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp313-cp313t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 907a9a83863f0f6d238cc4473fc00b825ad62e9e2fd37108ba84415ae461459c
MD5 ba483da7d6bc38602d3751d3f5538c18
BLAKE2b-256 8651dfa5f422a0f6b7a9f85725567b16474e87391eb7db882c7cc5e2c8629f72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f7af931570bcb91412342af40ccb99e9e8265a930d97a4eecab29126a90ffb6c
MD5 8a5d61f082b491f29d41a0cd34949a40
BLAKE2b-256 7b4105966aab8bc399eda5b0678d5e573636006f72b84d1374262dbafaa27831

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 083bd87315a9ca8caebf6c8ba1caf92729e13937ffaaec492fcda36e2dea9971
MD5 d22127a1cd73046f1f6517022d208999
BLAKE2b-256 a8f04ce943aea9979be6657a186e34b9e2abdc19cec6cbceb66b6303272f3822

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 5b9e4770c41a939e2f6bcbe041da055c1f06a79650594f3987f0909b7f583ee1
MD5 ee158e4bb60b878a73f1dc330aacbcaf
BLAKE2b-256 2776e9c534e19ebb47213c97e64164823e3241064518ed8517cbb80c5f087f40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 0b39409beb045f01af344d9e5caa5d40dab2240b0fda3a40680110f5e957aacc
MD5 e72c8ee3cea55bb6c7901b1473ef0c79
BLAKE2b-256 4495853f3ae016c62d985bdd59996fd80f2092fce1e4597f2b9cba6512669d82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1721f0068b15e196c8e0a53979f25d4110cdb0238b94ad74e3c70f9509887ece
MD5 6052a94d2d808167b28f13840994af1d
BLAKE2b-256 439a7628141c0f412c7ff1d4ecbd99688eb4e7ad042bd46eb5b33bb6d2536622

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp313-cp313t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c41438ec7081d83824fcf9ea6c20f19728e2507e9f2670233cfded746c3428ef
MD5 3112621c379c09cbe091ac986b03fb07
BLAKE2b-256 f410fa5d6c68d2800740d5d60ef74e65bc19122bf39c261b5af929dd59298f3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp313-cp313t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 da427eca0ffabe8cfefd44daf3a91614a1d7f45293db600b4f58dc78c3064b96
MD5 c0fd6e9a916904affdb63c85cbfac9c4
BLAKE2b-256 2624f1867ffa2ae9906bdd68a485e47da0536fa8c0ed5155c90044f1c0fb54a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1d3c5f046c04c5f1ab4d82469a03e93891301c3f20085027bd8b4a670c80517e
MD5 aa95ca5d092feeee0072cce5ece76d3e
BLAKE2b-256 d24ad4e4fc803e9cf57aa9735e929ac58ae00915304562b61331ea35cf13368a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 e36bf087038982efdf80de648f2884a75a251a58a93243b96b2324f7905d018d
MD5 1ee55753d135fcbceb83d5e0331d7672
BLAKE2b-256 4e54b1ccfa0c625336a16f8d7211d5a97327437dff5b687c588aeecc9a158956

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 23581c68ce5ef0ce64ec57a4bc01cb4906ee8c90064573896dd3e26b90d38a8f
MD5 4e93b471490f84fb966229ff98ed65e5
BLAKE2b-256 b6bc2c9358df2adce273ee0082500e3565554aa501a21edd1f1a0a7906d4308d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp38-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 e6af282cd0546323b285229a9b8db9856c8709448fc3a6505494310d10534b8c
MD5 c84abda978c91d21b5831fa3c8125bbb
BLAKE2b-256 9552f4d76afd730e3f0b2c2cd6e0fd8ce1f77f1a5fd3fc29b6c2914e8d501de2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 d756cfd3f585d4d65bb00b3be6034a0bdf6cd157432aab4f85e469e83ddbb22b
MD5 6bb2af77ef08f589c635c9a93a9d7c46
BLAKE2b-256 37b2b2e4afcaf54c7713c54fe88a0e01ec2ff854683dcd54cc1c2b7c78ccfe3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 688ca29664c92d365db917eed90b1d6be1744f0b0c2e09dcff6abe465ddfca89
MD5 0d3c5c1687013b185698ab5e86833c54
BLAKE2b-256 b8a6b918d7b0c8586d2bb68d0de01f71312abc89ac2f80076693767f21466795

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 62c6bf8afb01b2e4bb65ac3f3f31b382e2a0d7efd4c1ecf09fbffeff380dd081
MD5 f982190a873c7e5c86d5b4db39636b2c
BLAKE2b-256 2096af7751dfe28e3bf46fe69d7193b294dc2357beda36ac763c26c786688fbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 9b4ea21513a30c2eeb2e6e35cbdcc4278f3e60116490c5c3e0b59f4ba9b40ebb
MD5 094a734ec54546a8d112e6ba148bc767
BLAKE2b-256 7afa10496045cd1f1c0cf202ff5f9d7c65607860494b3b7ae5c0bcad76920333

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 854b3bccf50861d47e46c6bf876856292b69621db6a788fba26b3b8a8ef6b13b
MD5 07982122376b09fcc446452eef5ec162
BLAKE2b-256 3c5ddb1f58af23666df3622a7c9aee3f8d4d7861148ca4fea98c552f95d50065

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 b1e764edbb168314a2a0ff05d3bbbbc30bde4ce135ec9e1926f6f6eb8d19a179
MD5 09257f3f831002256c87e96641a91d01
BLAKE2b-256 6d7d5505ef305dc0e2c958e6d911b4e2b1fd10dc7c6d7d78caf7c4017e3a060a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e3c818833916204499cd2ae45e773e835a98d84cc64a48b096195b195d844345
MD5 4a522e846fc6135e6ab52560e04edec5
BLAKE2b-256 26e7c2ef74c02ae81e54eb287cc768e2342b861d77bb6085769672afe9c52a33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aff8e1a481ab205a87249fa77c2445a74abe925f1387fc9f0badcfa1c48ae9b5
MD5 c744b999f379ff6cb324af3f08c08159
BLAKE2b-256 b26e6e2f231f4d409d2c1b31b3fbb7e4a43784a427b0575cb366e6d1ffa206e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for truss_transfer-0.0.11-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 bfd978df954056c409d467e074e3a0571db6bc11110942d044134d138415d81c
MD5 9a81714f520e309cb0570bf701ee7114
BLAKE2b-256 808fc6a539c56e3d35864621b5d2f366539334564058c7ffb52f44686aa1814f

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