web-llm icon indicating copy to clipboard operation
web-llm copied to clipboard

Add ability to stop it before finishing to write a prompt

Open baditaflorin opened this issue 1 year ago • 4 comments

baditaflorin avatar Apr 18 '23 20:04 baditaflorin

What do you mean? Like a "stop generate" button to enable early stopping?

jinhongyii avatar Apr 18 '23 21:04 jinhongyii

Exactly!

On Wed, Apr 19, 2023 at 12:23 AM Hongyi Jin @.***> wrote:

What do you mean? Like a "stop generate" button to enable early stopping?

— Reply to this email directly, view it on GitHub https://github.com/mlc-ai/web-llm/issues/41#issuecomment-1513811038, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARZC53657LOKNCWS7KFHSLXB4A55ANCNFSM6AAAAAAXDEVBUY . You are receiving this because you authored the thread.Message ID: @.***>

-- Florin Badita Founder, Corruption Kills TEDx Speaker | Forbes 30 Under 30 Europe | Senior Landecker Democracy Fellow Book a time to have a small chat https://calendly.com/florinbadita/small-chat

baditaflorin avatar Apr 20 '23 07:04 baditaflorin

That would be great

Bortus-AI avatar Apr 21 '23 01:04 Bortus-AI

That would be great, really. At present, since webLMM cannot be interrupted while generating a response, I can only continue to watch until it finishes.

1980Dragon avatar Apr 22 '23 07:04 1980Dragon

The latest webllm js api contains a interrupt function that can support this

tqchen avatar Jun 16 '23 15:06 tqchen