-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Complete LM/Backend Interoperability #674
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
Complete LM/Backend Interoperability #674
Conversation
…r-to-completed-version Update skycamp2023.ipynb
Improvements to Signature
* Add Ruff linting workflow * Update GitHub Actions workflows * Make ruff apply but not fail * Style fixes by Ruff * Combine Workflows * Add caching * Add import related rules * Automatic Style fixes * Try and fix caching * Fix import * Use natve python dep caching * Update actions/checkout to v4 * Use autofix in tests * Try to cache "install poetry" * Empty-Commit to test caching * Remove workflow deps * Rename action * Update workflow name * Fix Docker stop command and subprocess run check * Fix functional imports --------- Co-authored-by: isaacbmiller <isaacbmiller@users.noreply.github.com>
* Add Ruff linting workflow * Update GitHub Actions workflows * Make ruff apply but not fail * Style fixes by Ruff * Combine Workflows * Add caching * Add import related rules * Automatic Style fixes * Try and fix caching * Fix import * Use natve python dep caching * Update actions/checkout to v4 * Use autofix in tests * Try to cache "install poetry" * Empty-Commit to test caching * Remove workflow deps * Rename action * Update workflow name * Fix Docker stop command and subprocess run check * Fix functional imports * Remove --no-root flag --------- Co-authored-by: isaacbmiller <isaacbmiller@users.noreply.github.com>
A few more typed examples
Formatting for new optimizers
…tor-amir # Conflicts: # dsp/primitives/predict.py # dsp/utils/settings.py # dspy/predict/predict.py # dspy/primitives/prediction.py # dspy/signatures/signature.py # dspy/teleprompt/bootstrap.py # dspy/teleprompt/signature_opt.py # dspy/teleprompt/signature_opt_bayesian.py # dspy/utils/dummies.py # poetry.lock # pyproject.toml # tests/functional/test_functional.py # tests/predict/test_predict.py # tests/primitives/test_program.py # tests/teleprompt/test_copro_optimizer.py # tests/teleprompt/test_mipro_optimizer.py
…en lm and input arguments are accomodated for
thomasahle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some random comments from sampling all the files
| import regex | ||
|
|
||
| from dspy.primitives.example import Example | ||
| from dspy.signatures.signature import Signature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can just do from dspy import Signature
| from dspy.signatures.signature import ensure_signature | ||
|
|
||
| import pydantic | ||
| import ujson |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all seems to be stuff that's already in main...
This PR completes the Backend/Language Model v1 interoperability feature for DSPy.
All tests are passing, and we should be fairly close to merge to main.
There were a few small changes to COPRO/MIPRO optimizers, that I believe are due to inconsistencies in the functionality, so we may want to double check those.
@CyrusOfEden