[INFO] cloning repository https://github.com/TuckerBMorgan/hermes [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TuckerBMorgan/hermes" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTuckerBMorgan%2Fhermes", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTuckerBMorgan%2Fhermes'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a467bf3edfd9b9d6a7b7c434a2e463b2c6312fce [INFO] checking TuckerBMorgan/hermes against master#336209eef13882bd1e211b24779584cb7ef911eb for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTuckerBMorgan%2Fhermes" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TuckerBMorgan/hermes on toolchain 336209eef13882bd1e211b24779584cb7ef911eb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+336209eef13882bd1e211b24779584cb7ef911eb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/TuckerBMorgan/hermes [INFO] finished tweaking git repo https://github.com/TuckerBMorgan/hermes [INFO] tweaked toml for git repo https://github.com/TuckerBMorgan/hermes written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/TuckerBMorgan/hermes 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" "+336209eef13882bd1e211b24779584cb7ef911eb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded monostate v0.1.13 [INFO] [stderr] Downloaded monostate-impl v0.1.13 [INFO] [stderr] Downloaded synstructure v0.13.0 [INFO] [stderr] Downloaded simplelog v0.11.2 [INFO] [stderr] Downloaded tokenizers v0.20.3 [INFO] [stderr] Downloaded webpki-roots v0.26.0 [INFO] [stderr] Downloaded metal v0.30.0 [INFO] [stderr] Downloaded cudarc v0.11.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+336209eef13882bd1e211b24779584cb7ef911eb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f3eb14052a5758307a993c6dbe1fbdffeef14615d82401792ef80d4399e3d531 [INFO] running `Command { std: "docker" "start" "-a" "f3eb14052a5758307a993c6dbe1fbdffeef14615d82401792ef80d4399e3d531", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f3eb14052a5758307a993c6dbe1fbdffeef14615d82401792ef80d4399e3d531", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3eb14052a5758307a993c6dbe1fbdffeef14615d82401792ef80d4399e3d531", kill_on_drop: false }` [INFO] [stdout] f3eb14052a5758307a993c6dbe1fbdffeef14615d82401792ef80d4399e3d531 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+336209eef13882bd1e211b24779584cb7ef911eb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 81ed65932ffb67f96a7cd240a8f953835e8eec0d065763d675435fb752c831fd [INFO] running `Command { std: "docker" "start" "-a" "81ed65932ffb67f96a7cd240a8f953835e8eec0d065763d675435fb752c831fd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.82 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Checking litemap v0.7.3 [INFO] [stderr] Checking writeable v0.5.5 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling serde v1.0.201 [INFO] [stderr] Checking icu_properties_data v1.5.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking write16 v1.0.0 [INFO] [stderr] Checking icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Checking utf16_iter v1.0.5 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling cc v1.1.18 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking rustls-pki-types v1.10.0 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling portable-atomic v1.9.0 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling thiserror v1.0.65 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking option-ext v0.2.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking webpki-roots v0.26.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking unicode-width v0.2.0 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Compiling macro_rules_attribute-proc_macro v0.2.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling syn v2.0.61 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking unicode-normalization-alignments v0.1.12 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking unicode_categories v0.1.1 [INFO] [stderr] Checking num-complex v0.4.5 [INFO] [stderr] Checking indicatif v0.17.9 [INFO] [stderr] Checking macro_rules_attribute v0.2.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling onig_sys v69.8.1 [INFO] [stderr] Compiling esaxx-rs v0.1.10 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking simplelog v0.11.2 [INFO] [stderr] Checking rayon-cond v0.3.0 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling synstructure v0.13.0 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling zerofrom-derive v0.1.4 [INFO] [stderr] Compiling yoke-derive v0.7.4 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.4 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling serde_derive v1.0.201 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.65 [INFO] [stderr] Compiling monostate-impl v0.1.13 [INFO] [stderr] Checking zerofrom v0.1.4 [INFO] [stderr] Checking yoke v0.7.4 [INFO] [stderr] Checking onig v6.4.0 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Checking rustls-webpki v0.102.8 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Checking derive_builder v0.20.2 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking monostate v0.1.13 [INFO] [stderr] Checking spm_precompiled v0.1.4 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.3 [INFO] [stderr] Checking ureq v2.9.7 [INFO] [stderr] Checking hf-hub v0.3.2 [INFO] [stderr] Checking tokenizers v0.20.3 [INFO] [stderr] Checking poro v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ndarray::prelude::*` [INFO] [stdout] --> src/central/add_op.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use ndarray::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> src/central/tensor.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{Read, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/central/tensor.rs:224:92 [INFO] [stdout] | [INFO] [stdout] 224 | .map(|chunk| i32::from_le_bytes(chunk.try_into().unwrap()) as usize).collect();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LinearLayerConfig` and `LinearLayer` [INFO] [stdout] --> src/nn/layers/linear.rs:52:37 [INFO] [stdout] | [INFO] [stdout] 52 | use crate::nn::layers::linear::{LinearLayer, LinearLayerConfig}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::nn::layers::module::Module` [INFO] [stdout] --> src/nn/layers/linear.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | use crate::nn::layers::module::Module; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::central::Tensor` [INFO] [stdout] --> src/nn/layers/linear.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | use crate::central::Tensor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Shape` [INFO] [stdout] --> src/nn/layers/linear.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | use crate::Shape; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::nn::layers::linear` [INFO] [stdout] --> src/nn/layers/mlp.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | use crate::nn::layers::linear; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::nn::layers::mlp::MLP` [INFO] [stdout] --> src/nn/layers/mlp.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | use crate::nn::layers::mlp::MLP; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::nn::layers::module::Module` [INFO] [stdout] --> src/nn/layers/mlp.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | use crate::nn::layers::module::Module; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::central::Tensor` [INFO] [stdout] --> src/nn/layers/mlp.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | use crate::central::Tensor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Shape` [INFO] [stdout] --> src/nn/layers/mlp.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | use crate::Shape; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::prelude::*` [INFO] [stdout] --> src/nn/layers/layer_norm.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | use ndarray::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::iter::Axes` [INFO] [stdout] --> src/nn/layers/layer_norm.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | use ndarray::iter::Axes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::Axis` [INFO] [stdout] --> src/nn/layers/layer_norm.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | use ndarray::Axis; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::central::Tensor` [INFO] [stdout] --> src/nn/layers/layer_norm.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | use crate::central::Tensor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::nn::layers::layer_norm::LayerNorm` [INFO] [stdout] --> src/nn/layers/layer_norm.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | use crate::nn::layers::layer_norm::LayerNorm; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::nn::layers::module::Module` [INFO] [stdout] --> src/nn/layers/layer_norm.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | use crate::nn::layers::module::Module; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec` [INFO] [stdout] --> src/nn/layers/casual_self_attention.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | use std::vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::nn::layers::linear::LinearLayerConfig` [INFO] [stdout] --> src/nn/layers/casual_self_attention.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | use crate::nn::layers::linear::LinearLayerConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::nn::layers::module::Module` [INFO] [stdout] --> src/nn/layers/casual_self_attention.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | use crate::nn::layers::module::Module; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::central::Tensor` [INFO] [stdout] --> src/nn/layers/casual_self_attention.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | use crate::central::Tensor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Shape` [INFO] [stdout] --> src/nn/layers/casual_self_attention.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | use crate::Shape; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> src/central/tensor.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{Read, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/central/tensor.rs:224:92 [INFO] [stdout] | [INFO] [stdout] 224 | .map(|chunk| i32::from_le_bytes(chunk.try_into().unwrap()) as usize).collect();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Shape` [INFO] [stdout] --> src/nn/layers/linear.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | use crate::Shape; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::nn::layers::linear` [INFO] [stdout] --> src/nn/layers/mlp.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | use crate::nn::layers::linear; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Shape` [INFO] [stdout] --> src/nn/layers/mlp.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | use crate::Shape; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::iter::Axes` [INFO] [stdout] --> src/nn/layers/layer_norm.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | use ndarray::iter::Axes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::Axis` [INFO] [stdout] --> src/nn/layers/layer_norm.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | use ndarray::Axis; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::nn::layers::linear::LinearLayerConfig` [INFO] [stdout] --> src/nn/layers/casual_self_attention.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | use crate::nn::layers::linear::LinearLayerConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::central::Tensor` [INFO] [stdout] --> src/nn/layers/casual_self_attention.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | use crate::central::Tensor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Shape` [INFO] [stdout] --> src/nn/layers/casual_self_attention.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | use crate::Shape; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/central/tensor.rs:477:9 [INFO] [stdout] | [INFO] [stdout] 470 | / return Tensor { [INFO] [stdout] 471 | | tensor_id, [INFO] [stdout] 472 | | shape: Shape::new(new_shape_indices_vec), [INFO] [stdout] 473 | | operation: Operation::Mean(self.tensor_id), [INFO] [stdout] 474 | | name: ['a'; NAME_LENGTH], [INFO] [stdout] 475 | | }; [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 476 | [INFO] [stdout] 477 | / if axes.len() == 1 { [INFO] [stdout] 478 | | [INFO] [stdout] 479 | | let item = self.item(); [INFO] [stdout] 480 | | let mean = item.mean_axis(Axis(axes[0])).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 503 | | }; [INFO] [stdout] 504 | | } [INFO] [stdout] | |_________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/nn/layers/layer_norm.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 46 | panic!("-0-00-0-0"); [INFO] [stdout] | ------------------- any code following this expression is unreachable [INFO] [stdout] 47 | [INFO] [stdout] 48 | let std_inv = (var + 1e-05).pow(0.5); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grad_update` [INFO] [stdout] --> src/central/equation.rs:756:21 [INFO] [stdout] | [INFO] [stdout] 756 | let grad_update = source_grad.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grad_update` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/central/tensor.rs:477:9 [INFO] [stdout] | [INFO] [stdout] 470 | / return Tensor { [INFO] [stdout] 471 | | tensor_id, [INFO] [stdout] 472 | | shape: Shape::new(new_shape_indices_vec), [INFO] [stdout] 473 | | operation: Operation::Mean(self.tensor_id), [INFO] [stdout] 474 | | name: ['a'; NAME_LENGTH], [INFO] [stdout] 475 | | }; [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 476 | [INFO] [stdout] 477 | / if axes.len() == 1 { [INFO] [stdout] 478 | | [INFO] [stdout] 479 | | let item = self.item(); [INFO] [stdout] 480 | | let mean = item.mean_axis(Axis(axes[0])).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 503 | | }; [INFO] [stdout] 504 | | } [INFO] [stdout] | |_________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/nn/layers/layer_norm.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 46 | panic!("-0-00-0-0"); [INFO] [stdout] | ------------------- any code following this expression is unreachable [INFO] [stdout] 47 | [INFO] [stdout] 48 | let std_inv = (var + 1e-05).pow(0.5); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/central/tensor.rs:507:17 [INFO] [stdout] | [INFO] [stdout] 507 | let sum = item.sum_axis(Axis(axes[0])).sum_axis(Axis(axes[1])); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_shape` [INFO] [stdout] --> src/nn/layers/layer_norm.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let x_shape = x.shape; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_x_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/nn/layers/layer_norm.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | for i in 0..self.length_of_normalized_shape { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/nn/layers/layer_norm.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut mean_indices = vec![2]; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_time` is never used [INFO] [stdout] --> src/central/equation.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl Equation { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 201 | fn add_time(&mut self, operation: &str, now: Instant) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `transpose_inside` is never used [INFO] [stdout] --> src/central/tensor.rs:685:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Tensor { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 685 | fn transpose_inside(matrix: Vec, rows: usize, cols: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vocab_size` is never read [INFO] [stdout] --> src/nn/layers/embedding.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Embedding { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 6 | pub tensor: Tensor, [INFO] [stdout] 7 | vocab_size: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MLPConfig` is never constructed [INFO] [stdout] --> src/nn/layers/mlp.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct MLPConfig { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/nn/layers/mlp.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 33 | impl MLP { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 34 | fn new(config: MLPConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_f32_vector_to_file` is never used [INFO] [stdout] --> src/nn/layers/casual_self_attention.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn write_f32_vector_to_file(path: &str, data: &[f32]) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_string_vector_to_file` is never used [INFO] [stdout] --> src/nn/layers/casual_self_attention.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn write_string_vector_to_file(path: &str, data: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `M` should have a snake case name [INFO] [stdout] --> src/central/equation.rs:431:9 [INFO] [stdout] | [INFO] [stdout] 431 | let M = a_shape[a_shape.len() - 2]; [INFO] [stdout] | ^ help: convert the identifier to snake case: `m` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `K_a` should have a snake case name [INFO] [stdout] --> src/central/equation.rs:432:9 [INFO] [stdout] | [INFO] [stdout] 432 | let K_a = a_shape[a_shape.len() - 1]; [INFO] [stdout] | ^^^ help: convert the identifier to snake case (notice the capitalization): `k_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `K_b` should have a snake case name [INFO] [stdout] --> src/central/equation.rs:433:9 [INFO] [stdout] | [INFO] [stdout] 433 | let K_b = b_shape[b_shape.len() - 2]; [INFO] [stdout] | ^^^ help: convert the identifier to snake case (notice the capitalization): `k_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/central/equation.rs:434:9 [INFO] [stdout] | [INFO] [stdout] 434 | let N = b_shape[b_shape.len() - 1]; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> examples/3_modules_and_models.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 38 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 39 | [INFO] [stdout] 40 | let linear_layer_config = LinearLayerConfig::new(3, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grad_update` [INFO] [stdout] --> src/central/equation.rs:756:21 [INFO] [stdout] | [INFO] [stdout] 756 | let grad_update = source_grad.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grad_update` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_tensor` is never used [INFO] [stdout] --> examples/wavenet.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl EmbeddingLayer { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn from_tensor(weights: Tensor) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CasualSelfAttentionConfig` [INFO] [stdout] --> examples/transfomer_test.rs:4:107 [INFO] [stdout] | [INFO] [stdout] 4 | use poro::nn::{AttentionHead, Embedding, LinearLayer, Model, Module, MLP, LayerNorm, CasualSelfAttention, CasualSelfAttentionConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `poro::nn::layers::NewGLU` [INFO] [stdout] --> examples/transfomer_test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use poro::nn::layers::NewGLU; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Seek` [INFO] [stdout] --> examples/transfomer_test.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{Read, Seek}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result` and `Tokenizer` [INFO] [stdout] --> examples/transfomer_test.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | use tokenizers::tokenizer::{Result, Tokenizer}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_parameters` [INFO] [stdout] --> examples/transfomer_test.rs:396:12 [INFO] [stdout] | [INFO] [stdout] 396 | use poro::{update_parameters, Shape}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> examples/transfomer_test.rs:397:5 [INFO] [stdout] | [INFO] [stdout] 397 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/3_modules_and_models.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut tensor_from = Tensor::from_vec(vec![1.0, 2.0, 3.0, 4.0], vec![2, 2].into()); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/3_modules_and_models.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut bias = Tensor::from_vec(vec![0.0, 0.0], vec![2].into()); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/central/tensor.rs:507:17 [INFO] [stdout] | [INFO] [stdout] 507 | let sum = item.sum_axis(Axis(axes[0])).sum_axis(Axis(axes[1])); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> examples/transfomer_test.rs:543:5 [INFO] [stdout] | [INFO] [stdout] 542 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 543 | let mut iters = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `linear_layer` [INFO] [stdout] --> src/nn/layers/linear.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | let mut linear_layer = LinearLayer::new(config); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_linear_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/nn/layers/linear.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut linear_layer = LinearLayer::new(config); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_shape` [INFO] [stdout] --> src/nn/layers/layer_norm.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let x_shape = x.shape; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_x_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/nn/layers/layer_norm.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | for i in 0..self.length_of_normalized_shape { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/nn/layers/layer_norm.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut mean_indices = vec![2]; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `as_vec` [INFO] [stdout] --> examples/transfomer_test.rs:415:14 [INFO] [stdout] | [INFO] [stdout] 415 | let as_vec = read.read_to_end(&mut vec_buffer).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_as_vec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> examples/transfomer_test.rs:572:9 [INFO] [stdout] | [INFO] [stdout] 572 | let input = Tensor::randn(vec![1, 1, 1].into()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> examples/transfomer_test.rs:573:9 [INFO] [stdout] | [INFO] [stdout] 573 | let output = gpt.forward(&test_input); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gpt_config` [INFO] [stdout] --> examples/transfomer_test.rs:575:9 [INFO] [stdout] | [INFO] [stdout] 575 | let gpt_config = GPTConfig::from_bytestream(&mut std::fs::File::open("gpt2.bin").unwrap()); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gpt_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position_encoder` [INFO] [stdout] --> examples/transfomer_test.rs:579:13 [INFO] [stdout] | [INFO] [stdout] 579 | let mut position_encoder = PositionalEncoding::new(10, 10); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position_encoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `embeddings` [INFO] [stdout] --> examples/transfomer_test.rs:594:13 [INFO] [stdout] | [INFO] [stdout] 594 | let mut embeddings = Embedding::from_tensor(embeddings_weight); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_embeddings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_f32_vector_to_file` is never used [INFO] [stdout] --> examples/transfomer_test.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn write_f32_vector_to_file(path: &str, data: &[f32]) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_string_vector_to_file` is never used [INFO] [stdout] --> examples/transfomer_test.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn write_string_vector_to_file(path: &str, data: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `block_size`, `vocab_size`, `number_of_heads`, and `embedding_dim` are never read [INFO] [stdout] --> examples/transfomer_test.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 128 | struct GPTConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 129 | block_size: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 130 | vocab_size: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 131 | number_of_layers: usize, [INFO] [stdout] 132 | number_of_heads: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 133 | embedding_dim: usize [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_learning_rate` is never used [INFO] [stdout] --> examples/transfomer_test.rs:475:4 [INFO] [stdout] | [INFO] [stdout] 475 | fn get_learning_rate(iteration: usize) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_time` is never used [INFO] [stdout] --> src/central/equation.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl Equation { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 201 | fn add_time(&mut self, operation: &str, now: Instant) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `transpose_inside` is never used [INFO] [stdout] --> src/central/tensor.rs:685:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Tensor { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 685 | fn transpose_inside(matrix: Vec, rows: usize, cols: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vocab_size` is never read [INFO] [stdout] --> src/nn/layers/embedding.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Embedding { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 6 | pub tensor: Tensor, [INFO] [stdout] 7 | vocab_size: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MLPConfig` is never constructed [INFO] [stdout] --> src/nn/layers/mlp.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct MLPConfig { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/nn/layers/mlp.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 33 | impl MLP { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 34 | fn new(config: MLPConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_f32_vector_to_file` is never used [INFO] [stdout] --> src/nn/layers/casual_self_attention.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn write_f32_vector_to_file(path: &str, data: &[f32]) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_string_vector_to_file` is never used [INFO] [stdout] --> src/nn/layers/casual_self_attention.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn write_string_vector_to_file(path: &str, data: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `M` should have a snake case name [INFO] [stdout] --> src/central/equation.rs:431:9 [INFO] [stdout] | [INFO] [stdout] 431 | let M = a_shape[a_shape.len() - 2]; [INFO] [stdout] | ^ help: convert the identifier to snake case: `m` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `K_a` should have a snake case name [INFO] [stdout] --> src/central/equation.rs:432:9 [INFO] [stdout] | [INFO] [stdout] 432 | let K_a = a_shape[a_shape.len() - 1]; [INFO] [stdout] | ^^^ help: convert the identifier to snake case (notice the capitalization): `k_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `K_b` should have a snake case name [INFO] [stdout] --> src/central/equation.rs:433:9 [INFO] [stdout] | [INFO] [stdout] 433 | let K_b = b_shape[b_shape.len() - 2]; [INFO] [stdout] | ^^^ help: convert the identifier to snake case (notice the capitalization): `k_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/central/equation.rs:434:9 [INFO] [stdout] | [INFO] [stdout] 434 | let N = b_shape[b_shape.len() - 1]; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 40.45s [INFO] running `Command { std: "docker" "inspect" "81ed65932ffb67f96a7cd240a8f953835e8eec0d065763d675435fb752c831fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81ed65932ffb67f96a7cd240a8f953835e8eec0d065763d675435fb752c831fd", kill_on_drop: false }` [INFO] [stdout] 81ed65932ffb67f96a7cd240a8f953835e8eec0d065763d675435fb752c831fd