[package]
edition = "2021"
rust-version = "1.87"
name = "aprender-train"
version = "0.29.0"
authors = ["PAIML <hello@paiml.com>"]
build = "build.rs"
exclude = [
"book/",
"docs/",
"examples/",
"tests/",
"scripts/",
".pmat/",
".pmat-work/",
".pmat-metrics/",
".github/",
"*.md",
"/models/",
"wasm-pkg/",
"target/",
"**/*.profraw",
"**/*.profdata",
".vscode/",
".idea/",
"**/*.proptest-regressions",
"/checkpoints/",
"/data/",
"/golden_traces/",
"/output/",
"/outputs/",
"*.gguf",
"*.parquet",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Training & Optimization library with autograd, LoRA, quantization, and model merging"
readme = "README.md"
keywords = [
"machine-learning",
"neural-networks",
"autograd",
"lora",
"quantization",
]
categories = [
"science",
"mathematics",
]
license = "MIT"
repository = "https://github.com/paiml/entrenar"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--generate-link-to-definition"]
[package.metadata.release]
shared-version = true
[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = '## \[Unreleased\]'
replace = "## [{{version}}] - {{date}}"
[features]
citl = [
"trueno-rag",
"tokio",
"uuid",
]
cpu-fallback = []
cuda = [
"trueno-gpu/cuda",
"tokio",
"realizar?/cuda",
]
default = ["tui"]
dhat-heap = ["dep:dhat"]
gguf = []
gpu = [
"trueno/gpu",
"tokio",
]
hub = [
"dep:hf-hub",
"aprender/hf-hub-integration",
]
hub-publish = [
"hub",
"dep:reqwest",
]
kani = []
monitor = ["trueno-db"]
nvml = ["nvml-wrapper"]
parquet = [
"dep:alimentar",
"dep:arrow",
]
ruchy-sessions = []
server = [
"axum",
"tower",
"tower-http",
"tokio",
]
tracing = ["renacer"]
tui = ["dep:presentar-terminal"]
wasm = [
"wasm-bindgen",
"getrandom",
"js-sys",
]
[lib]
name = "entrenar"
crate-type = ["rlib"]
path = "src/lib.rs"
[[bin]]
name = "aprender-train"
path = "src/main.rs"
required-features = []
[[bench]]
name = "monitor_bench"
path = "benches/monitor_bench.rs"
harness = false
required-features = ["monitor"]
[dependencies.aprender]
version = "0.29.0"
package = "aprender-core"
[dependencies.arrow]
version = "57"
optional = true
default-features = false
[dependencies.axum]
version = "0.8"
optional = true
[dependencies.bytemuck]
version = "1.19"
features = ["derive"]
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.clap]
version = "4.5"
features = ["derive"]
[dependencies.clap_complete]
version = "4.5"
[dependencies.ctrlc]
version = "3.4"
[dependencies.dhat]
version = "0.3"
optional = true
[dependencies.dirs]
version = "5.0"
[dependencies.ed25519-dalek]
version = "2.1"
[dependencies.fs4]
version = "0.13"
[dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]
optional = true
[dependencies.half]
version = "2.4"
[dependencies.hex]
version = "0.4"
[dependencies.hostname]
version = "0.4.2"
[dependencies.js-sys]
version = "0.3"
optional = true
[dependencies.jsonschema]
version = "0.28"
[dependencies.ndarray]
version = "0.16"
[dependencies.nvml-wrapper]
version = "0.10"
optional = true
[dependencies.presentar-core]
version = "0.3.4"
[dependencies.presentar-terminal]
version = "0.3.5"
optional = true
[dependencies.provable-contracts-macros]
version = "0.2"
[dependencies.rand]
version = "0.9"
[dependencies.realizar]
version = "0.8"
optional = true
[dependencies.regex]
version = "1.10"
[dependencies.renacer]
version = "0.9"
optional = true
[dependencies.rusqlite]
version = "0.32"
features = ["bundled"]
[dependencies.safetensors]
version = "0.7"
[dependencies.schemars]
version = "0.8"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.serde_yaml]
version = "0.9"
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.41"
features = [
"rt",
"rt-multi-thread",
"macros",
"net",
]
optional = true
[dependencies.toml]
version = "0.8"
[dependencies.tower]
version = "0.5"
optional = true
[dependencies.tower-http]
version = "0.6"
features = [
"trace",
"cors",
]
optional = true
[dependencies.trueno]
version = "0.17"
features = ["parallel"]
[dependencies.trueno-db]
version = "0.3.16"
optional = true
[dependencies.trueno-gpu]
version = "0.4"
optional = true
[dependencies.trueno-rag]
version = "0.2.0"
optional = true
[dependencies.trueno-viz]
version = "0.2"
features = ["terminal"]
[dependencies.uuid]
version = "1.11"
features = [
"v4",
"serde",
]
optional = true
[dependencies.validator]
version = "0.20"
features = ["derive"]
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dev-dependencies.approx]
version = "0.5"
[dev-dependencies.arrow]
version = "57"
default-features = false
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.dirs]
version = "5.0"
[dev-dependencies.insta]
version = "1.42"
features = [
"json",
"yaml",
]
[dev-dependencies.jugar-probar]
version = "1.0"
[dev-dependencies.parquet]
version = "57"
default-features = false
[dev-dependencies.proptest]
version = "1.4"
[dev-dependencies.provable-contracts]
version = "0.2"
[dev-dependencies.tempfile]
version = "3.8"
[build-dependencies.serde]
version = "1"
features = ["derive"]
[build-dependencies.serde_yaml_ng]
version = "0.10"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.alimentar]
version = "0.2.4"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.hf-hub]
version = "0.4"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.12"
features = [
"json",
"blocking",
]
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.zip]
version = "2.2"
[lints.clippy]
approx_constant = "allow"
assertions_on_constants = "allow"
assigning_clones = "allow"
bool_to_int_with_if = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
checked_conversions = "warn"
clone_on_copy = "allow"
cloned_instead_of_copied = "allow"
cloned_ref_to_slice_refs = "allow"
const_is_empty = "allow"
default_constructed_unit_structs = "allow"
default_trait_access = "allow"
derivable_impls = "allow"
doc_markdown = "allow"
empty_line_after_doc_comments = "allow"
empty_line_after_outer_attr = "allow"
erasing_op = "allow"
excessive_precision = "allow"
explicit_deref_methods = "warn"
explicit_iter_loop = "warn"
field_reassign_with_default = "allow"
float_cmp = "allow"
format_push_string = "allow"
identity_op = "allow"
if_not_else = "allow"
ignore_without_reason = "allow"
implicit_clone = "warn"
inconsistent_struct_constructor = "warn"
index_refutable_slice = "allow"
inefficient_to_string = "allow"
items_after_statements = "allow"
iter_cloned_collect = "allow"
large_stack_arrays = "allow"
len_zero = "allow"
manual_contains = "allow"
manual_div_ceil = "allow"
manual_let_else = "allow"
manual_midpoint = "allow"
manual_ok_or = "warn"
manual_range_contains = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_borrows_for_generic_args = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
needless_raw_string_hashes = "allow"
no_effect_underscore_binding = "allow"
nonminimal_bool = "allow"
overly_complex_bool_expr = "allow"
print_literal = "allow"
ptr_arg = "allow"
redundant_closure_for_method_calls = "allow"
redundant_guards = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
similar_names = "allow"
single_char_pattern = "allow"
single_match_else = "allow"
stable_sort_primitive = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
uninlined_format_args = "allow"
unnecessary_debug_formatting = "allow"
unnecessary_literal_bound = "allow"
unnecessary_literal_unwrap = "allow"
unnecessary_map_or = "allow"
unnecessary_wraps = "allow"
unnested_or_patterns = "warn"
unreadable_literal = "allow"
unused_self = "allow"
used_underscore_binding = "warn"
useless_vec = "allow"
vec_init_then_push = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "allow"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "allow"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(kani)",
"cfg(coverage_nightly)",
'cfg(feature, values("explainable-monitor-integration"))',
]
[profile.dev]
opt-level = 0
[profile.release]
opt-level = 3
lto = true
codegen-units = 1