initialising a barkmodel with attn_mechanism=âflash_attention_2â throws an unexpected keyword parameter: check_device_map error.
This seems to be because Barkmodel overrides the modelling_utils.py function called âcheck_and_enable_flash_attentionâ and leaves out a parameter.
I have submitted a PR with the following fix: is this acceptable?