ternlang-compress 1.5.0

LLM-to-ternary compression pipeline — quantize float models to {-1,0,+1}, build sparse zero-index, export .tern files for ternlang-ml inference.
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"
name = "ternlang-compress"
version = "1.5.0"
authors = [
    "Simeon Kepp <s.kepp@ternlang.com> (https://www.linkedin.com/in/simeon-kepp/)",
    "Nikoletta Csonka <csonikoletta@ternlang.com> (https://www.linkedin.com/in/csonikoletta/)",
    "Zabih Karimi <z.karimi@ternlang.com> (https://www.linkedin.com/in/zabih-karimi-3292ab349/)",
    "Lisa Scharler <l.scharler@ternlang.com> (https://www.linkedin.com/in/lisa-scharler-innovation-management-technology-entrepreneurship-future-education/)",
    "Louis Paul Ehrig <l.ehrig@ternlang.com> (https://www.linkedin.com/in/louis-ehrig-317941335/)",
    "RFI-IRFOS <licensing@ternlang.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "LLM-to-ternary compression pipeline — quantize float models to {-1,0,+1}, build sparse zero-index, export .tern files for ternlang-ml inference."
homepage = "https://ternlang.com"
readme = false
keywords = [
    "ternary",
    "quantization",
    "llm",
    "compression",
    "bitnet",
]
categories = [
    "science",
    "algorithms",
]
license = "LicenseRef-BSL-1.1"
repository = "https://github.com/eriirfos-eng/ternary-intelligence-stack"
resolver = "2"

[features]
default = [
    "mmap",
    "progress",
    "parallel",
]
gguf = []
mmap = ["dep:memmap2"]
parallel = ["dep:rayon"]
progress = ["dep:indicatif"]
safetensors = []

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

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

[dependencies.anyhow]
version = "1"

[dependencies.bincode]
version = "1"

[dependencies.half]
version = "2"

[dependencies.indicatif]
version = "0.17"
optional = true

[dependencies.memmap2]
version = "0.9"
optional = true

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

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

[dependencies.serde_json]
version = "1"

[dependencies.ternlang-core]
version = "1.5.0"

[dependencies.ternlang-ml]
version = "1.5.0"

[dependencies.thiserror]
version = "1"

[dependencies.tracing]
version = "0.1"

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