mlx-examples icon indicating copy to clipboard operation
mlx-examples copied to clipboard

generate.py bug: using global var args.prompt instead of prompt passed to the method

Open meirm opened this issue 1 year ago • 1 comments

The script generate.py in the subdir llms/hf_llm has a bug where it uses the global var args.prompt instead of prompt as passed to the method. This causes the script to generate incorrect results. The bug should be fixed to ensure the correctness of the script.

meirm avatar Jan 04 '24 18:01 meirm

Sorry about that, the fix is in #227

awni avatar Jan 04 '24 19:01 awni