The PR allows for specifying one of cpu, cuda, or mps to be the device type. It allows for quick and easy benchmarking on Mac devices running an M series chips. If not specified, the device chosen defaults to what would have been chosen in SentenceTransformer or similar modules. To benchmark on an M1 mac, one can do something such as
The PR allows for specifying one of
cpu
,cuda
, ormps
to be the device type. It allows for quick and easy benchmarking on Mac devices running an M series chips. If not specified, thedevice
chosen defaults to what would have been chosen inSentenceTransformer
or similar modules. To benchmark on an M1 mac, one can do something such asSince
typer
is used, the help text is also updated accordingly