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

Remove the symbolic structure #48

Merged
merged 15 commits into from
Apr 19, 2023
Merged

Remove the symbolic structure #48

merged 15 commits into from
Apr 19, 2023

Conversation

rlouf
Copy link
Member

@rlouf rlouf commented Apr 12, 2023

Following the new proposal in https://docs.google.com/document/d/1OhFDi9XvJEkopPZ6zwSIzzOPAQ-9o64HhhJZXpKlRos/edit?resourcekey=0-6XWD2UYq465H7ZKLOmQd-A#heading=h.c0uts5ftkk58

  • Remove symbolic elements
  • Add tests for template rendering
  • Refactor the OpenAI integration
  • Add model router
  • Refactor the HF transformers integration
  • Refactor the HF diffusers integration
  • Add caching to all the generation functions with joblib
  • Add chat completion

Also closes #49. Closes #51.

@rlouf rlouf force-pushed the simplify_codebase branch 2 times, most recently from 50dc834 to a4389e6 Compare April 13, 2023 13:47
@rlouf rlouf changed the title Simplify the codebase Remove the symbolic structure Apr 13, 2023
rlouf and others added 6 commits April 13, 2023 17:01
The logic in the `outlines.text.completion` function is obscured
by the necessity to parse model paths and initialize models. We
thus create a function that returns the model that corresponds to
the input path if such model exists.
@rlouf rlouf force-pushed the simplify_codebase branch 2 times, most recently from 1be5575 to 6731deb Compare April 13, 2023 15:49
@rlouf rlouf force-pushed the simplify_codebase branch 9 times, most recently from 33be9f3 to 890bb98 Compare April 19, 2023 08:27
Jinja2 does not fail when the user calls for an attribute that does not
exist, and replaces the template variable with an empty string. This
behavior is error-prone in this context. We thus ask Jinja2 explicity to
raise an exception in these cases.
@rlouf rlouf merged commit 22fdde3 into main Apr 19, 2023
@rlouf rlouf deleted the simplify_codebase branch April 19, 2023 09:47
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.

Add chat completion Persist the cache between sessions
1 participant