Skip to content

Commit

Permalink
feature: flashmodernbert
Browse files Browse the repository at this point in the history
  • Loading branch information
kozistr committed Dec 25, 2024
1 parent d29dec6 commit d970c48
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backends/candle/src/models/flash_modernbert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::models::modernbert::{
ModernBertMLP,
};
use crate::models::Model;
use candle::{DType, Device, IndexOp, Result, Shape, Tensor};
use candle::{DType, Device, IndexOp, Result, Tensor};
use candle_nn::VarBuilder;
use text_embeddings_backend_core::{Batch, ModelType, Pool};

Expand Down Expand Up @@ -244,7 +244,6 @@ pub struct FlashModernBertModel {
rotary_cache: HashMap<bool, (Tensor, Tensor)>,

device: Device,
dtype: DType,

span: tracing::Span,
}
Expand Down Expand Up @@ -322,7 +321,6 @@ impl FlashModernBertModel {
rotary_dim,
rotary_cache,
device: vb.device().clone(),
dtype: vb.dtype(),
span: tracing::span!(tracing::Level::TRACE, "model"),
})
}
Expand Down

0 comments on commit d970c48

Please sign in to comment.