Skip to content
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

Backend Refactor [WIP] #424

Merged
merged 71 commits into from
May 29, 2024
Merged

Backend Refactor [WIP] #424

merged 71 commits into from
May 29, 2024

Conversation

CyrusNuevoDia
Copy link
Collaborator

No description provided.

@CyrusNuevoDia CyrusNuevoDia changed the base branch from main to pydantic February 21, 2024 01:04
@CyrusNuevoDia CyrusNuevoDia changed the base branch from pydantic to main February 21, 2024 01:04
@KCaverly
Copy link
Collaborator

@okhat @arnavsinghvi11 are we good to merge this one?

dspy/predict/aggregation.py Outdated Show resolved Hide resolved
@okhat
Copy link
Collaborator

okhat commented Apr 28, 2024

Hey everyone, just catching up on this. Let's prioritize merging very soon (let's say within 2 days).

Biggest problem right now is that I gather (but not sure) that 90% of the files changed are just formatting. Is this accurate? It makes it harder to review this PR. Do we need these formatting changes? Isn't ruff supposed to take that out of the story? Basically I'd love to review a version of this PR that's mostly or entirely actual updates so nothing slips.

@KCaverly
Copy link
Collaborator

KCaverly commented Apr 28, 2024

That is correct, we did our best but its messy. Without rewriting this PR from scratch, I dont think we can make it cleaner. The repo went through so many major changes during this period and the merges got a bit clobbered.

Ive outlined the three areas to review above. It should just be the modeling/predict and primitives/prediction modules. Ive extensively tested this and it should be fine.

I would love to see this merged within 48 hours. Its not perfect, and there are additional issues we can fix on follow up, but existing functionality remains unchanged.

With CI and consistent formatting, I think all future changes will be much better scoped and focused.

Please let me know whats needed to get this over the line.

Comment on lines +57 to +58
self.kwargs.pop("frequency_penalty", None)
self.kwargs.pop("presence_penalty", None)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it worth having a seperate "run ruff on everything" PR? The pre-commit hooks only look at changed files so source which predates ruff is still unformatted.

@samiur
Copy link

samiur commented May 16, 2024

Hi @okhat any update on when this can be merged? We use Instructor for a few things, and I'd like to create an InstructorBackend for ourselves instead of creating a new TypedInstructorPredictor and TypedInstructorChainOfThought

@KCaverly KCaverly changed the base branch from main to rc May 21, 2024 23:21
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.

8 participants