Skip to content

Conversation

@KCaverly
Copy link
Collaborator

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

okhat and others added 30 commits March 2, 2024 15:15
…r-to-completed-version

Update skycamp2023.ipynb
* 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
thomasahle and others added 14 commits March 14, 2024 22:25
…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
@KCaverly KCaverly marked this pull request as ready for review March 19, 2024 14:44
Copy link
Collaborator

@thomasahle thomasahle left a 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
Copy link
Collaborator

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
Copy link
Collaborator

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.