Skip to content

[Feature] Local fine-tuning support #8035

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks
wmpauli opened this issue Mar 31, 2025 · 1 comment
Open
2 tasks

[Feature] Local fine-tuning support #8035

wmpauli opened this issue Mar 31, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@wmpauli
Copy link

wmpauli commented Mar 31, 2025

What feature would you like to see?

Thank you for developing DSPY. It's a great tool. I'm somewhat new to it and am trying to figure out how to perform local fine-tuning with dspy.BootstrapFinetune. Which models are supported? How do I set this up?

On another/related note. I see that dspy.HFClientVLLM has been deprecated. It is mentioned on https://dspy.ai/deep-dive/language_model_clients/lm_local_models/HFClientVLLM/ (w/ a note regarding deprecation), and I'd be curious to know what we should use instead.

Would you like to contribute?

  • Yes, I'd like to help implement this.
  • No, I just want to request it.

Additional Context

No response

@wmpauli wmpauli added the enhancement New feature or request label Mar 31, 2025
@wmpauli
Copy link
Author

wmpauli commented Mar 31, 2025

Regrading the related note, I believe that this is the answer. Still curious about the local fine-tuning though.

import dspy

model_name = "hosted_vllm/deepseek-ai/deepseek-llm-7b-chat"

vllm_mpt = dspy.LM(
    model_name, api_base="http://localhost:8000/v1/", provider=LocalProvider(), temperature=1.0, cache=False
)
dspy.configure(lm=vllm_mpt)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant