[INFO] cloning repository https://github.com/ashishk15678/gpt-2-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ashishk15678/gpt-2-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fashishk15678%2Fgpt-2-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fashishk15678%2Fgpt-2-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 28639c3e9de24a6fc8db505306f997da2ffb4ae3 [INFO] checking ashishk15678/gpt-2-rs against master#ca77504943887037504c7fc0b9bf06dab3910373 for pr-145181 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fashishk15678%2Fgpt-2-rs" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ashishk15678/gpt-2-rs [INFO] finished tweaking git repo https://github.com/ashishk15678/gpt-2-rs [INFO] tweaked toml for git repo https://github.com/ashishk15678/gpt-2-rs written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ashishk15678/gpt-2-rs on toolchain ca77504943887037504c7fc0b9bf06dab3910373 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ca77504943887037504c7fc0b9bf06dab3910373" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ashishk15678/gpt-2-rs 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" "+ca77504943887037504c7fc0b9bf06dab3910373" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+ca77504943887037504c7fc0b9bf06dab3910373" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 86f6f4bae4aed2d0b63dd1cb206c697d71190601fdaa0f6de1dbb378acd304a1 [INFO] running `Command { std: "docker" "start" "-a" "86f6f4bae4aed2d0b63dd1cb206c697d71190601fdaa0f6de1dbb378acd304a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "86f6f4bae4aed2d0b63dd1cb206c697d71190601fdaa0f6de1dbb378acd304a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86f6f4bae4aed2d0b63dd1cb206c697d71190601fdaa0f6de1dbb378acd304a1", kill_on_drop: false }` [INFO] [stdout] 86f6f4bae4aed2d0b63dd1cb206c697d71190601fdaa0f6de1dbb378acd304a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+ca77504943887037504c7fc0b9bf06dab3910373" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 86ee0b0273552f94e972a8e99672a8f8689413b8bd60920aa3751f2b01b8b29a [INFO] running `Command { std: "docker" "start" "-a" "86ee0b0273552f94e972a8e99672a8f8689413b8bd60920aa3751f2b01b8b29a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling serde v1.0.206 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling syn v2.0.74 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking ndarray v0.16.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.206 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking gpt2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod lib; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Tensor` [INFO] [stdout] --> src/Graph/mod.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tensor::{Tensor, TensorError}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `helper::*` [INFO] [stdout] --> src/tensor/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use helper::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::*` [INFO] [stdout] --> src/tensor/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use ops::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod lib; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Tensor` [INFO] [stdout] --> src/Graph/mod.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tensor::{Tensor, TensorError}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `helper::*` [INFO] [stdout] --> src/tensor/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use helper::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::*` [INFO] [stdout] --> src/tensor/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use ops::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/tensor/mod.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | for i in 0..row { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/tensor/mod.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | for j in 0..col { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let data = fs::read_to_string("dataset.txt").expect("Not able to read dataset"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch_size` [INFO] [stdout] --> src/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let batch_size = 64; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_batch_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_tokens` [INFO] [stdout] --> src/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let num_tokens = 128; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vocab_size` [INFO] [stdout] --> src/main.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let vocab_size = d.blob.len(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vocab_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_layers` [INFO] [stdout] --> src/main.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let num_layers = 8; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head_size` [INFO] [stdout] --> src/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let head_size = embedding_degree / nums_heads; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_head_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Graph` is never used [INFO] [stdout] --> src/Graph/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Graph { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GraphError` is never used [INFO] [stdout] --> src/Graph/mod.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum GraphError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TrainingState` is never constructed [INFO] [stdout] --> src/gpt/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct TrainingState { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GeneralTensor` is never used [INFO] [stdout] --> src/tensor/mod.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum GeneralTensor { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `randomTensor` is never used [INFO] [stdout] --> src/tensor/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn randomTensor(row: usize, col: usize) -> Tensor { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `size`, `shape`, `as_float`, `as_usize`, `as_float_mut`, and `as_usize_mut` are never used [INFO] [stdout] --> src/tensor/mod.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl GeneralTensor { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 46 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn shape(&self) -> &[usize] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn as_float(&self) -> Result<&Tensor, TensorError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn as_usize(&self) -> Result<&Tensor, TensorError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn as_float_mut(&mut self) -> Result<&mut Tensor, TensorError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn as_usize_mut(&mut self) -> Result<&mut Tensor, TensorError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TensorMutOps` is never used [INFO] [stdout] --> src/tensor/mod.rs:132:11 [INFO] [stdout] | [INFO] [stdout] 132 | pub trait TensorMutOps: TensorOps { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `map_values`, `scalar`, and `transpose` are never used [INFO] [stdout] --> src/tensor/mod.rs:190:8 [INFO] [stdout] | [INFO] [stdout] 165 | pub trait TensorOps: Sized + Into> + Send + Sync { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 190 | fn map_values W + Sync + Send>(&self, f: F) -> Tensor { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 222 | fn scalar(&self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | fn transpose(&self) -> Result, TensorError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Graph` should have a snake case name [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod Graph; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `graph` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `randomTensor` should have a snake case name [INFO] [stdout] --> src/tensor/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn randomTensor(row: usize, col: usize) -> Tensor { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `random_tensor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/mod.rs:146:16 [INFO] [stdout] | [INFO] [stdout] 146 | fn get_mut(&mut self, ind: usize) -> Result, TensorError> { [INFO] [stdout] | ^^^^^^^^^ ---------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 146 | fn get_mut(&mut self, ind: usize) -> Result, TensorError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/mod.rs:171:19 [INFO] [stdout] | [INFO] [stdout] 171 | fn keep_right(&self, dims: usize) -> Result, TensorError> { [INFO] [stdout] | ^^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 171 | fn keep_right(&self, dims: usize) -> Result, TensorError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/mod.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | fn view(&self) -> TensorView { [INFO] [stdout] | ^^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 243 | fn view(&self) -> TensorView<'_, V> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/mod.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 251 | fn get(&self, ind: usize) -> Result, TensorError> { [INFO] [stdout] | ^^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 251 | fn get(&self, ind: usize) -> Result, TensorError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/tensor/mod.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | for i in 0..row { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/tensor/mod.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | for j in 0..col { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let data = fs::read_to_string("dataset.txt").expect("Not able to read dataset"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch_size` [INFO] [stdout] --> src/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let batch_size = 64; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_batch_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_tokens` [INFO] [stdout] --> src/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let num_tokens = 128; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vocab_size` [INFO] [stdout] --> src/main.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let vocab_size = d.blob.len(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vocab_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_layers` [INFO] [stdout] --> src/main.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let num_layers = 8; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head_size` [INFO] [stdout] --> src/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let head_size = embedding_degree / nums_heads; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_head_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Graph` is never used [INFO] [stdout] --> src/Graph/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Graph { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GraphError` is never used [INFO] [stdout] --> src/Graph/mod.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum GraphError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TrainingState` is never constructed [INFO] [stdout] --> src/gpt/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct TrainingState { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GeneralTensor` is never used [INFO] [stdout] --> src/tensor/mod.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum GeneralTensor { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `randomTensor` is never used [INFO] [stdout] --> src/tensor/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn randomTensor(row: usize, col: usize) -> Tensor { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `size`, `shape`, `as_float`, `as_usize`, `as_float_mut`, and `as_usize_mut` are never used [INFO] [stdout] --> src/tensor/mod.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl GeneralTensor { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 46 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn shape(&self) -> &[usize] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn as_float(&self) -> Result<&Tensor, TensorError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn as_usize(&self) -> Result<&Tensor, TensorError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn as_float_mut(&mut self) -> Result<&mut Tensor, TensorError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn as_usize_mut(&mut self) -> Result<&mut Tensor, TensorError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TensorMutOps` is never used [INFO] [stdout] --> src/tensor/mod.rs:132:11 [INFO] [stdout] | [INFO] [stdout] 132 | pub trait TensorMutOps: TensorOps { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `map_values`, `scalar`, and `transpose` are never used [INFO] [stdout] --> src/tensor/mod.rs:190:8 [INFO] [stdout] | [INFO] [stdout] 165 | pub trait TensorOps: Sized + Into> + Send + Sync { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 190 | fn map_values W + Sync + Send>(&self, f: F) -> Tensor { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 222 | fn scalar(&self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | fn transpose(&self) -> Result, TensorError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Graph` should have a snake case name [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod Graph; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `graph` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `randomTensor` should have a snake case name [INFO] [stdout] --> src/tensor/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn randomTensor(row: usize, col: usize) -> Tensor { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `random_tensor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/mod.rs:146:16 [INFO] [stdout] | [INFO] [stdout] 146 | fn get_mut(&mut self, ind: usize) -> Result, TensorError> { [INFO] [stdout] | ^^^^^^^^^ ---------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 146 | fn get_mut(&mut self, ind: usize) -> Result, TensorError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/mod.rs:171:19 [INFO] [stdout] | [INFO] [stdout] 171 | fn keep_right(&self, dims: usize) -> Result, TensorError> { [INFO] [stdout] | ^^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 171 | fn keep_right(&self, dims: usize) -> Result, TensorError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/mod.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | fn view(&self) -> TensorView { [INFO] [stdout] | ^^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 243 | fn view(&self) -> TensorView<'_, V> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tensor/mod.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 251 | fn get(&self, ind: usize) -> Result, TensorError> { [INFO] [stdout] | ^^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 251 | fn get(&self, ind: usize) -> Result, TensorError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.50s [INFO] running `Command { std: "docker" "inspect" "86ee0b0273552f94e972a8e99672a8f8689413b8bd60920aa3751f2b01b8b29a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86ee0b0273552f94e972a8e99672a8f8689413b8bd60920aa3751f2b01b8b29a", kill_on_drop: false }` [INFO] [stdout] 86ee0b0273552f94e972a8e99672a8f8689413b8bd60920aa3751f2b01b8b29a