Skip to content

serve:progress indicator - #81

Open
hendrikras wants to merge 2 commits into
sqliteai:mainfrom
hendrikras:feature/serve-progress-indicator
Open

hendrikras wants to merge 2 commits into
sqliteai:mainfrom
hendrikras:feature/serve-progress-indicator

Conversation

@hendrikras

Copy link
Copy Markdown
Contributor

Adds prefill progress callback to waste.c, engine.py, called after each chunk of the prompt is processed. Server.py was also modified to return the result of callback to stderr.

Results in adding one additional line to the output of serve while prompt is being processed:
Prefilling 91% 31232/34479 tokens 0 t/s ETA 2.0hh

Adds prefill progress callback to waste.c, engine.py, called after each chunk of the prompt is processed.
Server.py was also modified to return the result of callback to stderr.
The prefill_cb parameter is ignored by FakeEngine (as expected for a mock), just as it is by the real engine when set to None.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant