boostr 0.1.0

ML framework built on numr - attention, quantization, model architectures
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 = "2024"
rust-version = "1.85"
name = "boostr"
version = "0.1.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ML framework built on numr - attention, quantization, model architectures"
documentation = "https://docs.rs/boostr"
readme = "README.md"
keywords = [
    "machine-learning",
    "deep-learning",
    "transformer",
    "inference",
    "quantization",
]
categories = [
    "science",
    "mathematics",
]
license = "Apache-2.0"
repository = "https://github.com/ml-rust/boostr"

[package.metadata.docs.rs]
no-default-features = true

[features]
cpu = []
cuda = [
    "numr/cuda",
    "dep:cudarc",
]
default = ["cpu"]
distributed = [
    "dep:nexar",
    "dep:anyhow",
    "dep:bytemuck",
]
f16 = ["numr/f16"]
fp8 = ["numr/fp8"]
nccl = ["numr/nccl"]
wgpu = [
    "numr/wgpu",
    "dep:wgpu",
    "dep:bytemuck",
]

[lib]
name = "boostr"
path = "src/lib.rs"

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

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

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

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

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

[dependencies.anyhow]
version = "1"
optional = true

[dependencies.bytemuck]
version = "1.24"
features = ["derive"]
optional = true

[dependencies.cudarc]
version = "0.19"
features = ["cuda-version-from-build-system"]
optional = true

[dependencies.half]
version = "2"
features = ["bytemuck"]

[dependencies.image]
version = "0.25"
features = [
    "png",
    "jpeg",
]
default-features = false

[dependencies.memmap2]
version = "0.9"

[dependencies.nexar]
version = "0.1"
optional = true

[dependencies.numr]
version = "0.5"

[dependencies.rayon]
version = "1.11"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.splintr]
version = "0.9"

[dependencies.thiserror]
version = "2.0"

[dependencies.tracing]
version = "0.1"

[dependencies.wgpu]
version = "28.0"
optional = true

[dev-dependencies.bytemuck]
version = "1.24"
features = ["derive"]

[dev-dependencies.rustls]
version = "0.23"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]