[INFO] cloning repository https://github.com/fabdendev/llm-cli [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fabdendev/llm-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffabdendev%2Fllm-cli", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffabdendev%2Fllm-cli'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e5314ef42ba463ed654cd47eaad6481ecfdbaac6 [INFO] checking fabdendev/llm-cli against master#61cc47e367d7be91e13bcd01e4e96e0e233d4f6d for 2025-12-16-next-solver-global [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffabdendev%2Fllm-cli" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/fabdendev/llm-cli [INFO] finished tweaking git repo https://github.com/fabdendev/llm-cli [INFO] tweaked toml for git repo https://github.com/fabdendev/llm-cli written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/fabdendev/llm-cli on toolchain 61cc47e367d7be91e13bcd01e4e96e0e233d4f6d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+61cc47e367d7be91e13bcd01e4e96e0e233d4f6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/fabdendev/llm-cli 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" "+61cc47e367d7be91e13bcd01e4e96e0e233d4f6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/huggingface/candle.git` [INFO] [stderr] Updating git submodule `https://github.com/NVIDIA/cutlass.git` [INFO] [stderr] Updating git repository `https://github.com/zackangelo/float8` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded onig v6.5.1 [INFO] [stderr] Downloaded monostate-impl v0.1.14 [INFO] [stderr] Downloaded rayon-cond v0.3.0 [INFO] [stderr] Downloaded find-msvc-tools v0.1.0 [INFO] [stderr] Downloaded monostate v0.1.14 [INFO] [stderr] Downloaded tokenizers v0.19.1 [INFO] [stderr] Downloaded cc v1.2.35 [INFO] [stderr] Downloaded onig_sys v69.9.1 [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+61cc47e367d7be91e13bcd01e4e96e0e233d4f6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3da1dcaf4d7b6aa825f0d7d98110c660469f3c2c8d75250dc834ed873f449c61 [INFO] running `Command { std: "docker" "start" "-a" "3da1dcaf4d7b6aa825f0d7d98110c660469f3c2c8d75250dc834ed873f449c61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3da1dcaf4d7b6aa825f0d7d98110c660469f3c2c8d75250dc834ed873f449c61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3da1dcaf4d7b6aa825f0d7d98110c660469f3c2c8d75250dc834ed873f449c61", kill_on_drop: false }` [INFO] [stdout] 3da1dcaf4d7b6aa825f0d7d98110c660469f3c2c8d75250dc834ed873f449c61 [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+61cc47e367d7be91e13bcd01e4e96e0e233d4f6d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fa00a672cc1e91827e2f24f3063796eca6bb839d7c4116f3532df6bcd40540e7 [INFO] running `Command { std: "docker" "start" "-a" "fa00a672cc1e91827e2f24f3063796eca6bb839d7c4116f3532df6bcd40540e7", kill_on_drop: false }` [INFO] [stderr] Compiling find-msvc-tools v0.1.0 [INFO] [stderr] Checking raw-cpuid v11.5.0 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Compiling bytemuck_derive v1.10.1 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking memmap2 v0.9.8 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Compiling cc v1.2.35 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Checking unicode-width v0.2.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking anstream v0.6.20 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Compiling monostate-impl v0.1.14 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Checking indicatif v0.17.11 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking rand_distr v0.5.1 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking clap_builder v4.5.47 [INFO] [stderr] Checking bytemuck v1.23.2 [INFO] [stderr] Checking rayon-cond v0.3.0 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking dyn-stack v0.13.0 [INFO] [stderr] Checking dyn-stack v0.10.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking half v2.6.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking unicode-normalization-alignments v0.1.12 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking jiff v0.2.15 [INFO] [stderr] Checking pulp v0.21.5 [INFO] [stderr] Checking pulp v0.18.22 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling onig_sys v69.9.1 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Compiling esaxx-rs v0.1.10 [INFO] [stderr] Checking float8 v0.2.1 (https://github.com/zackangelo/float8?branch=cudarc_0_16#03c1f5fe) [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking tempfile v3.21.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking serde_json v1.0.143 [INFO] [stderr] Checking gemm-common v0.17.1 [INFO] [stderr] Checking monostate v0.1.14 [INFO] [stderr] Checking regex v1.11.2 [INFO] [stderr] Checking fancy-regex v0.13.0 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Checking serde_plain v1.0.2 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking spm_precompiled v0.1.4 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Checking clap v4.5.47 [INFO] [stderr] Checking gemm-f32 v0.17.1 [INFO] [stderr] Checking gemm-c32 v0.17.1 [INFO] [stderr] Checking gemm-f64 v0.17.1 [INFO] [stderr] Checking gemm-c64 v0.17.1 [INFO] [stderr] Checking safetensors v0.4.5 [INFO] [stderr] Compiling num_enum_derive v0.7.4 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Checking gemm-f16 v0.17.1 [INFO] [stderr] Checking num_enum v0.7.4 [INFO] [stderr] Checking zip v1.1.4 [INFO] [stderr] Checking derive_builder v0.20.2 [INFO] [stderr] Checking gemm-common v0.18.2 [INFO] [stderr] Checking gemm v0.17.1 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking gemm-f32 v0.18.2 [INFO] [stderr] Checking gemm-c64 v0.18.2 [INFO] [stderr] Checking gemm-f64 v0.18.2 [INFO] [stderr] Checking gemm-c32 v0.18.2 [INFO] [stderr] Checking gemm-f16 v0.18.2 [INFO] [stderr] Checking gemm v0.18.2 [INFO] [stderr] Checking onig v6.5.1 [INFO] [stderr] Checking ug v0.4.0 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokenizers v0.19.1 [INFO] [stderr] Checking candle-core v0.9.1 (https://github.com/huggingface/candle.git#93845ed2) [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking hyper-util v0.1.16 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.23 [INFO] [stderr] Checking candle-nn v0.9.1 (https://github.com/huggingface/candle.git#93845ed2) [INFO] [stderr] Checking candle-transformers v0.9.1 (https://github.com/huggingface/candle.git#93845ed2) [INFO] [stderr] Checking llm-cli v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Tensor` [INFO] [stdout] --> src/inference.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use candle_core::{Device, Tensor}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candle_core::Device` [INFO] [stdout] --> src/gpt2.rs:427:9 [INFO] [stdout] | [INFO] [stdout] 427 | use candle_core::Device; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Tensor` [INFO] [stdout] --> src/inference.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use candle_core::{Device, Tensor}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/inference.rs:410:9 [INFO] [stdout] | [INFO] [stdout] 410 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | let mut engine = setup_inference_engine(model_path, model_config).await [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | let mut engine = setup_inference_engine(model_path, model_config).await [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_inference_with_model` is never used [INFO] [stdout] --> src/main.rs:253:10 [INFO] [stdout] | [INFO] [stdout] 253 | async fn simulate_inference_with_model( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `c_attn`, `c_proj`, `n_head`, and `n_embd` are never read [INFO] [stdout] --> src/gpt2.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct MultiHeadAttention { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 42 | c_attn: Linear, // Combined Q, K, V projection [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | c_proj: Linear, // Output projection [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 44 | n_head: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | n_embd: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MultiHeadAttention` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `forward` and `create_causal_mask` are never used [INFO] [stdout] --> src/gpt2.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl MultiHeadAttention { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn forward(&self, x: &Tensor, mask: Option<&Tensor>) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn create_causal_mask(&self, _seq_len: usize, _device: &Device) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `c_fc` and `c_proj` are never read [INFO] [stdout] --> src/gpt2.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct FeedForward { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 112 | c_fc: Linear, // First linear layer (expansion) [INFO] [stdout] | ^^^^ [INFO] [stdout] 113 | c_proj: Linear, // Second linear layer (projection) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FeedForward` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `forward` is never used [INFO] [stdout] --> src/gpt2.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 116 | impl FeedForward { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn forward(&self, x: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ln_1`, `attn`, `ln_2`, and `mlp` are never read [INFO] [stdout] --> src/gpt2.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 137 | pub struct TransformerBlock { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 138 | ln_1: candle_nn::LayerNorm, [INFO] [stdout] | ^^^^ [INFO] [stdout] 139 | attn: MultiHeadAttention, [INFO] [stdout] | ^^^^ [INFO] [stdout] 140 | ln_2: candle_nn::LayerNorm, [INFO] [stdout] | ^^^^ [INFO] [stdout] 141 | mlp: FeedForward, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransformerBlock` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `forward` is never used [INFO] [stdout] --> src/gpt2.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 144 | impl TransformerBlock { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn forward(&self, x: &Tensor, mask: Option<&Tensor>) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `wte`, `wpe`, `h`, `ln_f`, and `config` are never read [INFO] [stdout] --> src/gpt2.rs:175:5 [INFO] [stdout] | [INFO] [stdout] 174 | pub struct Gpt2Model { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 175 | wte: candle_nn::Embedding, // Token embeddings [INFO] [stdout] | ^^^ [INFO] [stdout] 176 | wpe: candle_nn::Embedding, // Position embeddings [INFO] [stdout] | ^^^ [INFO] [stdout] 177 | h: Vec, // Transformer blocks [INFO] [stdout] | ^ [INFO] [stdout] 178 | ln_f: candle_nn::LayerNorm, // Final layer norm [INFO] [stdout] | ^^^^ [INFO] [stdout] 179 | config: Gpt2Config, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Gpt2Model` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `forward` and `config` are never used [INFO] [stdout] --> src/gpt2.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 182 | impl Gpt2Model { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn forward(&self, input_ids: &Tensor, position_ids: Option<&Tensor>) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 251 | pub fn config(&self) -> &Gpt2Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `transformer` and `lm_head` are never read [INFO] [stdout] --> src/gpt2.rs:259:5 [INFO] [stdout] | [INFO] [stdout] 258 | pub struct Gpt2LMHeadModel { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 259 | transformer: Gpt2Model, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 260 | lm_head: Linear, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Gpt2LMHeadModel` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `forward`, `generate_next_token`, `top_p_sample`, `multinomial_sample`, and `transformer` are never used [INFO] [stdout] --> src/gpt2.rs:277:12 [INFO] [stdout] | [INFO] [stdout] 263 | impl Gpt2LMHeadModel { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn forward(&self, input_ids: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | pub fn generate_next_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 316 | fn top_p_sample(&self, logits: &Tensor, top_p: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 346 | fn multinomial_sample(&self, probs: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | pub fn transformer(&self) -> &Gpt2Model { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_inference_with_model` is never used [INFO] [stdout] --> src/main.rs:253:10 [INFO] [stdout] | [INFO] [stdout] 253 | async fn simulate_inference_with_model( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `c_attn`, `c_proj`, `n_head`, and `n_embd` are never read [INFO] [stdout] --> src/gpt2.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct MultiHeadAttention { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 42 | c_attn: Linear, // Combined Q, K, V projection [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | c_proj: Linear, // Output projection [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 44 | n_head: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | n_embd: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MultiHeadAttention` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `forward` and `create_causal_mask` are never used [INFO] [stdout] --> src/gpt2.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl MultiHeadAttention { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn forward(&self, x: &Tensor, mask: Option<&Tensor>) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn create_causal_mask(&self, _seq_len: usize, _device: &Device) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `c_fc` and `c_proj` are never read [INFO] [stdout] --> src/gpt2.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct FeedForward { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 112 | c_fc: Linear, // First linear layer (expansion) [INFO] [stdout] | ^^^^ [INFO] [stdout] 113 | c_proj: Linear, // Second linear layer (projection) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FeedForward` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `forward` is never used [INFO] [stdout] --> src/gpt2.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 116 | impl FeedForward { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn forward(&self, x: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ln_1`, `attn`, `ln_2`, and `mlp` are never read [INFO] [stdout] --> src/gpt2.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 137 | pub struct TransformerBlock { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 138 | ln_1: candle_nn::LayerNorm, [INFO] [stdout] | ^^^^ [INFO] [stdout] 139 | attn: MultiHeadAttention, [INFO] [stdout] | ^^^^ [INFO] [stdout] 140 | ln_2: candle_nn::LayerNorm, [INFO] [stdout] | ^^^^ [INFO] [stdout] 141 | mlp: FeedForward, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransformerBlock` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `forward` is never used [INFO] [stdout] --> src/gpt2.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 144 | impl TransformerBlock { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn forward(&self, x: &Tensor, mask: Option<&Tensor>) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `wte`, `wpe`, `h`, `ln_f`, and `config` are never read [INFO] [stdout] --> src/gpt2.rs:175:5 [INFO] [stdout] | [INFO] [stdout] 174 | pub struct Gpt2Model { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 175 | wte: candle_nn::Embedding, // Token embeddings [INFO] [stdout] | ^^^ [INFO] [stdout] 176 | wpe: candle_nn::Embedding, // Position embeddings [INFO] [stdout] | ^^^ [INFO] [stdout] 177 | h: Vec, // Transformer blocks [INFO] [stdout] | ^ [INFO] [stdout] 178 | ln_f: candle_nn::LayerNorm, // Final layer norm [INFO] [stdout] | ^^^^ [INFO] [stdout] 179 | config: Gpt2Config, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Gpt2Model` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `forward` and `config` are never used [INFO] [stdout] --> src/gpt2.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 182 | impl Gpt2Model { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn forward(&self, input_ids: &Tensor, position_ids: Option<&Tensor>) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 251 | pub fn config(&self) -> &Gpt2Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `transformer` and `lm_head` are never read [INFO] [stdout] --> src/gpt2.rs:259:5 [INFO] [stdout] | [INFO] [stdout] 258 | pub struct Gpt2LMHeadModel { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 259 | transformer: Gpt2Model, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 260 | lm_head: Linear, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Gpt2LMHeadModel` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `forward`, `generate_next_token`, `top_p_sample`, `multinomial_sample`, and `transformer` are never used [INFO] [stdout] --> src/gpt2.rs:277:12 [INFO] [stdout] | [INFO] [stdout] 263 | impl Gpt2LMHeadModel { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn forward(&self, input_ids: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | pub fn generate_next_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 316 | fn top_p_sample(&self, logits: &Tensor, top_p: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 346 | fn multinomial_sample(&self, probs: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | pub fn transformer(&self) -> &Gpt2Model { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 05s [INFO] running `Command { std: "docker" "inspect" "fa00a672cc1e91827e2f24f3063796eca6bb839d7c4116f3532df6bcd40540e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa00a672cc1e91827e2f24f3063796eca6bb839d7c4116f3532df6bcd40540e7", kill_on_drop: false }` [INFO] [stdout] fa00a672cc1e91827e2f24f3063796eca6bb839d7c4116f3532df6bcd40540e7