-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: nanobind build due to undeclared CommType #6149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2478,8 +2478,9 @@ def test_guided_decoding_config_pickle(): | |
|
|
||
|
|
||
| def test_cache_transceiver_config_pickle(): | ||
| config = trtllm.CacheTransceiverConfig(backend="UCX", | ||
| max_tokens_in_buffer=1024) | ||
| config = trtllm.CacheTransceiverConfig( | ||
| backend=trtllm.CacheTransceiverBackendType.UCX, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are a lot of tests that use the string format, do we have something similar to "implicitly convertible" in Nanobind?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which tests do you mean? I only found this test and a test in
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have |
||
| max_tokens_in_buffer=1024) | ||
| config_copy = pickle.loads(pickle.dumps(config)) | ||
| assert config_copy.backend == config.backend | ||
| assert config_copy.max_tokens_in_buffer == config.max_tokens_in_buffer | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that nanobind
more suitable here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would it work? Unfortunately, I don't see a way to define an init function for an enum with nanobind.