-
Notifications
You must be signed in to change notification settings - Fork 328
LLM fine-tuning #1350
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
Merged
Merged
LLM fine-tuning #1350
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
e3bea27
fine-tuning text classification in progress
santiatpml c4cf332
More commit messages
santiatpml fb7cc2a
Working text classification with dataset args and training args
santiatpml 5584487
finetuing with text dataset enum to handle different tasks
santiatpml 82cb4f7
text pair classification task support
santiatpml c10de47
saving model after training
santiatpml 63ee09b
removed device to cpu
santiatpml 865ae28
updated transforemrs
097a8cf
Working e2e finetunig for two tasks
2dd50e6
Integration with huggingface hub and wandb
6ac8722
Conversation dataset + training placeholder
1e40cd8
Updated rust to fix failing tests
312d893
working version of conversation with lora + load 8bit + hf hub
afc2e93
Tested llama2-7b finetuning
22ee5c7
pypgrx first working version
97d455d
refactoring finetuning code to add callbacks
santiatpml b700944
fixed merge conflicts
santiatpml 65d2f8b
Refactored finetuning + conversation + pgml callbacks
5f1b5f4
removed wandb dependency
08084bf
removed local pypgrx from requirements
dc0c6ee
removed maturin from requirements
421af8f
removed flash attn
4bbca96
Added indent for info display
3db857c
Updated readme with LLM fine-tuning for text classification
santiatpml 7cbee43
README updates
santiatpml 9284cf1
Added a tutorial for 9 classes - draft 1
santiatpml 66c65c8
README updates
santiatpml 5759ee3
Moved python functions (#1374)
SilasMarvin b539168
README updates
santiatpml 31215b8
migrations and removed pypgrx
santiatpml dae6b74
Added r_log to take log level and message
santiatpml dae5ffc
Updated version and requirements
435f5bd
Changed version 2.8.3
aeb2683
README updates for conversation task fine-tuning using lora
santiatpml e5221cc
minor readme updates
santiatpml 6db147e
added new line
santiatpml File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,5 @@ | |
.DS_Store | ||
|
||
|
||
# venv | ||
pgml-venv |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- Add conversation, text-pair-classification task type | ||
ALTER TYPE pgml.task ADD VALUE IF NOT EXISTS 'conversation'; | ||
ALTER TYPE pgml.task ADD VALUE IF NOT EXISTS 'text-pair-classification'; | ||
|
||
-- Crate pgml.logs table | ||
CREATE TABLE IF NOT EXISTS pgml.logs ( | ||
id SERIAL PRIMARY KEY, | ||
model_id BIGINT, | ||
project_id BIGINT, | ||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | ||
logs JSONB | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the underscore? Is it because it's not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's correct.