trustformers-optim 0.2.0

Optimizers for TrustformeRS
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"
name = "trustformers-optim"
version = "0.2.0"
authors = ["COOLJAPAN OU (Team KitaSan) <contact@cooljapan.tech>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Optimizers for TrustformeRS"
homepage = "https://github.com/cool-japan/trustformers"
documentation = "https://docs.rs/trustformers-optim"
readme = "README.md"
keywords = [
    "optimizer",
    "adam",
    "sgd",
    "machine-learning",
    "training",
]
categories = [
    "science",
    "algorithms",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/trustformers"

[features]
default = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0.103"

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

[dependencies.num_cpus]
version = "1.17"

[dependencies.oxicode]
version = "0.2.4"
features = ["serde"]

[dependencies.parking_lot]
version = "0.12.5"

[dependencies.scirs2-core]
version = "0.6.0"
features = [
    "array",
    "simd",
    "parallel",
    "linalg",
    "memory_efficient",
    "array_protocol",
    "random",
    "serialization",
    "parallel",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0.150"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.trustformers-core]
version = "0.2.0"
default-features = false

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

[dev-dependencies.rstest]
version = "0.26"

[lints.clippy]
all = "warn"

[lints.rust]
dead_code = "warn"
deprecated = "warn"
unused_assignments = "warn"
unused_imports = "warn"
unused_mut = "warn"
unused_variables = "warn"