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

[LLM] Few-shot learning via Retrieval-augmented ICL #3351

Merged
merged 108 commits into from
May 3, 2023
Merged

Conversation

geoffreyangus
Copy link
Collaborator

@geoffreyangus geoffreyangus commented Apr 17, 2023

This PR adds the ability to run few-shot learning style prompts for classification tasks using Large Language Models.

geoffreyangus and others added 4 commits April 16, 2023 12:48
…ng; TODO: get test_llm passing, remove prompt_template in favor of prompt
…samples; refactored config to have feature-level prompts. TODO: schemafy and clean up tests; consider testing with Ray; repro results from original notebook investigation
@github-actions
Copy link

github-actions bot commented Apr 17, 2023

Unit Test Results

    6 files  ±    0      6 suites  ±0   2h 26m 23s ⏱️ + 1h 26m 55s
163 tests +130  148 ✔️ +119  15 💤 +11  0 ±0 
208 runs  +109  186 ✔️ +  99  22 💤 +10  0 ±0 

Results for commit c34052a. ± Comparison against base commit ffd8aca.

♻️ This comment has been updated with latest results.

ludwig/models/llm.py Outdated Show resolved Hide resolved
ludwig/api.py Outdated Show resolved Hide resolved
@tgaddair tgaddair marked this pull request as ready for review May 1, 2023 21:30
Copy link
Collaborator

@tgaddair tgaddair left a comment

Choose a reason for hiding this comment

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

LGTM! Few nits.

ludwig/backend/ray.py Outdated Show resolved Hide resolved
ludwig/config_validation/checks.py Show resolved Hide resolved
ludwig/models/llm.py Show resolved Hide resolved
ludwig/models/llm.py Show resolved Hide resolved
ludwig/models/retrieval.py Outdated Show resolved Hide resolved
ludwig/schema/utils.py Show resolved Hide resolved
requirements_test.txt Outdated Show resolved Hide resolved
Copy link
Contributor

@arnavgarg1 arnavgarg1 left a comment

Choose a reason for hiding this comment

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

Great work!! 🚢

@arnavgarg1 arnavgarg1 merged commit 4e2b546 into master May 3, 2023
11 of 12 checks passed
@arnavgarg1 arnavgarg1 deleted the llm-few-shot branch May 3, 2023 18:28
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.

None yet

3 participants