Skip to content

Expose setting num_processes for template-based models#13

Merged
kmaziarz merged 2 commits intomainfrom
kmaziarz/expose-num-processes-in-rule-server
Apr 10, 2026
Merged

Expose setting num_processes for template-based models#13
kmaziarz merged 2 commits intomainfrom
kmaziarz/expose-num-processes-in-rule-server

Conversation

@kmaziarz
Copy link
Copy Markdown
Contributor

@kmaziarz kmaziarz commented Apr 8, 2026

Although RuleApplicationServer exposes num_processes, allowing one to vary how many parallel processes are used for template application, RuleBasedRetrosynthesizer (the base class for all template-based models) does not expose this to the user. In this PR, I add num_processes an an init argument to RuleBasedRetrosynthesizer, which allows configuring the underlying server.

@kmaziarz kmaziarz requested review from jla-gardner and mrwnmsr April 8, 2026 13:24
@kmaziarz kmaziarz enabled auto-merge (squash) April 8, 2026 14:02
@kmaziarz kmaziarz requested a review from fiberleif April 10, 2026 12:03
Copy link
Copy Markdown

@fiberleif fiberleif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kmaziarz kmaziarz merged commit d07815e into main Apr 10, 2026
6 checks passed
@kmaziarz kmaziarz deleted the kmaziarz/expose-num-processes-in-rule-server branch April 10, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants