turboquant 0.1.1

Implementation of Google's TurboQuant algorithm for vector quantization
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"
rust-version = "1.87.0"
name = "turboquant"
version = "0.1.1"
build = false
exclude = [
    "/.tmp-fixture-venv/",
    "/.venv-real-model-export/",
    "/artifacts/",
    "/prompts.txt",
    "/scripts/__pycache__/",
    "/target/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Implementation of Google's TurboQuant algorithm for vector quantization"
readme = "README.md"
keywords = [
    "quantization",
    "kv-cache",
    "llm",
    "compression",
    "vector",
]
categories = [
    "algorithms",
    "science",
    "compression",
]
license = "MIT"
repository = "https://github.com/abdelstark/turboquant"

[features]
default = []
gpu = ["dep:burn"]

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

[[bin]]
name = "turboquant"
path = "src/main.rs"

[[example]]
name = "basic_quantize"
path = "examples/basic_quantize.rs"

[[example]]
name = "benchmark"
path = "examples/benchmark.rs"

[[example]]
name = "kv_cache"
path = "examples/kv_cache.rs"

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

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

[[bench]]
name = "kernels"
path = "benches/kernels.rs"
harness = false

[dependencies.burn]
version = "0.20.1"
features = ["wgpu"]
optional = true
default-features = false

[dependencies.bytemuck]
version = "1.25.0"

[dependencies.nalgebra]
version = "0.34.1"
features = ["serde-serialize"]

[dependencies.num-traits]
version = "0.2.19"

[dependencies.ort]
version = "=2.0.0-rc.10"
features = [
    "std",
    "download-binaries",
    "copy-dylibs",
]
default-features = false

[dependencies.pulp]
version = "0.22.2"

[dependencies.rand]
version = "0.10.0"

[dependencies.rand_distr]
version = "0.6.0"

[dependencies.safetensors]
version = "0.7.0"

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.thiserror]
version = "2"

[dependencies.tokenizers]
version = "0.22.2"
features = ["onig"]
default-features = false

[dev-dependencies.approx]
version = "0.5.1"

[dev-dependencies.base64]
version = "0.22.1"

[dev-dependencies.clap]
version = "4.6.0"
features = ["derive"]

[dev-dependencies.criterion]
version = "0.8.2"