Runs with --parallel_attempts > 1 can lead to multiprocessing notifying about leaked semaphore objects
Description
--
Expected behaviour
No leaks
Sample output
...
✔️ garak run complete in 1482.95s
/home/lderczynski/anaconda3/envs/garak/lib/python3.12/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 19 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
/home/lderczynski/anaconda3/envs/garak/lib/python3.12/multiprocessing/resource_tracker.py:237: UserWarning: resource_tracker: '/mp-usl2673p': [Errno 2] No such file or directory
warnings.warn('resource_tracker: %r: %s' % (name, e))
/home/lderczynski/anaconda3/envs/garak/lib/python3.12/multiprocessing/resource_tracker.py:237: UserWarning: resource_tracker: '/mp-ruplnbjm': [Errno 2] No such file or directory
warnings.warn('resource_tracker: %r: %s' % (name, e))
/home/lderczynski/anaconda3/envs/garak/lib/python3.12/multiprocessing/resource_tracker.py:237: UserWarning: resource_tracker: '/mp-fvsrh80h': [Errno 2] No such file or directory
warnings.warn('resource_tracker: %r: %s' % (name, e))
/home/lderczynski/anaconda3/envs/garak/lib/python3.12/multiprocessing/resource_tracker.py:237: UserWarning: resource_tracker: '/mp-2_tcc6ef': [Errno 2] No such file or directory
warnings.warn('resource_tracker: %r: %s' % (name, e))
/home/lderczynski/anaconda3/envs/garak/lib/python3.12/multiprocessing/resource_tracker.py:237: UserWarning: resource_tracker: '/mp-1mt7r0o_': [Errno 2] No such file or directory
warnings.warn('resource_tracker: %r: %s' % (name, e))
Recreating
command line:
$ garak --config ~/bag.yaml -m nim -n mediatek/breeze-7b-instruct --report_prefix breeze_7b
Summary
Runs with
--parallel_attempts
> 1 can lead tomultiprocessing
notifying about leaked semaphore objectsDescription
--
Expected behaviour
No leaks
Sample output
Recreating
command line:
$ garak --config ~/bag.yaml -m nim -n mediatek/breeze-7b-instruct --report_prefix breeze_7b
bag.yaml: