[Inference]Fix example in readme (#6178)

This commit is contained in:
Guangyao Zhang
2025-01-08 11:51:50 +08:00
committed by GitHub
parent ee81366cac
commit 5b094a836b

View File

@@ -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)
```