[INFO] cloning repository https://github.com/thanhauco/mini-llm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/thanhauco/mini-llm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthanhauco%2Fmini-llm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthanhauco%2Fmini-llm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fffcedfb0c8950f31e3fcee633e9bbbcb6321b1b [INFO] checking thanhauco/mini-llm/fffcedfb0c8950f31e3fcee633e9bbbcb6321b1b against master#80b898258da78fdd1262438126aa0cf90e395f0c for pr-149195-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthanhauco%2Fmini-llm" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 62% (1337/2153) Updating files: 63% (1357/2153) Updating files: 64% (1378/2153) Updating files: 65% (1400/2153) Updating files: 66% (1421/2153) Updating files: 67% (1443/2153) Updating files: 67% (1457/2153) Updating files: 68% (1465/2153) Updating files: 69% (1486/2153) Updating files: 70% (1508/2153) Updating files: 71% (1529/2153) Updating files: 72% (1551/2153) Updating files: 73% (1572/2153) Updating files: 73% (1588/2153) Updating files: 74% (1594/2153) Updating files: 75% (1615/2153) Updating files: 76% (1637/2153) Updating files: 77% (1658/2153) Updating files: 78% (1680/2153) Updating files: 79% (1701/2153) Updating files: 80% (1723/2153) Updating files: 81% (1744/2153) Updating files: 82% (1766/2153) Updating files: 83% (1787/2153) Updating files: 84% (1809/2153) Updating files: 85% (1831/2153) Updating files: 86% (1852/2153) Updating files: 87% (1874/2153) Updating files: 88% (1895/2153) Updating files: 89% (1917/2153) Updating files: 90% (1938/2153) Updating files: 91% (1960/2153) Updating files: 92% (1981/2153) Updating files: 93% (2003/2153) Updating files: 94% (2024/2153) Updating files: 94% (2044/2153) Updating files: 95% (2046/2153) Updating files: 96% (2067/2153) Updating files: 97% (2089/2153) Updating files: 98% (2110/2153) Updating files: 99% (2132/2153) Updating files: 100% (2153/2153) Updating files: 100% (2153/2153), done. [INFO] started tweaking git repo https://github.com/thanhauco/mini-llm [INFO] finished tweaking git repo https://github.com/thanhauco/mini-llm [INFO] tweaked toml for git repo https://github.com/thanhauco/mini-llm written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/thanhauco/mini-llm on toolchain 80b898258da78fdd1262438126aa0cf90e395f0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+80b898258da78fdd1262438126aa0cf90e395f0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/thanhauco/mini-llm 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" "+80b898258da78fdd1262438126aa0cf90e395f0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rayon-cond v0.3.0 [INFO] [stderr] Downloaded monostate v0.1.18 [INFO] [stderr] Downloaded monostate-impl v0.1.18 [INFO] [stderr] Downloaded unicode-normalization-alignments v0.1.12 [INFO] [stderr] Downloaded ug v0.1.0 [INFO] [stderr] Downloaded candle-nn v0.8.4 [INFO] [stderr] Downloaded tokenizers v0.19.1 [INFO] [stderr] Downloaded esaxx-rs v0.1.10 [INFO] [stderr] Downloaded candle-core v0.8.4 [INFO] [stderr] Downloaded spm_precompiled v0.1.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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+80b898258da78fdd1262438126aa0cf90e395f0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7d86db5dbb6928aa674dbc4860c7e7949a36a0f7d875aa1a365dfabc09a6693d [INFO] running `Command { std: "docker" "start" "-a" "7d86db5dbb6928aa674dbc4860c7e7949a36a0f7d875aa1a365dfabc09a6693d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d86db5dbb6928aa674dbc4860c7e7949a36a0f7d875aa1a365dfabc09a6693d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d86db5dbb6928aa674dbc4860c7e7949a36a0f7d875aa1a365dfabc09a6693d", kill_on_drop: false }` [INFO] [stdout] 7d86db5dbb6928aa674dbc4860c7e7949a36a0f7d875aa1a365dfabc09a6693d [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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+80b898258da78fdd1262438126aa0cf90e395f0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e77ecc4a7b41a3e4acbd4cec7df2cce186f7b4f8a2ee08bd31bb8e8146c6b735 [INFO] running `Command { std: "docker" "start" "-a" "e77ecc4a7b41a3e4acbd4cec7df2cce186f7b4f8a2ee08bd31bb8e8146c6b735", kill_on_drop: false }` [INFO] [stderr] Compiling bytemuck_derive v1.10.2 [INFO] [stderr] Checking reborrow v0.5.5 [INFO] [stderr] Compiling seq-macro v0.3.6 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Compiling pulp v0.21.5 [INFO] [stderr] Compiling dyn-stack-macros v0.1.3 [INFO] [stderr] Checking raw-cpuid v11.6.0 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking raw-cpuid v10.7.0 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Compiling toml_parser v1.0.4 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling toml_datetime v0.7.3 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling onig_sys v69.9.1 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Compiling toml_edit v0.23.7 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling zip v1.1.4 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Checking memmap2 v0.9.9 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Compiling esaxx-rs v0.1.10 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Compiling monostate-impl v0.1.18 [INFO] [stderr] Checking rand_distr v0.5.1 [INFO] [stderr] Compiling macro_rules_attribute-proc_macro v0.2.2 [INFO] [stderr] Checking unicode-normalization-alignments v0.1.12 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking macro_rules_attribute v0.2.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking unicode_categories v0.1.1 [INFO] [stderr] Compiling proc-macro-crate v3.4.0 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Checking tempfile v3.23.0 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Checking bytemuck v1.24.0 [INFO] [stderr] Checking derive_builder v0.20.2 [INFO] [stderr] Compiling num_enum_derive v0.7.5 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking dyn-stack v0.13.2 [INFO] [stderr] Checking dyn-stack v0.10.0 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking pulp v0.18.22 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking rayon-cond v0.3.0 [INFO] [stderr] Checking num_enum v0.7.5 [INFO] [stderr] Checking clap v4.5.53 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking monostate v0.1.18 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Checking gemm-common v0.17.1 [INFO] [stderr] Checking safetensors v0.4.5 [INFO] [stderr] Checking spm_precompiled v0.1.4 [INFO] [stderr] Checking gemm-f32 v0.17.1 [INFO] [stderr] Checking gemm-c64 v0.17.1 [INFO] [stderr] Checking gemm-c32 v0.17.1 [INFO] [stderr] Checking gemm-f64 v0.17.1 [INFO] [stderr] Checking onig v6.5.1 [INFO] [stderr] Checking gemm-common v0.18.2 [INFO] [stderr] Checking gemm-f16 v0.17.1 [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 tokenizers v0.19.1 [INFO] [stderr] Checking gemm v0.17.1 [INFO] [stderr] Checking gemm-f16 v0.18.2 [INFO] [stderr] Checking gemm v0.18.2 [INFO] [stderr] Checking ug v0.1.0 [INFO] [stderr] Checking candle-core v0.8.4 [INFO] [stderr] Checking candle-nn v0.8.4 [INFO] [stderr] Checking mini-llm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0599]: no method named `shape` found for struct `VarBuilderArgs<'a, B>` in the current scope [INFO] [stdout] --> src/model.rs:17:46 [INFO] [stdout] | [INFO] [stdout] 17 | let weight = vb.get((vb.pp("weight").shape().dims2()?.1,), "weight")?; // Shape might vary [INFO] [stdout] | ^^^^^ method not found in `VarBuilderArgs<'_, Box>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shape` found for struct `VarBuilderArgs<'a, B>` in the current scope [INFO] [stdout] --> src/model.rs:17:46 [INFO] [stdout] | [INFO] [stdout] 17 | let weight = vb.get((vb.pp("weight").shape().dims2()?.1,), "weight")?; // Shape might vary [INFO] [stdout] | ^^^^^ method not found in `VarBuilderArgs<'_, Box>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/sampler.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | if cum_prob > self.top_p { [INFO] [stdout] | -------- ^^^^^^^^^^ expected `f32`, found `f64` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `candle_core::Error` [INFO] [stdout] --> src/sampler.rs:61:104 [INFO] [stdout] | [INFO] [stdout] 61 | let dist = rand::distributions::WeightedIndex::new(&kept_probs).map_err(|e| anyhow::anyhow!(e))?; [INFO] [stdout] | ---------------------------------------------------- -------------------------------^ the trait `From` is not implemented for `candle_core::Error` [INFO] [stdout] | | | [INFO] [stdout] | | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | this has type `Result<_, WeightedError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `candle_core::Error` [INFO] [stdout] --> src/generator.rs:24:61 [INFO] [stdout] | [INFO] [stdout] 24 | let mut tokens = self.tokenizer.encode(prompt, true)?; [INFO] [stdout] | --------------------^ the trait `From` is not implemented for `candle_core::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/sampler.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | if cum_prob > self.top_p { [INFO] [stdout] | -------- ^^^^^^^^^^ expected `f32`, found `f64` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `candle_core::Error` [INFO] [stdout] --> src/sampler.rs:61:104 [INFO] [stdout] | [INFO] [stdout] 61 | let dist = rand::distributions::WeightedIndex::new(&kept_probs).map_err(|e| anyhow::anyhow!(e))?; [INFO] [stdout] | ---------------------------------------------------- -------------------------------^ the trait `From` is not implemented for `candle_core::Error` [INFO] [stdout] | | | [INFO] [stdout] | | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | this has type `Result<_, WeightedError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `candle_core::Error` [INFO] [stdout] --> src/generator.rs:24:61 [INFO] [stdout] | [INFO] [stdout] 24 | let mut tokens = self.tokenizer.encode(prompt, true)?; [INFO] [stdout] | --------------------^ the trait `From` is not implemented for `candle_core::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] `candle_core::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `kv_caches` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/model.rs:365:25 [INFO] [stdout] | [INFO] [stdout] 365 | let cache = kv_caches.as_mut().map(|caches| &mut caches[i]); [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 360 | pub fn forward(&self, tokens: &Tensor, mut kv_caches: Option<&mut Vec>) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `kv_caches` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/model.rs:365:25 [INFO] [stdout] | [INFO] [stdout] 365 | let cache = kv_caches.as_mut().map(|caches| &mut caches[i]); [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 360 | pub fn forward(&self, tokens: &Tensor, mut kv_caches: Option<&mut Vec>) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mini-llm` (lib test) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `mini-llm` (lib) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "e77ecc4a7b41a3e4acbd4cec7df2cce186f7b4f8a2ee08bd31bb8e8146c6b735", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e77ecc4a7b41a3e4acbd4cec7df2cce186f7b4f8a2ee08bd31bb8e8146c6b735", kill_on_drop: false }` [INFO] [stdout] e77ecc4a7b41a3e4acbd4cec7df2cce186f7b4f8a2ee08bd31bb8e8146c6b735