[INFO] fetching crate trustformers-optim 0.1.0-alpha.2... [INFO] linting trustformers-optim-0.1.0-alpha.2 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate trustformers-optim 0.1.0-alpha.2 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate trustformers-optim 0.1.0-alpha.2 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate trustformers-optim 0.1.0-alpha.2 [INFO] tweaked toml for crates.io crate trustformers-optim 0.1.0-alpha.2 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate trustformers-optim 0.1.0-alpha.2 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate trustformers-optim 0.1.0-alpha.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded safetensors v0.7.0 [INFO] [stderr] Downloaded oxiblas-sparse v0.1.2 [INFO] [stderr] Downloaded metal v0.32.0 [INFO] [stderr] Downloaded objc2-metal-performance-shaders-graph v0.3.2 [INFO] [stderr] Downloaded aws-lc-sys v0.37.0 [INFO] [stderr] Downloaded objc2-metal v0.3.2 [INFO] [stderr] Downloaded oxiblas v0.1.2 [INFO] [stderr] Downloaded aws-lc-rs v1.15.4 [INFO] [stderr] Downloaded objc2-metal-performance-shaders v0.3.2 [INFO] [stderr] Downloaded trustformers-core v0.1.0-alpha.2 [INFO] [stderr] Downloaded scirs2-core v0.1.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 81f3b642c4f7720a6f010f266b5a117eb1d6235fde102fe53a1c1503be3e6527 [INFO] running `Command { std: "docker" "start" "-a" "81f3b642c4f7720a6f010f266b5a117eb1d6235fde102fe53a1c1503be3e6527", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "81f3b642c4f7720a6f010f266b5a117eb1d6235fde102fe53a1c1503be3e6527", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81f3b642c4f7720a6f010f266b5a117eb1d6235fde102fe53a1c1503be3e6527", kill_on_drop: false }` [INFO] [stdout] 81f3b642c4f7720a6f010f266b5a117eb1d6235fde102fe53a1c1503be3e6527 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c5587e10b66d4ad90be0ef639b39e5154d4b7ec622a6b16dbee27bf8dafe4057 [INFO] running `Command { std: "docker" "start" "-a" "c5587e10b66d4ad90be0ef639b39e5154d4b7ec622a6b16dbee27bf8dafe4057", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Compiling aws-lc-rs v1.15.4 [INFO] [stderr] Checking hashbrown v0.16.1 [INFO] [stderr] Compiling zmij v1.0.16 [INFO] [stderr] Compiling matrixmultiply v0.3.10 [INFO] [stderr] Compiling rustls v0.23.36 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling portable-atomic v1.13.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Checking unicode-width v0.2.2 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking rand_core v0.9.5 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling winnow v0.7.14 [INFO] [stderr] Checking rustls-native-certs v0.8.3 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking castaway v0.2.4 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Compiling toml_datetime v0.7.5+spec-1.1.0 [INFO] [stderr] Compiling macro_rules_attribute-proc_macro v0.2.2 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Checking unit-prefix v0.5.2 [INFO] [stderr] Checking macro_rules_attribute v0.2.2 [INFO] [stderr] Checking tempfile v3.24.0 [INFO] [stderr] Checking uuid v1.20.0 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Checking console v0.16.2 [INFO] [stderr] Checking memmap2 v0.9.9 [INFO] [stderr] Checking unicode-normalization-alignments v0.1.12 [INFO] [stderr] Checking unicode_categories v0.1.1 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling trustformers-core v0.1.0-alpha.2 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking semver v1.0.27 [INFO] [stderr] Checking indicatif v0.18.3 [INFO] [stderr] Compiling cc v1.2.54 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking rayon-cond v0.4.0 [INFO] [stderr] Compiling cmake v0.1.57 [INFO] [stderr] Compiling aws-lc-sys v0.37.0 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling onig_sys v69.9.1 [INFO] [stderr] Compiling esaxx-rs v0.1.10 [INFO] [stderr] Compiling scirs2-core v0.1.2 [INFO] [stderr] Compiling toml_parser v1.0.6+spec-1.1.0 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Compiling toml_edit v0.23.10+spec-1.0.0 [INFO] [stderr] Checking onig v6.5.1 [INFO] [stderr] Compiling proc-macro-crate v3.4.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling bytemuck_derive v1.10.2 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling zerocopy-derive v0.8.33 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling monostate-impl v0.1.18 [INFO] [stderr] Compiling oxicode_derive v0.1.0 [INFO] [stderr] Checking monostate v0.1.18 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling rstest_macros v0.26.1 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking bytemuck v1.24.0 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking safe_arch v1.0.0 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Checking wide v1.1.1 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking compact_str v0.9.0 [INFO] [stderr] Checking chrono v0.4.43 [INFO] [stderr] Checking derive_builder v0.20.2 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking oxicode v0.1.1 [INFO] [stderr] Checking dary_heap v0.3.8 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking spm_precompiled v0.1.4 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking safetensors v0.7.0 [INFO] [stderr] Checking oxiblas-core v0.1.2 [INFO] [stderr] Checking ndarray v0.17.2 [INFO] [stderr] Checking rstest v0.26.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking rand_distr v0.5.1 [INFO] [stderr] Checking tokenizers v0.22.2 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking oxiblas-matrix v0.1.2 [INFO] [stderr] Checking oxiblas-blas v0.1.2 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking oxiblas-lapack v0.1.2 [INFO] [stderr] Checking rustls-webpki v0.103.9 [INFO] [stderr] Checking ndarray-rand v0.16.0 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking hyper-util v0.1.19 [INFO] [stderr] Checking oxiblas-ndarray v0.1.2 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking rustls-platform-verifier v0.6.2 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking reqwest v0.13.1 [INFO] [stderr] Checking trustformers-optim v0.1.0-alpha.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/advanced_distributed_features.rs:734:12 [INFO] [stdout] | [INFO] [stdout] 734 | if step % self.config.base_frequency == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `step.is_multiple_of(self.config.base_frequency)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `-W clippy::manual-is-multiple-of` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::manual_is_multiple_of)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/advanced_distributed_features.rs:1022:9 [INFO] [stdout] | [INFO] [stdout] 1022 | step % self.config.optimization_frequency == 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `step.is_multiple_of(self.config.optimization_frequency)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/async_optim.rs:292:12 [INFO] [stdout] | [INFO] [stdout] 292 | if current_step % 5 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace with: `current_step.is_multiple_of(5)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/came.rs:299:33 [INFO] [stdout] | [INFO] [stdout] 299 | if candidate > 0 && size % candidate == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace with: `size.is_multiple_of(candidate)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/continual_learning.rs:512:12 [INFO] [stdout] | [INFO] [stdout] 512 | if self.step_count % self.config.replay_frequency == 0 && !self.memory_buffer.is_empty() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `self.step_count.is_multiple_of(self.config.replay_frequency)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/enhanced_distributed_training.rs:1089:9 [INFO] [stdout] | [INFO] [stdout] 1089 | step % self.config.checkpoint_frequency == 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `step.is_multiple_of(self.config.checkpoint_frequency)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/monitoring.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | self.metrics.step % self.config.log_frequency == 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `self.metrics.step.is_multiple_of(self.config.log_frequency)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/monitoring.rs:757:16 [INFO] [stdout] | [INFO] [stdout] 757 | && self.step_count % self.config.analysis_frequency == 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `self.step_count.is_multiple_of(self.config.analysis_frequency)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/muon.rs:400:34 [INFO] [stdout] | [INFO] [stdout] 400 | if candidate1 > 0 && size % candidate1 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `size.is_multiple_of(candidate1)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/muon.rs:407:34 [INFO] [stdout] | [INFO] [stdout] 407 | if candidate2 > 0 && size % candidate2 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `size.is_multiple_of(candidate2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/performance_validation.rs:1110:13 [INFO] [stdout] | [INFO] [stdout] 1110 | sorted_optimizers.sort_by(|a, b| a.1.avg_step_time.cmp(&b.1.avg_step_time)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] = note: `-W clippy::unnecessary-sort-by` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::unnecessary_sort_by)]` [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 1110 - sorted_optimizers.sort_by(|a, b| a.1.avg_step_time.cmp(&b.1.avg_step_time)); [INFO] [stdout] 1110 + sorted_optimizers.sort_by_key(|a| a.1.avg_step_time); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/advanced_distributed_features.rs:734:12 [INFO] [stdout] | [INFO] [stdout] 734 | if step % self.config.base_frequency == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `step.is_multiple_of(self.config.base_frequency)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `-W clippy::manual-is-multiple-of` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::manual_is_multiple_of)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/advanced_distributed_features.rs:1022:9 [INFO] [stdout] | [INFO] [stdout] 1022 | step % self.config.optimization_frequency == 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `step.is_multiple_of(self.config.optimization_frequency)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> src/advanced_distributed_features.rs:1265:9 [INFO] [stdout] | [INFO] [stdout] 1265 | config.min_nodes = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `advanced_distributed_features::AutoScalerConfig { min_nodes: 2, max_nodes: 32, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> src/advanced_distributed_features.rs:1264:9 [INFO] [stdout] | [INFO] [stdout] 1264 | let mut config = AutoScalerConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] = note: `-W clippy::field-reassign-with-default` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::field_reassign_with_default)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/advanced_distributed_features.rs:1306:17 [INFO] [stdout] | [INFO] [stdout] 1306 | assert!(prediction >= 0.0 && prediction <= 1.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0.0..=1.0).contains(&prediction)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `-W clippy::manual-range-contains` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::manual_range_contains)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/async_optim.rs:292:12 [INFO] [stdout] | [INFO] [stdout] 292 | if current_step % 5 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace with: `current_step.is_multiple_of(5)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/simd_optimizations.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | / pub unsafe fn adam_update_avx2( [INFO] [stdout] 82 | | &self, [INFO] [stdout] 83 | | params: &mut [f32], [INFO] [stdout] 84 | | gradients: &[f32], [INFO] [stdout] ... | [INFO] [stdout] 91 | | step: i32, [INFO] [stdout] 92 | | ) -> Result<()> { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] = note: `-W clippy::missing-safety-doc` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::missing_safety_doc)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/simd_optimizations.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | / pub unsafe fn adamw_update_avx2( [INFO] [stdout] 166 | | &self, [INFO] [stdout] 167 | | params: &mut [f32], [INFO] [stdout] 168 | | gradients: &[f32], [INFO] [stdout] ... | [INFO] [stdout] 176 | | step: i32, [INFO] [stdout] 177 | | ) -> Result<()> { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/simd_optimizations.rs:250:5 [INFO] [stdout] | [INFO] [stdout] 250 | / pub unsafe fn sgd_momentum_update_avx2( [INFO] [stdout] 251 | | &self, [INFO] [stdout] 252 | | params: &mut [f32], [INFO] [stdout] 253 | | gradients: &[f32], [INFO] [stdout] ... | [INFO] [stdout] 258 | | nesterov: bool, [INFO] [stdout] 259 | | ) -> Result<()> { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/simd_optimizations.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 321 | pub unsafe fn clip_gradients_avx2(&self, gradients: &mut [f32], max_norm: f32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/simd_optimizations.rs:373:5 [INFO] [stdout] | [INFO] [stdout] 373 | pub unsafe fn vector_add_avx2(&self, a: &mut [f32], b: &[f32], scale: f32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/simd_optimizations.rs:401:5 [INFO] [stdout] | [INFO] [stdout] 401 | pub unsafe fn dot_product_avx2(&self, a: &[f32], b: &[f32]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/sophia.rs:257:44 [INFO] [stdout] | [INFO] [stdout] 257 | self.state.step > 0 && self.state.step % self.config.hessian_update_freq == 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `self.state.step.is_multiple_of(self.config.hessian_update_freq)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/sparse.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | if self.current_step % self.config.cleanup_frequency == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `self.current_step.is_multiple_of(self.config.cleanup_frequency)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> src/bge_adam.rs:675:9 [INFO] [stdout] | [INFO] [stdout] 675 | config.entropy_weighting = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `bge_adam::BGEAdamConfig { entropy_weighting: false, adaptive_parameters: false, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> src/bge_adam.rs:674:9 [INFO] [stdout] | [INFO] [stdout] 674 | let mut config = BGEAdamConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/bge_adam_optimized.rs:561:9 [INFO] [stdout] | [INFO] [stdout] 561 | assert_eq!(perf_opt.config.use_vectorized, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] = note: `-W clippy::bool-assert-comparison` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::bool_assert_comparison)]` [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 561 - assert_eq!(perf_opt.config.use_vectorized, true); [INFO] [stdout] 561 + assert!(perf_opt.config.use_vectorized); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/came.rs:299:33 [INFO] [stdout] | [INFO] [stdout] 299 | if candidate > 0 && size % candidate == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace with: `size.is_multiple_of(candidate)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/continual_learning.rs:512:12 [INFO] [stdout] | [INFO] [stdout] 512 | if self.step_count % self.config.replay_frequency == 0 && !self.memory_buffer.is_empty() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `self.step_count.is_multiple_of(self.config.replay_frequency)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> src/cpu_offload.rs:415:9 [INFO] [stdout] | [INFO] [stdout] 415 | new_config.offload_gradients = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `cpu_offload::CPUOffloadConfig { offload_gradients: true, offload_threshold: 2048, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> src/cpu_offload.rs:414:9 [INFO] [stdout] | [INFO] [stdout] 414 | let mut new_config = CPUOffloadConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/cpu_offload.rs:420:9 [INFO] [stdout] | [INFO] [stdout] 420 | assert_eq!(optimizer.get_config().offload_gradients, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 420 - assert_eq!(optimizer.get_config().offload_gradients, true); [INFO] [stdout] 420 + assert!(optimizer.get_config().offload_gradients); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `true` [INFO] [stdout] --> src/deep_distributed_qp.rs:1008:9 [INFO] [stdout] | [INFO] [stdout] 1008 | assert!(true); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove the assertion [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] = note: `-W clippy::assertions-on-constants` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::assertions_on_constants)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/memory_efficiency_test.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/basic_benchmark.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `!RangeInclusive::contains` implementation [INFO] [stdout] --> examples/basic_benchmark.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | if step < 5 || step > 12 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: use: `!(5..=12).contains(&step)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `-W clippy::manual-range-contains` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::manual_range_contains)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_distributed_training_demo.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_distributed_training_demo.rs:63:39 [INFO] [stdout] | [INFO] [stdout] 63 | fn demo_basic_multi_gpu_training() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_distributed_training_demo.rs:129:44 [INFO] [stdout] | [INFO] [stdout] 129 | fn demo_gradient_compression_training() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_distributed_training_demo.rs:213:47 [INFO] [stdout] | [INFO] [stdout] 213 | fn demo_dynamic_performance_optimization() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_distributed_training_demo.rs:306:47 [INFO] [stdout] | [INFO] [stdout] 306 | fn demo_large_scale_distributed_training() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/enhanced_distributed_training.rs:1089:9 [INFO] [stdout] | [INFO] [stdout] 1089 | step % self.config.checkpoint_frequency == 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `step.is_multiple_of(self.config.checkpoint_frequency)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_distributed_training_demo.rs:394:38 [INFO] [stdout] | [INFO] [stdout] 394 | fn demo_fault_tolerant_training() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_distributed_training_demo.rs:474:35 [INFO] [stdout] | [INFO] [stdout] 474 | fn demo_performance_analysis() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_distributed_training_demo.rs:626:49 [INFO] [stdout] | [INFO] [stdout] 626 | fn create_simulated_transformer_parameters() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_distributed_training_demo.rs:680:49 [INFO] [stdout] | [INFO] [stdout] 680 | fn create_simulated_large_model_parameters() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_distributed_training_demo.rs:723:50 [INFO] [stdout] | [INFO] [stdout] 723 | fn create_simulated_vision_model_parameters() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_distributed_training_demo.rs:745:58 [INFO] [stdout] | [INFO] [stdout] 745 | fn create_simulated_large_language_model_parameters() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_distributed_training_demo.rs:788:47 [INFO] [stdout] | [INFO] [stdout] 788 | fn create_simulated_gradients(step: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_distributed_training_demo.rs:814:53 [INFO] [stdout] | [INFO] [stdout] 814 | fn create_simulated_large_gradients(step: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_distributed_training_demo.rs:843:46 [INFO] [stdout] | [INFO] [stdout] 843 | fn benchmark_distributed_configurations() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `distances` [INFO] [stdout] --> examples/automated_averaged_adam_hyperparameter_tuning.rs:380:18 [INFO] [stdout] | [INFO] [stdout] 380 | for i in 0..k { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `-W clippy::needless-range-loop` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::needless_range_loop)]` [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 380 - for i in 0..k { [INFO] [stdout] 380 + for in distances.iter().take(k) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/memory_usage_analysis.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/transformer_training_with_averaged_adam.rs:86:62 [INFO] [stdout] | [INFO] [stdout] 86 | fn new(config: TransformerConfig, learning_rate: f32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/automated_averaged_adam_hyperparameter_tuning.rs:528:6 [INFO] [stdout] | [INFO] [stdout] 528 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/transformer_training_with_averaged_adam.rs:163:44 [INFO] [stdout] | [INFO] [stdout] 163 | fn simulate_forward_pass(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/automated_averaged_adam_hyperparameter_tuning.rs:666:6 [INFO] [stdout] | [INFO] [stdout] 666 | ) -> Result, TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/transformer_training_with_averaged_adam.rs:273:6 [INFO] [stdout] | [INFO] [stdout] 273 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/transformer_training_with_averaged_adam.rs:299:6 [INFO] [stdout] | [INFO] [stdout] 299 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/automated_averaged_adam_hyperparameter_tuning.rs:724:6 [INFO] [stdout] | [INFO] [stdout] 724 | ) -> Result, TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/automated_averaged_adam_hyperparameter_tuning.rs:798:38 [INFO] [stdout] | [INFO] [stdout] 798 | fn compare_optimization_methods() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/transformer_training_with_averaged_adam.rs:392:6 [INFO] [stdout] | [INFO] [stdout] 392 | ) -> Result, TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/transformer_training_with_averaged_adam.rs:497:14 [INFO] [stdout] | [INFO] [stdout] 497 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/automated_averaged_adam_hyperparameter_tuning.rs:897:14 [INFO] [stdout] | [INFO] [stdout] 897 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:174:10 [INFO] [stdout] | [INFO] [stdout] 174 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `AggregationStrategy` which implements the `Copy` trait [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:217:23 [INFO] [stdout] | [INFO] [stdout] 217 | strategy: config.aggregation_strategy.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `config.aggregation_strategy` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `-W clippy::clone-on-copy` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::clone_on_copy)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:247:42 [INFO] [stdout] | [INFO] [stdout] 247 | pub fn for_large_scale_training() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:253:45 [INFO] [stdout] | [INFO] [stdout] 253 | pub fn for_fault_tolerant_training() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:263:10 [INFO] [stdout] | [INFO] [stdout] 263 | ) -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to want to iterate on a map's keys [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:269:35 [INFO] [stdout] | [INFO] [stdout] 269 | for (name, _param) in parameters { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map [INFO] [stdout] = note: `-W clippy::for-kv-map` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::for_kv_map)]` [INFO] [stdout] help: use the corresponding method [INFO] [stdout] | [INFO] [stdout] 269 - for (name, _param) in parameters { [INFO] [stdout] 269 + for name in parameters.keys() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:296:10 [INFO] [stdout] | [INFO] [stdout] 296 | ) -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to want to iterate on a map's keys [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:329:45 [INFO] [stdout] | [INFO] [stdout] 329 | for (name, _compressed_grad) in &compressed { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#for_kv_map [INFO] [stdout] help: use the corresponding method [INFO] [stdout] | [INFO] [stdout] 329 - for (name, _compressed_grad) in &compressed { [INFO] [stdout] 329 + for name in compressed.keys() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:420:16 [INFO] [stdout] | [INFO] [stdout] 420 | && step_count % self.fault_tolerance.checkpoint_frequency == 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `step_count.is_multiple_of(self.fault_tolerance.checkpoint_frequency)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `-W clippy::manual-is-multiple-of` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::manual_is_multiple_of)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:435:10 [INFO] [stdout] | [INFO] [stdout] 435 | ) -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:455:30 [INFO] [stdout] | [INFO] [stdout] 455 | if step_count > 0 && step_count % 10 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace with: `step_count.is_multiple_of(10)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:464:54 [INFO] [stdout] | [INFO] [stdout] 464 | fn synchronize_averaged_parameters(&mut self) -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:484:10 [INFO] [stdout] | [INFO] [stdout] 484 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:514:10 [INFO] [stdout] | [INFO] [stdout] 514 | ) -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:533:10 [INFO] [stdout] | [INFO] [stdout] 533 | ) -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`usize` -> `usize`) [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:585:17 [INFO] [stdout] | [INFO] [stdout] 585 | zero_stats.total_memory_saved as usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `zero_stats.total_memory_saved` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `-W clippy::unnecessary-cast` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::unnecessary_cast)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:593:65 [INFO] [stdout] | [INFO] [stdout] 593 | pub fn use_averaged_parameters_for_evaluation(&mut self) -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:599:62 [INFO] [stdout] | [INFO] [stdout] 599 | pub fn use_current_parameters_for_training(&mut self) -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:646:6 [INFO] [stdout] | [INFO] [stdout] 646 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:736:44 [INFO] [stdout] | [INFO] [stdout] 736 | fn compare_distributed_configurations() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/multi_gpu_averaged_adam_training.rs:805:14 [INFO] [stdout] | [INFO] [stdout] 805 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: initializer for `thread_local` value can be made `const` [INFO] [stdout] --> examples/auto_optimizer_tuning.rs:430:34 [INFO] [stdout] | [INFO] [stdout] 430 | static SEED: Cell = Cell::new(1); [INFO] [stdout] | ^^^^^^^^^^^^ help: replace with: `const { Cell::new(1) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_const_for_thread_local [INFO] [stdout] = note: `-W clippy::missing-const-for-thread-local` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::missing_const_for_thread_local)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/framework_compatibility_simple.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/framework_compatibility_simple.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | fn test_pytorch_api() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/framework_compatibility_simple.rs:105:29 [INFO] [stdout] | [INFO] [stdout] 105 | fn test_tensorflow_api() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_performance_validation_demo.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_performance_validation_demo.rs:72:37 [INFO] [stdout] | [INFO] [stdout] 72 | fn demo_basic_validation_suite() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/framework_compatibility_simple.rs:207:22 [INFO] [stdout] | [INFO] [stdout] 207 | fn test_jax_api() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> examples/comprehensive_performance_validation_demo.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | optimizer_results.sort_by(|a, b| a.1.avg_step_time.cmp(&b.1.avg_step_time)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] = note: `-W clippy::unnecessary-sort-by` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::unnecessary_sort_by)]` [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 116 - optimizer_results.sort_by(|a, b| a.1.avg_step_time.cmp(&b.1.avg_step_time)); [INFO] [stdout] 116 + optimizer_results.sort_by_key(|a| a.1.avg_step_time); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_performance_validation_demo.rs:174:44 [INFO] [stdout] | [INFO] [stdout] 174 | fn demo_advanced_statistical_analysis() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/framework_compatibility_simple.rs:273:42 [INFO] [stdout] | [INFO] [stdout] 273 | fn test_configuration_compatibility() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> examples/comprehensive_performance_validation_demo.rs:268:9 [INFO] [stdout] | [INFO] [stdout] 268 | ranked_optimizers.sort_by(|a, b| a.1.avg_step_time.cmp(&b.1.avg_step_time)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 268 - ranked_optimizers.sort_by(|a, b| a.1.avg_step_time.cmp(&b.1.avg_step_time)); [INFO] [stdout] 268 + ranked_optimizers.sort_by_key(|a| a.1.avg_step_time); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_performance_validation_demo.rs:303:43 [INFO] [stdout] | [INFO] [stdout] 303 | fn demo_memory_efficiency_validation() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `unwrap()` on `Some` value [INFO] [stdout] --> examples/framework_compatibility_simple.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366 | tf_beta1.unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: remove the `Some` and `unwrap()` [INFO] [stdout] --> examples/framework_compatibility_simple.rs:351:20 [INFO] [stdout] | [INFO] [stdout] 351 | let tf_beta1 = Some(beta1); // TensorFlow optional [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_literal_unwrap [INFO] [stdout] = note: `-W clippy::unnecessary-literal-unwrap` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::unnecessary_literal_unwrap)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_performance_validation_demo.rs:419:35 [INFO] [stdout] | [INFO] [stdout] 419 | fn demo_convergence_analysis() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/auto_optimizer_tuning.rs:446:14 [INFO] [stdout] | [INFO] [stdout] 446 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_performance_validation_demo.rs:590:35 [INFO] [stdout] | [INFO] [stdout] 590 | fn demo_regression_detection() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/cross_framework_compatibility_test.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/cross_framework_compatibility_test.rs:26:36 [INFO] [stdout] | [INFO] [stdout] 26 | fn test_pytorch_compatibility() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> examples/cross_framework_compatibility_test.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | param_group.params = vec!["layer1.weight".to_string(), "layer1.bias".to_string()]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `trustformers_optim::PyTorchParamGroup { params: vec!["layer1.weight".to_string(), "layer1.bias".to_string()], lr: 0.001, weight_decay: 0.01, betas: Some((0.9, 0.999)), eps: Some(1e-8), ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> examples/cross_framework_compatibility_test.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | let mut param_group = PyTorchParamGroup::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] = note: `-W clippy::field-reassign-with-default` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::field_reassign_with_default)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_performance_validation_demo.rs:739:42 [INFO] [stdout] | [INFO] [stdout] 739 | fn demo_custom_validation_scenarios() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/cross_framework_compatibility_test.rs:96:39 [INFO] [stdout] | [INFO] [stdout] 96 | fn test_tensorflow_compatibility() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_performance_validation_demo.rs:855:39 [INFO] [stdout] | [INFO] [stdout] 855 | fn generate_comprehensive_report() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_performance_validation_demo.rs:881:46 [INFO] [stdout] | [INFO] [stdout] 881 | fn demonstrate_custom_optimizer_testing() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> examples/cross_framework_compatibility_test.rs:179:32 [INFO] [stdout] | [INFO] [stdout] 179 | let loss_fn = Box::new(|| { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 180 | | Ok(Tensor::new(vec![0.5])?) // Dummy loss value [INFO] [stdout] 181 | | }); [INFO] [stdout] | |_________^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> examples/cross_framework_compatibility_test.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | Ok(Tensor::new(vec![0.5])?) // Dummy loss value [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] = note: `-W clippy::needless-question-mark` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::needless_question_mark)]` [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 180 - Ok(Tensor::new(vec![0.5])?) // Dummy loss value [INFO] [stdout] 180 + Tensor::new(vec![0.5]) // Dummy loss value [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/cross_framework_compatibility_test.rs:194:32 [INFO] [stdout] | [INFO] [stdout] 194 | fn test_jax_compatibility() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/cross_framework_compatibility_test.rs:291:33 [INFO] [stdout] | [INFO] [stdout] 291 | fn test_onnx_compatibility() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `BenchmarkSuite` [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | / pub fn new() -> Self { [INFO] [stdout] 71 | | Self { [INFO] [stdout] 72 | | results: BenchmarkResults::new(), [INFO] [stdout] 73 | | start_time: Instant::now(), [INFO] [stdout] 74 | | } [INFO] [stdout] 75 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `-W clippy::new-without-default` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::new_without_default)]` [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 69 + impl Default for BenchmarkSuite { [INFO] [stdout] 70 + fn default() -> Self { [INFO] [stdout] 71 + Self::new() [INFO] [stdout] 72 + } [INFO] [stdout] 73 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/cross_framework_compatibility_test.rs:379:36 [INFO] [stdout] | [INFO] [stdout] 379 | fn test_state_dict_conversion() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/cross_framework_compatibility_test.rs:459:51 [INFO] [stdout] | [INFO] [stdout] 459 | fn convert_to_pytorch_state_dict(_adam: &Adam) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:78:49 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn run_scaling_benchmarks(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/cross_framework_compatibility_test.rs:479:49 [INFO] [stdout] | [INFO] [stdout] 479 | fn convert_to_tensorflow_state(_adam: &Adam) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/cross_framework_compatibility_test.rs:487:46 [INFO] [stdout] | [INFO] [stdout] 487 | fn convert_to_jax_opt_state(_adam: &Adam) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/cross_framework_compatibility_test.rs:498:6 [INFO] [stdout] | [INFO] [stdout] 498 | ) -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:152:49 [INFO] [stdout] | [INFO] [stdout] 152 | fn analyze_scaling_efficiency(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:174:62 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn run_optimizer_comparison_benchmarks(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:205:10 [INFO] [stdout] | [INFO] [stdout] 205 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/simple_validation.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:310:48 [INFO] [stdout] | [INFO] [stdout] 310 | fn analyze_optimizer_performance(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:330:62 [INFO] [stdout] | [INFO] [stdout] 330 | pub fn run_compression_analysis_benchmarks(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/advanced_benchmark_analysis.rs:59:45 [INFO] [stdout] | [INFO] [stdout] 59 | fn run_comprehensive_analysis(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:370:10 [INFO] [stdout] | [INFO] [stdout] 370 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/advanced_benchmark_analysis.rs:100:10 [INFO] [stdout] | [INFO] [stdout] 100 | ) -> Result, TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> examples/advanced_benchmark_analysis.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | let _ = adam.step(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] = note: `-W clippy::let-unit-value` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::let_unit_value)]` [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 113 - let _ = adam.step(); [INFO] [stdout] 113 + adam.step(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> examples/advanced_benchmark_analysis.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let _ = adamw.step(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 126 - let _ = adamw.step(); [INFO] [stdout] 126 + adamw.step(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> examples/advanced_benchmark_analysis.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | let _ = sgd.step(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 139 - let _ = sgd.step(); [INFO] [stdout] 139 + sgd.step(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> examples/advanced_benchmark_analysis.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 152 | let _ = bge_adam.step(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 152 - let _ = bge_adam.step(); [INFO] [stdout] 152 + bge_adam.step(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> examples/advanced_benchmark_analysis.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | let _ = hn_adam.step(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 165 - let _ = hn_adam.step(); [INFO] [stdout] 165 + hn_adam.step(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:445:49 [INFO] [stdout] | [INFO] [stdout] 445 | fn analyze_compression_efficiency(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:466:59 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn run_memory_efficiency_benchmarks(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> examples/advanced_benchmark_analysis.rs:178:17 [INFO] [stdout] | [INFO] [stdout] 178 | let _ = ademamix.step(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 178 - let _ = ademamix.step(); [INFO] [stdout] 178 + ademamix.step(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/advanced_benchmark_analysis.rs:196:10 [INFO] [stdout] | [INFO] [stdout] 196 | ) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:522:10 [INFO] [stdout] | [INFO] [stdout] 522 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> examples/advanced_benchmark_analysis.rs:408:9 [INFO] [stdout] | [INFO] [stdout] 408 | / let mut recommendations = Vec::new(); [INFO] [stdout] 409 | | [INFO] [stdout] 410 | | recommendations.push("🎯 **Optimizer Selection Guide**".to_string()); [INFO] [stdout] 411 | | recommendations.push("".to_string()); [INFO] [stdout] ... | [INFO] [stdout] 441 | | recommendations.push("📈 **Scalability Analysis:**".to_string()); [INFO] [stdout] | |_________________________________________________________________________^ help: consider using the `vec![]` macro: `let mut recommendations = vec![..];` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push [INFO] [stdout] = note: `-W clippy::vec-init-then-push` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::vec_init_then_push)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:585:46 [INFO] [stdout] | [INFO] [stdout] 585 | fn analyze_memory_optimization(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:607:57 [INFO] [stdout] | [INFO] [stdout] 607 | pub fn run_fault_tolerance_benchmarks(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/advanced_benchmark_analysis.rs:547:14 [INFO] [stdout] | [INFO] [stdout] 547 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:645:10 [INFO] [stdout] | [INFO] [stdout] 645 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/basic_validation.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:729:42 [INFO] [stdout] | [INFO] [stdout] 729 | fn analyze_fault_tolerance(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:746:54 [INFO] [stdout] | [INFO] [stdout] 746 | pub fn run_auto_scaling_benchmarks(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:771:10 [INFO] [stdout] | [INFO] [stdout] 771 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_benchmark.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | ) -> Result<(f32, Tensor), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:844:50 [INFO] [stdout] | [INFO] [stdout] 844 | fn analyze_auto_scaling_efficiency(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_benchmark.rs:64:67 [INFO] [stdout] | [INFO] [stdout] 64 | fn add_gradient_noise(gradient: &mut Tensor, noise_level: f32) -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_benchmark.rs:80:6 [INFO] [stdout] | [INFO] [stdout] 80 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_benchmark.rs:149:6 [INFO] [stdout] | [INFO] [stdout] 149 | ) -> Result, TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:864:61 [INFO] [stdout] | [INFO] [stdout] 864 | pub fn run_end_to_end_scenario_benchmarks(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:896:10 [INFO] [stdout] | [INFO] [stdout] 896 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> examples/averaged_adam_benchmark.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | / let mut results = Vec::new(); [INFO] [stdout] 160 | | [INFO] [stdout] 161 | | // Benchmark Averaged Adam with different configurations [INFO] [stdout] 162 | | results.push(run_optimizer_benchmark( [INFO] [stdout] ... | [INFO] [stdout] 209 | | "SGD with Momentum", [INFO] [stdout] 210 | | )?); [INFO] [stdout] | |________^ help: consider using the `vec![]` macro: `let results = vec![..];` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push [INFO] [stdout] = note: `-W clippy::vec-init-then-push` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::vec_init_then_push)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_benchmark.rs:298:33 [INFO] [stdout] | [INFO] [stdout] 298 | fn run_scenario_benchmarks() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/averaged_adam_benchmark.rs:327:14 [INFO] [stdout] | [INFO] [stdout] 327 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:1031:49 [INFO] [stdout] | [INFO] [stdout] 1031 | fn analyze_end_to_end_performance(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:1053:52 [INFO] [stdout] | [INFO] [stdout] 1053 | pub fn generate_comprehensive_report(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:1160:40 [INFO] [stdout] | [INFO] [stdout] 1160 | fn generate_key_insights(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:1198:43 [INFO] [stdout] | [INFO] [stdout] 1198 | fn generate_recommendations(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `BenchmarkResults` [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:1225:5 [INFO] [stdout] | [INFO] [stdout] 1225 | / pub fn new() -> Self { [INFO] [stdout] 1226 | | Self { [INFO] [stdout] 1227 | | scaling_results: Vec::new(), [INFO] [stdout] 1228 | | optimizer_results: Vec::new(), [INFO] [stdout] ... | [INFO] [stdout] 1235 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 1224 + impl Default for BenchmarkResults { [INFO] [stdout] 1225 + fn default() -> Self { [INFO] [stdout] 1226 + Self::new() [INFO] [stdout] 1227 + } [INFO] [stdout] 1228 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:1376:6 [INFO] [stdout] | [INFO] [stdout] 1376 | ) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/comprehensive_distributed_training_benchmarks.rs:1434:67 [INFO] [stdout] | [INFO] [stdout] 1434 | fn create_benchmark_gradients(step: usize, hidden_size: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `AdvancedPerformanceProfiler` [INFO] [stdout] --> examples/advanced_performance_profiler.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | / pub fn new() -> Self { [INFO] [stdout] 61 | | Self { [INFO] [stdout] 62 | | results: HashMap::new(), [INFO] [stdout] 63 | | baseline_optimizer: None, [INFO] [stdout] ... | [INFO] [stdout] 67 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `-W clippy::new-without-default` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::new_without_default)]` [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 58 + impl Default for AdvancedPerformanceProfiler { [INFO] [stdout] 59 + fn default() -> Self { [INFO] [stdout] 60 + Self::new() [INFO] [stdout] 61 + } [INFO] [stdout] 62 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `MemoryOptimizationAnalyzer` [INFO] [stdout] --> examples/memory_optimization_analyzer.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | / pub fn new() -> Self { [INFO] [stdout] 78 | | Self { [INFO] [stdout] 79 | | memory_samples: VecDeque::new(), [INFO] [stdout] 80 | | max_samples: 1000, [INFO] [stdout] ... | [INFO] [stdout] 85 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `-W clippy::new-without-default` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::new_without_default)]` [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 75 + impl Default for MemoryOptimizationAnalyzer { [INFO] [stdout] 76 + fn default() -> Self { [INFO] [stdout] 77 + Self::new() [INFO] [stdout] 78 + } [INFO] [stdout] 79 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/advanced_performance_profiler.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (10/7) [INFO] [stdout] --> examples/advanced_performance_profiler.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | / fn calculate_performance_stats( [INFO] [stdout] 172 | | &self, [INFO] [stdout] 173 | | optimizer_name: &str, [INFO] [stdout] 174 | | param_size: usize, [INFO] [stdout] ... | [INFO] [stdout] 181 | | losses: &[f32], [INFO] [stdout] 182 | | ) -> OptimizerPerformanceStats { [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `-W clippy::too-many-arguments` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::too_many_arguments)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/hyperparameter_optimization_demo.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> benches/optimizer_benchmark.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/hyperparameter_optimization_demo.rs:44:37 [INFO] [stdout] | [INFO] [stdout] 44 | fn demo_single_objective_amacp() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/hyperparameter_optimization_demo.rs:97:39 [INFO] [stdout] | [INFO] [stdout] 97 | fn demo_multi_objective_novograd() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> benches/optimizer_benchmark.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let _ = adam.step(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] = note: `-W clippy::let-unit-value` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::let_unit_value)]` [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 39 - let _ = adam.step(); [INFO] [stdout] 39 + adam.step(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> benches/optimizer_benchmark.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let _ = sgd.step(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 58 - let _ = sgd.step(); [INFO] [stdout] 58 + sgd.step(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/advanced_performance_profiler.rs:413:10 [INFO] [stdout] | [INFO] [stdout] 413 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/advanced_performance_profiler.rs:424:14 [INFO] [stdout] | [INFO] [stdout] 424 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/memory_optimization_analyzer.rs:100:10 [INFO] [stdout] | [INFO] [stdout] 100 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> benches/optimizer_benchmark.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let _ = adamw.step(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 77 - let _ = adamw.step(); [INFO] [stdout] 77 + adamw.step(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> benches/optimizer_benchmark.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let _ = bge_adam.step(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 104 - let _ = bge_adam.step(); [INFO] [stdout] 104 + bge_adam.step(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> benches/optimizer_benchmark.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | let _ = hn_adam.step(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 129 - let _ = hn_adam.step(); [INFO] [stdout] 129 + hn_adam.step(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/hyperparameter_optimization_demo.rs:174:39 [INFO] [stdout] | [INFO] [stdout] 174 | fn demo_comparative_optimization() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/memory_optimization_analyzer.rs:150:10 [INFO] [stdout] | [INFO] [stdout] 150 | ) -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> examples/memory_optimization_analyzer.rs:156:63 [INFO] [stdout] | [INFO] [stdout] 156 | let optimizer_memory = self.estimate_optimizer_memory(¶ms); [INFO] [stdout] | ^^^^^^^ help: change this to: `params` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `-W clippy::needless-borrow` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::needless_borrow)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/memory_optimization_analyzer.rs:182:10 [INFO] [stdout] | [INFO] [stdout] 182 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/hyperparameter_optimization_demo.rs:266:41 [INFO] [stdout] | [INFO] [stdout] 266 | fn demo_task_specific_optimization() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/hyperparameter_optimization_demo.rs:348:43 [INFO] [stdout] | [INFO] [stdout] 348 | fn demo_advanced_custom_optimization() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> examples/memory_optimization_analyzer.rs:386:17 [INFO] [stdout] | [INFO] [stdout] 386 | / ... if efficiency_score < 0.7 { [INFO] [stdout] 387 | | ... recommendations.push("💡 For Adam/AdamW: Consider using 8-bit optimizers (Adam8bit) for memory savings.".to_string()); [INFO] [stdout] 388 | | ... } [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `-W clippy::collapsible-match` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::collapsible_match)]` [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 385 ~ "Adam" | "AdamW" [INFO] [stdout] 386 ~ if efficiency_score < 0.7 => { [INFO] [stdout] 387 | recommendations.push("💡 For Adam/AdamW: Consider using 8-bit optimizers (Adam8bit) for memory savings.".to_string()); [INFO] [stdout] 388 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> src/fusion.rs:789:9 [INFO] [stdout] | [INFO] [stdout] 789 | config.batch_size = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `fusion::FusionConfig { batch_size: 2, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> src/fusion.rs:788:9 [INFO] [stdout] | [INFO] [stdout] 788 | let mut config = FusionConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/memory_optimization_analyzer.rs:538:14 [INFO] [stdout] | [INFO] [stdout] 538 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/optimizer_visualization_tools.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/optimizer_visualization_tools.rs:27:47 [INFO] [stdout] | [INFO] [stdout] 27 | fn generate_performance_comparison_chart() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/optimizer_visualization_tools.rs:139:39 [INFO] [stdout] | [INFO] [stdout] 139 | fn generate_convergence_analysis() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/distributed_training_test.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | fn main() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `-W clippy::result-large-err` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::result_large_err)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> examples/optimizer_visualization_tools.rs:194:36 [INFO] [stdout] | [INFO] [stdout] 194 | let marker = if i == 0 { "●" } else { "●" }; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> examples/optimizer_visualization_tools.rs:194:49 [INFO] [stdout] | [INFO] [stdout] 194 | let marker = if i == 0 { "●" } else { "●" }; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] = note: `-W clippy::if-same-then-else` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::if_same_then_else)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/optimizer_visualization_tools.rs:221:37 [INFO] [stdout] | [INFO] [stdout] 221 | fn generate_memory_usage_chart() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/distributed_training_test.rs:25:35 [INFO] [stdout] | [INFO] [stdout] 25 | fn test_gradient_compression() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/optimizer_visualization_tools.rs:281:35 [INFO] [stdout] | [INFO] [stdout] 281 | fn generate_scaling_analysis() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/optimizer_visualization_tools.rs:337:36 [INFO] [stdout] | [INFO] [stdout] 337 | fn generate_optimizer_heatmap() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/distributed_training_test.rs:104:39 [INFO] [stdout] | [INFO] [stdout] 104 | fn test_hierarchical_aggregation() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to use `.enumerate()` and immediately discard the index [INFO] [stdout] --> examples/optimizer_visualization_tools.rs:377:47 [INFO] [stdout] | [INFO] [stdout] 377 | for (_j, &rating) in ratings[i].iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_enumerate_index [INFO] [stdout] = note: `-W clippy::unused-enumerate-index` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::unused_enumerate_index)]` [INFO] [stdout] help: remove the `.enumerate()` call [INFO] [stdout] | [INFO] [stdout] 377 - for (_j, &rating) in ratings[i].iter().enumerate() { [INFO] [stdout] 377 + for &rating in ratings[i].iter() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> examples/optimizer_visualization_tools.rs:342:21 [INFO] [stdout] | [INFO] [stdout] 342 | let scenarios = vec![ [INFO] [stdout] | _____________________^ [INFO] [stdout] 343 | | ("Small Model", "1M params"), [INFO] [stdout] 344 | | ("Medium Model", "100M params"), [INFO] [stdout] 345 | | ("Large Model", "1B+ params"), [INFO] [stdout] ... | [INFO] [stdout] 348 | | ("Memory Limited", "8GB GPU"), [INFO] [stdout] 349 | | ]; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `-W clippy::useless-vec` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::useless_vec)]` [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 342 ~ let scenarios = [("Small Model", "1M params"), [INFO] [stdout] 343 + ("Medium Model", "100M params"), [INFO] [stdout] 344 + ("Large Model", "1B+ params"), [INFO] [stdout] 345 + ("Vision Task", "CNN training"), [INFO] [stdout] 346 + ("NLP Task", "Transformer"), [INFO] [stdout] 347 ~ ("Memory Limited", "8GB GPU")]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> examples/optimizer_visualization_tools.rs:366:19 [INFO] [stdout] | [INFO] [stdout] 366 | let ratings = vec![ [INFO] [stdout] | ___________________^ [INFO] [stdout] 367 | | vec!["██", "██", "▓▓", "▓▓", "░░", "▓▓"], // Small Model [INFO] [stdout] 368 | | vec!["██", "██", "▓▓", "██", "▓▓", "██"], // Medium Model [INFO] [stdout] 369 | | vec!["▓▓", "██", "░░", "██", "▓▓", "██"], // Large Model [INFO] [stdout] ... | [INFO] [stdout] 372 | | vec!["░░", "░░", "▓▓", "▓▓", "░░", "██"], // Memory Limited [INFO] [stdout] 373 | | ]; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 366 ~ let ratings = [vec!["██", "██", "▓▓", "▓▓", "░░", "▓▓"], // Small Model [INFO] [stdout] 367 ~ vec!["██", "██", "▓▓", "██", "▓▓", "██"], // Medium Model [INFO] [stdout] 368 ~ vec!["▓▓", "██", "░░", "██", "▓▓", "██"], // Large Model [INFO] [stdout] 369 ~ vec!["██", "██", "██", "▓▓", "▓▓", "▓▓"], // Vision Task [INFO] [stdout] 370 ~ vec!["██", "██", "▓▓", "██", "██", "▓▓"], // NLP Task [INFO] [stdout] 371 ~ vec!["░░", "░░", "▓▓", "▓▓", "░░", "██"]]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/distributed_training_test.rs:203:33 [INFO] [stdout] | [INFO] [stdout] 203 | fn test_federated_learning() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> examples/distributed_training_test.rs:274:29 [INFO] [stdout] | [INFO] [stdout] 274 | fn test_zero_optimizer() -> Result<(), TrustformersError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `trustformers_core::TrustformersError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> src/gradient_processing.rs:793:9 [INFO] [stdout] | [INFO] [stdout] 793 | config.enable_hessian_preconditioning = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `gradient_processing::GradientProcessingConfig { enable_hessian_preconditioning: true, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> src/gradient_processing.rs:792:9 [INFO] [stdout] | [INFO] [stdout] 792 | let mut config = GradientProcessingConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> src/gradient_processing.rs:802:9 [INFO] [stdout] | [INFO] [stdout] 802 | config.enable_hessian_preconditioning = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `gradient_processing::GradientProcessingConfig { enable_hessian_preconditioning: true, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> src/gradient_processing.rs:801:9 [INFO] [stdout] | [INFO] [stdout] 801 | let mut config = GradientProcessingConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/memory_layout.rs:655:13 [INFO] [stdout] | [INFO] [stdout] 655 | chunk_size_large % (config.vector_size / std::mem::size_of::()) == 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `chunk_size_large.is_multiple_of(config.vector_size / std::mem::size_of::())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> src/microadam.rs:808:9 [INFO] [stdout] | [INFO] [stdout] 808 | config.max_compression_error = 1.0; // Allow higher compression error for tests [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `microadam::MicroAdamConfig { max_compression_error: 1.0, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> src/microadam.rs:807:9 [INFO] [stdout] | [INFO] [stdout] 807 | let mut config = MicroAdamConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> src/microadam.rs:828:9 [INFO] [stdout] | [INFO] [stdout] 828 | config.max_compression_error = 1.0; // Allow higher compression error for tests [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `microadam::MicroAdamConfig { max_compression_error: 1.0, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> src/microadam.rs:827:9 [INFO] [stdout] | [INFO] [stdout] 827 | let mut config = MicroAdamConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field assignment outside of initializer for an instance created with Default::default() [INFO] [stdout] --> src/microadam.rs:880:9 [INFO] [stdout] | [INFO] [stdout] 880 | config.max_compression_error = 1.0; // Allow higher compression error for tests [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: consider initializing the variable with `microadam::MicroAdamConfig { max_compression_error: 1.0, ..Default::default() }` and removing relevant reassignments [INFO] [stdout] --> src/microadam.rs:879:9 [INFO] [stdout] | [INFO] [stdout] 879 | let mut config = MicroAdamConfig::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/monitoring.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | self.metrics.step % self.config.log_frequency == 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `self.metrics.step.is_multiple_of(self.config.log_frequency)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/monitoring.rs:757:16 [INFO] [stdout] | [INFO] [stdout] 757 | && self.step_count % self.config.analysis_frequency == 0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `self.step_count.is_multiple_of(self.config.analysis_frequency)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/muon.rs:400:34 [INFO] [stdout] | [INFO] [stdout] 400 | if candidate1 > 0 && size % candidate1 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `size.is_multiple_of(candidate1)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/muon.rs:407:34 [INFO] [stdout] | [INFO] [stdout] 407 | if candidate2 > 0 && size % candidate2 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `size.is_multiple_of(candidate2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/performance_validation.rs:1110:13 [INFO] [stdout] | [INFO] [stdout] 1110 | sorted_optimizers.sort_by(|a, b| a.1.avg_step_time.cmp(&b.1.avg_step_time)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] = note: `-W clippy::unnecessary-sort-by` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::unnecessary_sort_by)]` [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 1110 - sorted_optimizers.sort_by(|a, b| a.1.avg_step_time.cmp(&b.1.avg_step_time)); [INFO] [stdout] 1110 + sorted_optimizers.sort_by_key(|a| a.1.avg_step_time); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/quantized.rs:351:17 [INFO] [stdout] | [INFO] [stdout] 351 | assert!(mid_quantized >= -1 && mid_quantized <= 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(-1..=1).contains(&mid_quantized)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this binary expression can be simplified [INFO] [stdout] --> src/quantum_inspired.rs:648:17 [INFO] [stdout] | [INFO] [stdout] 648 | assert!(memory_stats.total_bytes > 0 || memory_stats.total_bytes == 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `memory_stats.total_bytes >= 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_comparisons [INFO] [stdout] = note: `-W clippy::double-comparisons` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::double_comparisons)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this binary expression can be simplified [INFO] [stdout] --> src/quantum_inspired.rs:649:17 [INFO] [stdout] | [INFO] [stdout] 649 | assert!(memory_stats.num_parameters > 0 || memory_stats.num_parameters == 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `memory_stats.num_parameters >= 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_comparisons [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/simd_optimizations.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | / pub unsafe fn adam_update_avx2( [INFO] [stdout] 82 | | &self, [INFO] [stdout] 83 | | params: &mut [f32], [INFO] [stdout] 84 | | gradients: &[f32], [INFO] [stdout] ... | [INFO] [stdout] 91 | | step: i32, [INFO] [stdout] 92 | | ) -> Result<()> { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] = note: `-W clippy::missing-safety-doc` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::missing_safety_doc)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/simd_optimizations.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | / pub unsafe fn adamw_update_avx2( [INFO] [stdout] 166 | | &self, [INFO] [stdout] 167 | | params: &mut [f32], [INFO] [stdout] 168 | | gradients: &[f32], [INFO] [stdout] ... | [INFO] [stdout] 176 | | step: i32, [INFO] [stdout] 177 | | ) -> Result<()> { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/simd_optimizations.rs:250:5 [INFO] [stdout] | [INFO] [stdout] 250 | / pub unsafe fn sgd_momentum_update_avx2( [INFO] [stdout] 251 | | &self, [INFO] [stdout] 252 | | params: &mut [f32], [INFO] [stdout] 253 | | gradients: &[f32], [INFO] [stdout] ... | [INFO] [stdout] 258 | | nesterov: bool, [INFO] [stdout] 259 | | ) -> Result<()> { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/simd_optimizations.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 321 | pub unsafe fn clip_gradients_avx2(&self, gradients: &mut [f32], max_norm: f32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/simd_optimizations.rs:373:5 [INFO] [stdout] | [INFO] [stdout] 373 | pub unsafe fn vector_add_avx2(&self, a: &mut [f32], b: &[f32], scale: f32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/simd_optimizations.rs:401:5 [INFO] [stdout] | [INFO] [stdout] 401 | pub unsafe fn dot_product_avx2(&self, a: &[f32], b: &[f32]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/sophia.rs:257:44 [INFO] [stdout] | [INFO] [stdout] 257 | self.state.step > 0 && self.state.step % self.config.hessian_update_freq == 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `self.state.step.is_multiple_of(self.config.hessian_update_freq)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/sophia.rs:609:17 [INFO] [stdout] | [INFO] [stdout] 609 | assert!(!((0 + 1) % 5 == 0)); // Step 0 -> 1: no update [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try: `((0 + 1) % 5 != 0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `-W clippy::nonminimal-bool` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::nonminimal_bool)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `true` [INFO] [stdout] --> src/sophia.rs:609:9 [INFO] [stdout] | [INFO] [stdout] 609 | assert!(!((0 + 1) % 5 == 0)); // Step 0 -> 1: no update [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove the assertion [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this operation has no effect [INFO] [stdout] --> src/sophia.rs:609:19 [INFO] [stdout] | [INFO] [stdout] 609 | assert!(!((0 + 1) % 5 == 0)); // Step 0 -> 1: no update [INFO] [stdout] | ^^^^^^^^^^^ help: consider reducing it to: `(0 + 1)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stdout] = note: `-W clippy::identity-op` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::identity_op)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this operation has no effect [INFO] [stdout] --> src/sophia.rs:609:19 [INFO] [stdout] | [INFO] [stdout] 609 | assert!(!((0 + 1) % 5 == 0)); // Step 0 -> 1: no update [INFO] [stdout] | ^^^^^^^ help: consider reducing it to: `1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `true` [INFO] [stdout] --> src/sophia.rs:610:9 [INFO] [stdout] | [INFO] [stdout] 610 | assert!((4 + 1) % 5 == 0); // Step 4 -> 5: update (5 % 5 == 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove the assertion [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `true` [INFO] [stdout] --> src/sophia.rs:611:9 [INFO] [stdout] | [INFO] [stdout] 611 | assert!((5 % 5 == 0)); // Step 5: update [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove the assertion [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `true` [INFO] [stdout] --> src/sophia.rs:612:9 [INFO] [stdout] | [INFO] [stdout] 612 | assert!((10 % 5 == 0)); // Step 10: update [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove the assertion [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/sparse.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | if self.current_step % self.config.cleanup_frequency == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `self.current_step.is_multiple_of(self.config.cleanup_frequency)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `true` [INFO] [stdout] --> src/traits.rs:452:46 [INFO] [stdout] | [INFO] [stdout] 452 | StalenessCompensation::Linear => assert!(true), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove the assertion [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/traits.rs:453:18 [INFO] [stdout] | [INFO] [stdout] 453 | _ => assert!(false), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this operation has no effect [INFO] [stdout] --> src/traits.rs:478:31 [INFO] [stdout] | [INFO] [stdout] 478 | optimizer_memory: 1 * 1024 * 1024 * 1024, // 1 GB [INFO] [stdout] | ^^^^^^^^ help: consider reducing it to: `1024` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to use `.enumerate()` and immediately discard the index [INFO] [stdout] --> src/tests.rs:54:58 [INFO] [stdout] | [INFO] [stdout] 54 | for (_param_idx, &size) in param_sizes.iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_enumerate_index [INFO] [stdout] = note: `-W clippy::unused-enumerate-index` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::unused_enumerate_index)]` [INFO] [stdout] help: remove the `.enumerate()` call [INFO] [stdout] | [INFO] [stdout] 54 - for (_param_idx, &size) in param_sizes.iter().enumerate() { [INFO] [stdout] 54 + for &size in param_sizes.iter() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lion.rs:434:25 [INFO] [stdout] | [INFO] [stdout] 434 | let gradients = vec![2.0, -3.0, 1.5]; // Norm = sqrt(4 + 9 + 2.25) = ~3.91 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[2.0, -3.0, 1.5]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `-W clippy::useless-vec` implied by `-W clippy::all` [INFO] [stdout] = help: to override `-W clippy::all` add `#[allow(clippy::useless_vec)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lion.rs:454:25 [INFO] [stdout] | [INFO] [stdout] 454 | let gradients = vec![2.0, -3.0, 1.5]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[2.0, -3.0, 1.5]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/performance_validation.rs:1650:26 [INFO] [stdout] | [INFO] [stdout] 1650 | let test_cases = vec![MathematicalTestCase { [INFO] [stdout] | __________________________^ [INFO] [stdout] 1651 | | name: "Test Case".to_string(), [INFO] [stdout] 1652 | | description: "Test Description".to_string(), [INFO] [stdout] 1653 | | parameters: HashMap::new(), [INFO] [stdout] ... | [INFO] [stdout] 1656 | | tolerance: 1e-6, [INFO] [stdout] 1657 | | }]; [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 1650 ~ let test_cases = [MathematicalTestCase { [INFO] [stdout] 1651 + name: "Test Case".to_string(), [INFO] [stdout] 1652 + description: "Test Description".to_string(), [INFO] [stdout] 1653 + parameters: HashMap::new(), [INFO] [stdout] 1654 + gradients: HashMap::new(), [INFO] [stdout] 1655 + expected_properties: vec![MathematicalProperty::Convergence], [INFO] [stdout] 1656 + tolerance: 1e-6, [INFO] [stdout] 1657 ~ }]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/tests.rs:363:27 [INFO] [stdout] | [INFO] [stdout] 363 | let param_sizes = vec![1000, 1500, 2000, 1200, 1800]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[1000, 1500, 2000, 1200, 1800]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 23s [INFO] running `Command { std: "docker" "inspect" "c5587e10b66d4ad90be0ef639b39e5154d4b7ec622a6b16dbee27bf8dafe4057", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5587e10b66d4ad90be0ef639b39e5154d4b7ec622a6b16dbee27bf8dafe4057", kill_on_drop: false }` [INFO] [stdout] c5587e10b66d4ad90be0ef639b39e5154d4b7ec622a6b16dbee27bf8dafe4057