mirror of https://github.com/hpcaitech/ColossalAI
[Inference]Fix example in readme (#6178)
parent
ee81366cac
commit
5b094a836b
|
@ -62,7 +62,7 @@ engine = InferenceEngine(model, tokenizer, inference_config, verbose=True)
|
|||
|
||||
# Step 4: try inference
|
||||
prompts = ['Who is the best player in the history of NBA?']
|
||||
response = engine.generate(prompts)
|
||||
response = engine.generate(prompts=prompts)
|
||||
pprint(response)
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue