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

Add Cerebras API + node validation for airetry! #217

Merged
merged 2 commits into from
Oct 9, 2024
Merged

Conversation

svilupp
Copy link
Owner

@svilupp svilupp commented Oct 9, 2024

Added

  • Added support for Cerebras hosted models (set your ENV CEREBRAS_API_KEY). Available model aliases: cl3 (Llama3.1 8bn), cl70 (Llama3.1 70bn).
  • Added a kwarg to aiclassify to provide a custom token ID mapping (token_ids_map) to work with custom tokenizers.

Updated

  • Improved the implementation of airetry! to concatenate feedback from all ancestor nodes ONLY IF feedback_inplace=true (because otherwise LLM can see it in the message history).

Fixed

  • Fixed a potential bug in airetry! where the aicall object was not properly validated to ensure it has been run! first.

@svilupp
Copy link
Owner Author

svilupp commented Oct 9, 2024

Closes #216

Copy link

codecov bot commented Oct 9, 2024

Codecov Report

Attention: Patch coverage is 78.94737% with 4 lines in your changes missing coverage. Please review.

Project coverage is 91.47%. Comparing base (188ede9) to head (7c1722c).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/llm_openai.jl 66.66% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #217      +/-   ##
==========================================
- Coverage   91.54%   91.47%   -0.07%     
==========================================
  Files          46       46              
  Lines        4425     4436      +11     
==========================================
+ Hits         4051     4058       +7     
- Misses        374      378       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@svilupp
Copy link
Owner Author

svilupp commented Oct 9, 2024

CI failure looks related to Documenter.jl. Unrelated to the current PR! Will proceed

@svilupp svilupp merged commit 592eafb into main Oct 9, 2024
2 of 5 checks passed
@svilupp svilupp deleted the add-cerebras branch October 9, 2024 20:34
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.

1 participant