You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the process of building a lora model without a modules_to_save value, the error below occurs.
Isn't the lora model based on the llama model without a modules_to_save value supported yet?
[error log] Traceback (most recent call last): File "/code/tensorrt_llm/examples/llama/build.py", line 828, in <module> args = parse_arguments() File "/code/tensorrt_llm/examples/llama/build.py", line 499, in parse_arguments lora_config = LoraConfig.from_hf(args.hf_lora_dir, File "/usr/local/lib/python3.10/dist-packages/tensorrt_llm/runtime/lora_manager.py", line 60, in from_hf if "lm_head" in adapter_config["modules_to_save"]: TypeError: argument of type 'NoneType' is not iterable
Activity
byshiue commentedon Dec 12, 2023
We don't have checkpoint to verify, but I think you could just remove the related codes about
modules_to_saveif it is nullptr in your case.We will also consider a more stabler way to support that.
byshiue commentedon Dec 15, 2023
The issue should be fixed in latest main branch, please take a try.
kaiyux commentedon Dec 26, 2023
Closing since no reply for 2 weeks. Please feel free to comment if you are still seeing the issue, thanks.