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
The trtllm-build entrypoint ignores the user-provided --model_cls_file and --model_cls_name. It looks like although the model class is resolved and imported, an appropriate entry in the MODEL_MAP isn't made, as seen here.
I've verified that adding the line MODEL_MAP[args.model_cls_name] = model_cls immediately after the line referenced above works well to fix this issue.
An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
My own task or dataset (give details below)
Reproduction
Try a trtllm-build command with any model architecture that is not supported by default, by using the --model_cls_file and --model_cls_name, you'll end up with a KeyError.
Expected behavior
The trtllm-build picks up my model classes and runs to completion and produces the engine files.
actual behavior
Raises a KeyError
additional notes
None, fix proposed in problem description.
The text was updated successfully, but these errors were encountered:
The
trtllm-build
entrypoint ignores the user-provided--model_cls_file
and--model_cls_name
. It looks like although the model class is resolved and imported, an appropriate entry in theMODEL_MAP
isn't made, as seen here.I've verified that adding the line
MODEL_MAP[args.model_cls_name] = model_cls
immediately after the line referenced above works well to fix this issue.Who can help?
@ncomly-nvidia , @byshiue
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Try a
trtllm-build
command with any model architecture that is not supported by default, by using the--model_cls_file
and--model_cls_name
, you'll end up with aKeyError
.Expected behavior
The
trtllm-build
picks up my model classes and runs to completion and produces the engine files.actual behavior
Raises a
KeyError
additional notes
None, fix proposed in problem description.
The text was updated successfully, but these errors were encountered: