Support for MPS device
fangyuan-ksgk opened this issue · comments
Can you please indicate how I can use your wonderful package in a Mac machine with M2/3 chip?
Currently I tried:
blender.loadranker("llm-blender/PairRM", device='mps')
Which works fine, but
ranks = blender.rank(inputs, candidates_texts, return_scores=False, batch_size=1)
Gives me error as it expects CUDA...
Thanks in advance!
This issues has been fixed in the latest github code. Please try reinstall the llm-blender package through
pip install git+https://github.com/yuchenlin/LLM-Blender.git
Then try the above code again