The SDK integrates with DSPy using litellm, allowing you to use quantized local models with any DSPy module that relies on the LM interface.Install the dspy package:
conda install dspy
Only pip install packages in your conda environment once all other packages and their dependencies have been installed. For more information on installing pip packages in your conda environment, see Installing pip packages.
Here is an example of how to use DSPy with Anaconda’s models: