dspy
dspy copied to clipboard
Allow HFModel to use CPU
Quick fix https://github.com/stanfordnlp/dspy/issues/188
I think this minor fix could be very helpful for Mac beginners as well as CPU beginners who just get started using the library.
The change looks good to me. One thought is that it would been easier for whoever reads the PR if the changes only the fixes instead other changes such as coding style changes.
@insop thanks. I just reverted the coding style changes.
@insop thanks. I just reverted the coding style changes.
Looks great to me! thank you.
@okhat , maybe you could merge if you are okay with the change?
Merging but please prefer ollama over hfmodel when possible