From 6fd890a6ba42f9bd4683fc2ccd6243872b163e67 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Mon, 15 Jun 2026 10:40:44 +0200 Subject: late: add CUDA late-interaction rerank path (GPU encode, host MaxSim) --- embed_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'embed_internal.h') diff --git a/embed_internal.h b/embed_internal.h index d2c1a30..7d6977c 100644 --- a/embed_internal.h +++ b/embed_internal.h @@ -81,4 +81,11 @@ struct embed_workspace { size_t bf16_widen_count; }; +/* Internal accessors for the late-interaction model. GPU backends build a device + * context from an already-loaded CPU late model because the model dir is a late + * snapshot that the pooled loader rejects; these expose the base model and the + * projection weight without making struct embed_late_model public. */ +embed_model_t *embed_late_model_base(const embed_late_model_t *model); +const embed_weight_ref_t *embed_late_model_projection(const embed_late_model_t *model); + #endif /* EMBED_INTERNAL_H */ -- cgit v1.3.1