LMFlow icon indicating copy to clipboard operation
LMFlow copied to clipboard

Perform Inference using Python instead of command line

Open vashiegaran opened this issue 2 years ago • 1 comments

Hi, is there any example of python code that can run inference instead of using the command line? If so can you kindly share

vashiegaran avatar Jan 04 '24 15:01 vashiegaran

Thanks for your interest in LMFlow! You may check speculative_inference.py, where you can replace SpeculativeInferencer with Inferencer (along with their arguments) in examples/chatbot.py. Please feel free to contact us again if there is any problem during the usage. Thanks very much 😄

research4pan avatar Jan 14 '24 07:01 research4pan