Skip to main content

encode_text_native

Function encode_text_native 

Source
pub fn encode_text_native(
    weights: &Sam3TextEncoderWeights,
    cfg: &Sam3TextConfig,
    _prompt: Option<&str>,
    gguf_packed: Option<&GgufPackedParams>,
) -> Result<Sam3TextEncoded, Error>
Expand description

Legacy shim for Sam3::predict_image. Returns an empty/PAD encoding — the BPE tokenizer port is a separate task; for now real prompts must go through encode_tokens with externally-tokenized inputs.