Convenience function to set up the future plan for optimal LLM parallel processing. Automatically detects system capabilities and sets appropriate defaults.
Arguments
- workers
Integer. Number of workers to use. If NULL, auto-detects optimal number (availableCores - 1, capped at 8). If called as
setup_llm_parallel(4), the single numeric positional argument is interpreted asworkers.- strategy
Character. The future strategy to use. Options: "multisession", "multicore", "sequential". If NULL (default), automatically chooses "multisession".
- verbose
Logical. If TRUE, prints setup information.
Examples
# Two background workers, then back to sequential processing
setup_llm_parallel(workers = 2, verbose = TRUE)
reset_llm_parallel()
# Sequential processing, for debugging
setup_llm_parallel(strategy = "sequential")
reset_llm_parallel()