[INFO] cloning repository https://github.com/krishpranav/debatellm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/krishpranav/debatellm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkrishpranav%2Fdebatellm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkrishpranav%2Fdebatellm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cd40725097817edecd917d699665191bf57695f6 [INFO] checking krishpranav/debatellm against 8773d2c75a8e90130dcce745a7ec4e66bb9963db+rustflags=-Aunfulfilled-lint-expectations for pr-163637 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkrishpranav%2Fdebatellm" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/krishpranav/debatellm [INFO] finished tweaking git repo https://github.com/krishpranav/debatellm [INFO] tweaked toml for git repo https://github.com/krishpranav/debatellm written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/krishpranav/debatellm on toolchain 8773d2c75a8e90130dcce745a7ec4e66bb9963db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8773d2c75a8e90130dcce745a7ec4e66bb9963db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/krishpranav/debatellm 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" "+8773d2c75a8e90130dcce745a7ec4e66bb9963db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 6a4cb008c66fb7ac4befaa6adb98d7bb194c562ae54b7829084a5e73fe689998 [INFO] running `Command { std: "docker" "start" "6a4cb008c66fb7ac4befaa6adb98d7bb194c562ae54b7829084a5e73fe689998", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6a4cb008c66fb7ac4befaa6adb98d7bb194c562ae54b7829084a5e73fe689998", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6a4cb008c66fb7ac4befaa6adb98d7bb194c562ae54b7829084a5e73fe689998" "/opt/rustwide/cargo-home/bin/cargo" "+8773d2c75a8e90130dcce745a7ec4e66bb9963db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6a4cb008c66fb7ac4befaa6adb98d7bb194c562ae54b7829084a5e73fe689998", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Aunfulfilled-lint-expectations" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6a4cb008c66fb7ac4befaa6adb98d7bb194c562ae54b7829084a5e73fe689998" "/opt/rustwide/cargo-home/bin/cargo" "+8773d2c75a8e90130dcce745a7ec4e66bb9963db" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling zerocopy v0.8.47 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking stable_deref_trait v1.2.1 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling pulp v0.22.2 [INFO] [stderr] Compiling zerocopy-derive v0.8.47 [INFO] [stderr] Compiling bytemuck_derive v1.10.2 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling openssl-sys v0.9.112 [INFO] [stderr] Checking hashbrown v0.16.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking raw-cpuid v11.6.0 [INFO] [stderr] Checking pulp-wasm-simd-flag v0.1.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking rand_core v0.9.5 [INFO] [stderr] Checking reborrow v0.5.5 [INFO] [stderr] Compiling dyn-stack-macros v0.1.3 [INFO] [stderr] Checking litemap v0.8.1 [INFO] [stderr] Checking writeable v0.6.2 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Compiling seq-macro v0.3.6 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling tokio-macros v2.6.1 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking socket2 v0.6.3 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Compiling openssl v0.10.76 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling onig_sys v69.9.1 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Compiling esaxx-rs v0.1.10 [INFO] [stderr] Checking tokio v1.50.0 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Compiling monostate-impl v0.1.18 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Checking bytemuck v1.25.0 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Compiling macro_rules_attribute-proc_macro v0.2.2 [INFO] [stderr] Checking monostate v0.1.18 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking dyn-stack v0.13.2 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking ring v0.17.14 [INFO] [stderr] Checking unicode-normalization-alignments v0.1.12 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking macro_rules_attribute v0.2.2 [INFO] [stderr] Checking compact_str v0.9.0 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Checking derive_builder v0.20.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking dary_heap v0.3.8 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking typed-path v0.12.3 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking webpki-roots v0.26.11 [INFO] [stderr] Checking safetensors v0.7.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking memmap2 v0.9.10 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking rustls-webpki v0.103.10 [INFO] [stderr] Checking bit-vec v0.8.0 [INFO] [stderr] Checking indicatif v0.17.11 [INFO] [stderr] Checking rayon-cond v0.4.0 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking spm_precompiled v0.1.4 [INFO] [stderr] Compiling clap_derive v4.6.0 [INFO] [stderr] Checking bit-set v0.8.0 [INFO] [stderr] Checking clap_builder v4.6.0 [INFO] [stderr] Checking serde_plain v1.0.2 [INFO] [stderr] Checking regex v1.12.3 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking fancy-regex v0.17.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking tracing-subscriber v0.3.23 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking rustls v0.23.37 [INFO] [stderr] Checking zip v7.2.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking rayon-cond v0.3.0 [INFO] [stderr] Checking onig v6.5.1 [INFO] [stderr] Checking futures-executor v0.3.32 [INFO] [stderr] Checking futures v0.3.32 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking clap v4.6.0 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking ureq v2.12.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking rand_distr v0.5.1 [INFO] [stderr] Checking tokenizers v0.22.2 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking gemm-common v0.19.0 [INFO] [stderr] Checking float8 v0.7.0 [INFO] [stderr] Checking gemm-f32 v0.19.0 [INFO] [stderr] Checking gemm-f64 v0.19.0 [INFO] [stderr] Checking gemm-c32 v0.19.0 [INFO] [stderr] Checking gemm-c64 v0.19.0 [INFO] [stderr] Checking gemm-f16 v0.19.0 [INFO] [stderr] Checking gemm v0.19.0 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking hf-hub v0.3.2 [INFO] [stderr] Checking candle-core v0.9.2 (https://github.com/huggingface/candle#bf9e950c) [INFO] [stderr] Checking tokenizers v0.19.1 [INFO] [stderr] Checking candle-nn v0.9.2 (https://github.com/huggingface/candle#bf9e950c) [INFO] [stderr] Checking candle-transformers v0.9.2 (https://github.com/huggingface/candle#bf9e950c) [INFO] [stderr] Checking debatellm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: enum `DebateLMError` is never used [INFO] [stdout] --> src/error.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum DebateLMError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/error.rs:119:10 [INFO] [stdout] | [INFO] [stdout] 119 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ModelType` is never used [INFO] [stdout] --> src/config.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum ModelType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_str` is never used [INFO] [stdout] --> src/config.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl ModelType { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 28 | pub fn from_str(s: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RawConfig` is never constructed [INFO] [stdout] --> src/config.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct RawConfig { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_vocab_size` is never used [INFO] [stdout] --> src/config.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn default_vocab_size() -> usize { 32_000 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_hidden_act` is never used [INFO] [stdout] --> src/config.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn default_hidden_act() -> String { "silu".to_string() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_rms_norm_eps` is never used [INFO] [stdout] --> src/config.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | fn default_rms_norm_eps() -> f64 { 1e-5 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModelConfig` is never constructed [INFO] [stdout] --> src/config.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub struct ModelConfig { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_raw`, `to_mistral_candle_config`, `to_phi3_candle_config`, and `from_file` are never used [INFO] [stdout] --> src/config.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 130 | impl ModelConfig { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 131 | pub fn from_raw(raw: RawConfig) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn to_mistral_candle_config( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn to_phi3_candle_config( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn from_file>(path: P) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShardIndex` is never constructed [INFO] [stdout] --> src/config.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 246 | pub struct ShardIndex { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `unique_shards` and `from_file` are never used [INFO] [stdout] --> src/config.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 250 | impl ShardIndex { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 251 | pub fn unique_shards(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn from_file>(path: P) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DebateLMTokenizer` is never constructed [INFO] [stdout] --> src/tokenizer.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct DebateLMTokenizer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/tokenizer.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl DebateLMTokenizer { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn from_file>(tokenizer_path: P) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn encode(&self, text: &str) -> Result> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn encode_with_bos(&self, text: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn decode_token(&self, token_id: u32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn decode_sequence(&self, token_ids: &[u32]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn eos_token_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn bos_token_id(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn vocab_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ModelVariant` is never used [INFO] [stdout] --> src/model.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | pub enum ModelVariant { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `forward` and `clear_kv_cache` are never used [INFO] [stdout] --> src/model.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl ModelVariant { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn forward(&mut self, input_ids: &Tensor, seqlen_offset: usize) -> candle_core::Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn clear_kv_cache(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DebateLMModel` is never constructed [INFO] [stdout] --> src/model.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct DebateLMModel { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `load`, `forward`, and `clear_kv_cache` are never used [INFO] [stdout] --> src/model.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl DebateLMModel { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn load( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn forward(&mut self, input_ids: &Tensor, seqlen_offset: usize) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn clear_kv_cache(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `auto_dtype` is never used [INFO] [stdout] --> src/model.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn auto_dtype(device: &Device) -> DType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MISTRAL_SYSTEM_PROMPT` is never used [INFO] [stdout] --> src/prompt.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const MISTRAL_SYSTEM_PROMPT: &str = "\ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_steelman_mistral` is never used [INFO] [stdout] --> src/prompt.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn format_steelman_mistral(argument: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PHI3_SYSTEM_PROMPT` is never used [INFO] [stdout] --> src/prompt.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | const PHI3_SYSTEM_PROMPT: &str = "\ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_steelman_phi3` is never used [INFO] [stdout] --> src/prompt.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn format_steelman_phi3(argument: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_steelman` is never used [INFO] [stdout] --> src/prompt.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn format_steelman(argument: &str, model_type: &crate::config::ModelType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_argument` is never used [INFO] [stdout] --> src/prompt.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn validate_argument(argument: &str, max_input_chars: usize) -> crate::error::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GenerationConfig` is never constructed [INFO] [stdout] --> src/inference.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct GenerationConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `validate` is never used [INFO] [stdout] --> src/inference.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl GenerationConfig { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 80 | /// Validate parameter ranges. [INFO] [stdout] 81 | pub fn validate(&self) -> crate::error::Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Engine` is never constructed [INFO] [stdout] --> src/inference.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct Engine { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `load`, `load_local`, `resolve_weight_paths`, `resolve_local_weight_paths`, `steelman`, and `generate_tokens` are never used [INFO] [stdout] --> src/inference.rs:117:18 [INFO] [stdout] | [INFO] [stdout] 110 | impl Engine { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 117 | pub async fn load(model_id: &str, dtype_override: Option) -> anyhow::Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn load_local(path: &std::path::Path, dtype_override: Option) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | async fn resolve_weight_paths( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | fn resolve_local_weight_paths(dir: &std::path::Path) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn steelman( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 381 | fn generate_tokens( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sample_token` is never used [INFO] [stdout] --> src/inference.rs:540:4 [INFO] [stdout] | [INFO] [stdout] 540 | fn sample_token( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nucleus_filter` is never used [INFO] [stdout] --> src/inference.rs:639:4 [INFO] [stdout] | [INFO] [stdout] 639 | fn nucleus_filter(probs: &mut Vec, top_p: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/error.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum DebateLMError { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 25 | ConfigDeserialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | UnsupportedModelType { model_type: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | MissingConfigField { field: &'static str, model_type: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | TokenizerLoad { path: String, message: String }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | TokenizationFailed { input_len: usize, message: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | TokenDecodeFailed { token_id: u32, message: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | EosTokenNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | WeightsNotFound { path: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | WeightsMmap { message: String }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | ModelBuild { message: String }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | ShardIndexMalformed { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | ForwardPassFailed { step: usize, message: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | SamplingFailed { message: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | InvalidTemperature { value: f64 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | InvalidTopP { value: f64 }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | HubFetch { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | Io { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `DebateLMError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_str` is never used [INFO] [stdout] --> src/config.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl ModelType { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 28 | pub fn from_str(s: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RawConfig` is never constructed [INFO] [stdout] --> src/config.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct RawConfig { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_vocab_size` is never used [INFO] [stdout] --> src/config.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn default_vocab_size() -> usize { 32_000 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_hidden_act` is never used [INFO] [stdout] --> src/config.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn default_hidden_act() -> String { "silu".to_string() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_rms_norm_eps` is never used [INFO] [stdout] --> src/config.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | fn default_rms_norm_eps() -> f64 { 1e-5 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModelConfig` is never constructed [INFO] [stdout] --> src/config.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub struct ModelConfig { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_raw`, `to_mistral_candle_config`, `to_phi3_candle_config`, and `from_file` are never used [INFO] [stdout] --> src/config.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 130 | impl ModelConfig { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 131 | pub fn from_raw(raw: RawConfig) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn to_mistral_candle_config( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn to_phi3_candle_config( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn from_file>(path: P) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShardIndex` is never constructed [INFO] [stdout] --> src/config.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 246 | pub struct ShardIndex { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `unique_shards` and `from_file` are never used [INFO] [stdout] --> src/config.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 250 | impl ShardIndex { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 251 | pub fn unique_shards(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn from_file>(path: P) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DebateLMTokenizer` is never constructed [INFO] [stdout] --> src/tokenizer.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct DebateLMTokenizer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/tokenizer.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl DebateLMTokenizer { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn from_file>(tokenizer_path: P) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn encode(&self, text: &str) -> Result> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn encode_with_bos(&self, text: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn decode_token(&self, token_id: u32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn decode_sequence(&self, token_ids: &[u32]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn eos_token_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn bos_token_id(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn vocab_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ModelVariant` is never used [INFO] [stdout] --> src/model.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | pub enum ModelVariant { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `forward` and `clear_kv_cache` are never used [INFO] [stdout] --> src/model.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl ModelVariant { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn forward(&mut self, input_ids: &Tensor, seqlen_offset: usize) -> candle_core::Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn clear_kv_cache(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DebateLMModel` is never constructed [INFO] [stdout] --> src/model.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct DebateLMModel { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `load`, `forward`, and `clear_kv_cache` are never used [INFO] [stdout] --> src/model.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl DebateLMModel { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn load( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn forward(&mut self, input_ids: &Tensor, seqlen_offset: usize) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn clear_kv_cache(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `auto_dtype` is never used [INFO] [stdout] --> src/model.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn auto_dtype(device: &Device) -> DType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GenerationConfig` is never constructed [INFO] [stdout] --> src/inference.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct GenerationConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `validate` is never used [INFO] [stdout] --> src/inference.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl GenerationConfig { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 80 | /// Validate parameter ranges. [INFO] [stdout] 81 | pub fn validate(&self) -> crate::error::Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Engine` is never constructed [INFO] [stdout] --> src/inference.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct Engine { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `load`, `load_local`, `resolve_weight_paths`, `resolve_local_weight_paths`, `steelman`, and `generate_tokens` are never used [INFO] [stdout] --> src/inference.rs:117:18 [INFO] [stdout] | [INFO] [stdout] 110 | impl Engine { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 117 | pub async fn load(model_id: &str, dtype_override: Option) -> anyhow::Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn load_local(path: &std::path::Path, dtype_override: Option) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | async fn resolve_weight_paths( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | fn resolve_local_weight_paths(dir: &std::path::Path) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn steelman( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 381 | fn generate_tokens( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sample_token` is never used [INFO] [stdout] --> src/inference.rs:540:4 [INFO] [stdout] | [INFO] [stdout] 540 | fn sample_token( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nucleus_filter` is never used [INFO] [stdout] --> src/inference.rs:639:4 [INFO] [stdout] | [INFO] [stdout] 639 | fn nucleus_filter(probs: &mut Vec, top_p: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `hidden_act` is never read [INFO] [stdout] --> src/config.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct RawConfig { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 59 | pub hidden_act: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RawConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MissingConfigField`, `WeightsNotFound`, `SamplingFailed`, `ContextLengthExceeded`, and `HubFetch` are never constructed [INFO] [stdout] --> src/error.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum DebateLMError { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 34 | MissingConfigField { field: &'static str, model_type: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | WeightsNotFound { path: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | SamplingFailed { message: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | ContextLengthExceeded { max_tokens: usize, max_pos: usize }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | HubFetch { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DebateLMError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `dtype` is never read [INFO] [stdout] --> src/model.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct DebateLMModel { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 81 | pub dtype: DType, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_argument` is never used [INFO] [stdout] --> src/prompt.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn validate_argument(argument: &str, max_input_chars: usize) -> crate::error::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bos_token_id` and `vocab_size` are never used [INFO] [stdout] --> src/tokenizer.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl DebateLMTokenizer { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn bos_token_id(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn vocab_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `hidden_act` is never read [INFO] [stdout] --> src/config.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct RawConfig { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 59 | pub hidden_act: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RawConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MissingConfigField`, `WeightsNotFound`, `SamplingFailed`, and `HubFetch` are never constructed [INFO] [stdout] --> src/error.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum DebateLMError { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 34 | MissingConfigField { field: &'static str, model_type: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | WeightsNotFound { path: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | SamplingFailed { message: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | HubFetch { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DebateLMError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `dtype` is never read [INFO] [stdout] --> src/model.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct DebateLMModel { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 81 | pub dtype: DType, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bos_token_id` and `vocab_size` are never used [INFO] [stdout] --> src/tokenizer.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl DebateLMTokenizer { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn bos_token_id(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn vocab_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 00s [INFO] running `Command { std: "docker" "inspect" "6a4cb008c66fb7ac4befaa6adb98d7bb194c562ae54b7829084a5e73fe689998", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a4cb008c66fb7ac4befaa6adb98d7bb194c562ae54b7829084a5e73fe689998", kill_on_drop: false }` [INFO] [stdout] 6a4cb008c66fb7ac4befaa6adb98d7bb194c562ae54b7829084a5e73fe689998