Closed Bug 1955353 Opened 1 year ago Closed 2 months ago

[linkPreview] Initialize model with optimistic upper bound on numContext

Categories

(Core :: Machine Learning: On Device, enhancement, P2)

enhancement

Tracking

()

RESOLVED WONTFIX

People

(Reporter: atossou, Assigned: atossou)

References

(Blocks 1 open bug)

Details

(Whiteboard: [genai])

Currently, numContext is set to precisely match the estimated required context length for a given input.

This approach forces us to restart the engine for each new input.

The goal is to use a larger but reasonable value, such as the next power of 2. This value should remain the same across different input texts while not exceeding the exact requirement by too much.

Blocks: 1943389

We should fix this for correct llama.cpp usage for chat text generation.

Blocks: llama-cpp
Component: Machine Learning: General → Machine Learning: On Device
Priority: -- → P2
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.