Skip to content

Commit aa3ac4b

Browse files
committed
fix: build issues
1 parent 5763cd3 commit aa3ac4b

File tree

10 files changed

+11
-1
lines changed

10 files changed

+11
-1
lines changed

backends/candle/src/models/flash_bert.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ impl FlashBertModel {
259259
};
260260
(pool, None, splade)
261261
}
262+
ModelType::ListwiseReranker => todo!(),
262263
};
263264

264265
let (embeddings, encoder) = match (
@@ -326,6 +327,7 @@ impl FlashBertModel {
326327
};
327328
(pool, None, splade)
328329
}
330+
ModelType::ListwiseReranker => todo!(),
329331
};
330332

331333
let (embeddings, encoder) = match (

backends/candle/src/models/flash_distilbert.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ impl FlashDistilBertModel {
200200
candle::bail!("`classifier` model type is not supported for DistilBert")
201201
}
202202
ModelType::Embedding(pool) => pool,
203+
ModelType::ListwiseReranker => todo!(),
203204
};
204205

205206
let (embeddings, encoder) = match (

backends/candle/src/models/flash_gte.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ impl FlashGTEModel {
191191
(pool, Some(classifier))
192192
}
193193
ModelType::Embedding(pool) => (pool, None),
194+
ModelType::ListwiseReranker => todo!(),
194195
};
195196

196197
let (word_embeddings, token_type_embeddings, layers, embeddings_norm) =

backends/candle/src/models/flash_jina.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ impl FlashJinaBertModel {
267267
}
268268
(pool, None)
269269
}
270+
ModelType::ListwiseReranker => todo!(),
270271
};
271272

272273
let (embeddings, encoder) = match (

backends/candle/src/models/flash_jina_code.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ impl FlashJinaCodeBertModel {
314314
}
315315
pool
316316
}
317+
ModelType::ListwiseReranker => todo!(),
317318
};
318319

319320
let (embeddings, encoder) = match (

backends/candle/src/models/flash_mistral.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ impl FlashMistralModel {
251251
candle::bail!("`classifier` model type is not supported for Mistral")
252252
}
253253
ModelType::Embedding(pool) => pool,
254+
ModelType::ListwiseReranker => todo!(),
254255
};
255256

256257
let embeddings = Embedding::new(

backends/candle/src/models/flash_modernbert.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ impl FlashModernBertModel {
274274

275275
(pool, None)
276276
}
277+
ModelType::ListwiseReranker => todo!(),
277278
};
278279

279280
let embeddings = ModernBertEmbeddings::load(vb.pp("model.embeddings"), config)

backends/candle/src/models/flash_nomic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ impl FlashNomicBertModel {
228228
}
229229
pool
230230
}
231+
ModelType::ListwiseReranker => todo!(),
231232
};
232233

233234
let embeddings = NomicBertEmbeddings::load(vb.clone(), config)?;

backends/candle/src/models/flash_qwen2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ impl FlashQwen2Model {
259259
candle::bail!("`classifier` model type is not supported for Qwen2")
260260
}
261261
ModelType::Embedding(pool) => pool,
262+
ModelType::ListwiseReranker => todo!(),
262263
};
263264

264265
// Pushing the prefix for `model` is apparently only required if the model architecture is

backends/candle/src/models/flash_qwen3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::flash_attn::flash_attn_varlen;
22
use crate::layers::{get_cos_sin, get_inv_freqs, HiddenAct, Linear, RMSNorm};
33
use crate::models::{Model, Qwen3Config};
4-
use candle::{DType, Device, IndexOp, Result, Tensor};
4+
use candle::{DType, Device, IndexOp, Result, Tensor, D};
55
use candle_nn::{Embedding, Module, VarBuilder};
66
use candle_rotary::apply_rotary_inplace;
77
use text_embeddings_backend_core::{Batch, ModelType, Pool};

0 commit comments

Comments
 (0)