Skip to content

Commit

Permalink
Rust 1.81 clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLBuehler committed Sep 6, 2024
1 parent a625394 commit 3933afb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mistralrs-core/src/models/llama.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ impl Llama {
),
};
Block::load(
vb.pp(&format!("model.layers.{i}")),
vb.pp(format!("model.layers.{i}")),
cfg,
&*mapper,
i,
Expand Down
2 changes: 1 addition & 1 deletion mistralrs-core/src/vision_models/llava/llava_llm/llama.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ impl Llama {
),
};
Block::load(
vb.pp(&format!("model.layers.{i}")),
vb.pp(format!("model.layers.{i}")),
cfg,
&*mapper,
i,
Expand Down
4 changes: 2 additions & 2 deletions mistralrs-core/src/xlora_models/classifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl XLoraClassifier {
let lin = linear(
config.xlora_size,
config.xlora_size,
vb.pp(&format!("inner.{i}")),
vb.pp(format!("inner.{i}")),
)?;
inner.push(Box::new(Linear::new(
lin.weight().to_dtype(DType::F32)?,
Expand All @@ -187,7 +187,7 @@ impl XLoraClassifier {
let lin = linear_no_bias(
config.xlora_size,
config.xlora_size,
vb.pp(&format!("inner.{i}")),
vb.pp(format!("inner.{i}")),
)?;
inner.push(Box::new(Linear::new(
lin.weight().to_dtype(DType::F32)?,
Expand Down
2 changes: 1 addition & 1 deletion mistralrs-core/src/xlora_models/llama.rs
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ impl XLoraLlama {
.expect("Failed to create RoPE"),
);
Block::load(
vb.pp(&format!("model.layers.{i}")),
vb.pp(format!("model.layers.{i}")),
cfg,
lora_config,
&mut count,
Expand Down

0 comments on commit 3933afb

Please sign in to comment.