Skip to content

Conversation

@zihan-huang
Copy link
Collaborator

…s pools for evaluation

  • Updated LocalExecutor to utilize both ThreadPoolExecutor and ProcessPoolExecutor based on input arguments for improved concurrency.
  • Modified InputArgs to replace max_workers with process_num and thread_num for clearer configuration.
  • Use tqdm for each item

…s pools for evaluation

- Updated LocalExecutor to utilize both ThreadPoolExecutor and ProcessPoolExecutor based on input arguments for improved concurrency.
- Modified InputArgs to replace max_workers with process_num and thread_num for clearer configuration.
- Use tqdm for each item
dingo/run/cli.py Outdated
parser.add_argument("--process_workers", type=int,
default=None, help="The number of process workers to concurrent check. ")
parser.add_argument("--thread_workers", type=int,
default=None, help="The number of thread workers to concurrent check. ")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we expose only one argument for users? I would be confused when there are two parameters. So I prefer the orginal name max_workers

@shijinpjlab shijinpjlab merged commit cc5b726 into dev Jan 15, 2025
3 checks passed
@shijinpjlab shijinpjlab deleted the feature-pool branch April 17, 2025 08:45
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.

4 participants