pt-loader 0.1.2

Safe parser-based PyTorch checkpoint converter to safetensors
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "pt-loader"
version = "0.1.2"
build = false
exclude = [
    ".github/**",
    "samples/**",
    "python/**",
    "pyproject.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe parser-based PyTorch checkpoint converter to safetensors"
homepage = "https://github.com/a-gradient/pt-loader"
documentation = "https://docs.rs/pt-loader"
readme = "README.md"
keywords = [
    "pytorch",
    "safetensors",
    "checkpoint",
    "converter",
]
categories = [
    "parser-implementations",
    "science",
]
license = "MIT"
repository = "https://github.com/a-gradient/pt-loader"

[features]
default = []
pyo3 = ["dep:pyo3"]

[lib]
name = "pt_loader"
crate-type = [
    "rlib",
    "cdylib",
]
path = "src/lib.rs"

[[bin]]
name = "pt-loader"
path = "src/main.rs"

[[test]]
name = "extract_sample"
path = "tests/extract_sample.rs"

[[test]]
name = "limits"
path = "tests/limits.rs"

[dependencies.ndarray]
version = "0.16"

[dependencies.pyo3]
version = "0.28.3"
features = [
    "extension-module",
    "abi3-py38",
]
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.11"

[dependencies.zip]
version = "8"
features = ["deflate"]
default-features = false

[dev-dependencies.safetensors]
version = "0.7"

[dev-dependencies.tempfile]
version = "3"