laya 0.1.1

Rust inference for the Laya non-autoregressive typed-decision model (ModernBERT-large + RL decision head)
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.75"
name = "laya"
version = "0.1.1"
authors = ["Enzo Lombardi <enzinol@gmail.com>"]
build = false
exclude = [
    "models/*",
    "examples/_*_tmp.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust inference for the Laya non-autoregressive typed-decision model (ModernBERT-large + RL decision head)"
readme = "README.md"
keywords = [
    "nlp",
    "classification",
    "candle",
    "modernbert",
    "inference",
]
categories = ["science"]
license = "Apache-2.0"
repository = "https://github.com/aovestdipaperino/laya-rust"

[features]
cuda = [
    "candle-core/cuda",
    "candle-nn/cuda",
    "candle-transformers/cuda",
]
default = []
metal = [
    "candle-core/metal",
    "candle-nn/metal",
    "candle-transformers/metal",
]
serve = [
    "axum",
    "tokio",
]

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

[[bin]]
name = "laya"
path = "src/bin/laya.rs"

[[bin]]
name = "laya-serve"
path = "src/bin/laya-serve.rs"
required-features = ["serve"]

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.candle-core]
version = "0.9"

[dependencies.candle-nn]
version = "0.9"

[dependencies.candle-transformers]
version = "0.9"

[dependencies.clap]
version = "4"
features = ["derive"]

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

[dependencies.serde_json]
version = "1"
features = ["preserve_order"]

[dependencies.tokenizers]
version = "0.21"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "signal",
    "net",
]
optional = true

[profile.release]
opt-level = 3
lto = "thin"