Skip to content

Commit eee3ee9

Browse files
committed
bugfix: fix the compilation error caused by override a base class function that does not exist.
Signed-off-by: Tao Peng <[email protected]>
1 parent c8fba1a commit eee3ee9

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

xllm/core/framework/model/embedding_lm.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ class EmbeddingLMImpl : public EmbeddingLM {
4646
EmbeddingLMImpl(Model model, const torch::TensorOptions& options)
4747
: model_(std::move(model)), options_(options) {}
4848

49-
torch::Tensor forward(const torch::Tensor& tokens,
50-
const torch::Tensor& positions,
51-
std::vector<KVCache>& kv_caches,
52-
const ModelInputParams& parameters) override {
53-
return model_->forward(tokens, positions, kv_caches, parameters);
54-
}
55-
5649
torch::Tensor logits(const torch::Tensor& hidden_states,
5750
const torch::Tensor& seleted_idxes) override {
5851
return model_->logits(hidden_states, seleted_idxes);

0 commit comments

Comments
 (0)