litellm, allowing you to use quantized local models with any DSPy module that relies on the LM interface.
Install the dspy package:
anaconda/server/<server-name>:
dspy package, see the official documentation.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
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
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.import dspy
import anaconda_ai.integrations.litellm
lm = dspy.LM('anaconda/openhermes-2.5-mistral-7b/q4_k_m')
dspy.configure(lm=lm)
chain = dspy.ChainOfThought("question -> answer")
chain(question="Who are you?")
anaconda/server/<server-name>:
lm = dspy.LM('anaconda/server/my-server')
dspy package, see the official documentation.Was this page helpful?