Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: utilities to post process checkpoint for LoRA (#338)
* utilities to post process checkpoint for LoRA Signed-off-by: Sukriti-Sharma4 <[email protected]> * improve code comments Signed-off-by: Sukriti-Sharma4 <[email protected]> * Add unit test and fix some lint errors Signed-off-by: Angel Luu <[email protected]> * lint: fix more fmt errors Signed-off-by: Angel Luu <[email protected]> * feat: Add post_process_vLLM_adapters_new_tokens function to main Signed-off-by: Will Johnson <[email protected]> * fmt Signed-off-by: Will Johnson <[email protected]> * fix: Add post processing flag so post processing is only done for vLLM Signed-off-by: Will Johnson <[email protected]> * fix: get num_added_tokens from resize function (#344) * get num_added_tokens Signed-off-by: Sukriti-Sharma4 <[email protected]> * remove extra code Signed-off-by: Sukriti-Sharma4 <[email protected]> --------- Signed-off-by: Sukriti-Sharma4 <[email protected]> * Ran fmt and also removed unneccessary files from test artifact Signed-off-by: Angel Luu <[email protected]> * fix: unit tests Signed-off-by: Sukriti-Sharma4 <[email protected]> * fix: Adding tokens in special_tokens_dict Signed-off-by: Abhishek <[email protected]> * fix: Add additional arg to tests to reflect new flag post_process_vllm Signed-off-by: Will Johnson <[email protected]> * fmt Signed-off-by: Will Johnson <[email protected]> * feat: Refactor post-processing of adapters (#345) * refactor saving tokens metadata Signed-off-by: Sukriti-Sharma4 <[email protected]> * remove extra check Signed-off-by: Sukriti-Sharma4 <[email protected]> * post processing script Signed-off-by: Sukriti-Sharma4 <[email protected]> * post processing script Signed-off-by: Sukriti-Sharma4 <[email protected]> * fix: unit test args Signed-off-by: Sukriti-Sharma4 <[email protected]> * undo post_process_vLLm flag Signed-off-by: Sukriti-Sharma4 <[email protected]> --------- Signed-off-by: Sukriti-Sharma4 <[email protected]> * add test for LoRA tuning from main Signed-off-by: Sukriti-Sharma4 <[email protected]> * fix formatting Signed-off-by: Sukriti-Sharma4 <[email protected]> * correcting post processing script Signed-off-by: Sukriti-Sharma4 <[email protected]> * fix:post-process in place Signed-off-by: Sukriti-Sharma4 <[email protected]> * update documentation for post-processing Signed-off-by: Sukriti-Sharma4 <[email protected]> * fix:formatting Signed-off-by: Sukriti-Sharma4 <[email protected]> * fix:linting Signed-off-by: Sukriti-Sharma4 <[email protected]> * more warnings /exceptions in script Signed-off-by: Sukriti-Sharma4 <[email protected]> * check for no tokens added Signed-off-by: Sukriti-Sharma4 <[email protected]> * fix:linting Signed-off-by: Sukriti-Sharma4 <[email protected]> * additional unit test Signed-off-by: Sukriti-Sharma4 <[email protected]> * add more tests Signed-off-by: Sukriti-Sharma4 <[email protected]> * fix:tokenizer test Signed-off-by: Sukriti-Sharma4 <[email protected]> * fix:linting and docstrings Signed-off-by: Sukriti-Sharma4 <[email protected]> * fix:return type of trainer Signed-off-by: Sukriti-Sharma4 <[email protected]> * test: enable tests and fix copytree Signed-off-by: Anh Uong <[email protected]> * use copy function from build Signed-off-by: Sukriti-Sharma4 <[email protected]> * fix:linting and formatting Signed-off-by: Sukriti-Sharma4 <[email protected]> * make build a module Signed-off-by: Sukriti-Sharma4 <[email protected]> * add back old copy function Signed-off-by: Sukriti-Sharma4 <[email protected]> --------- Signed-off-by: Sukriti-Sharma4 <[email protected]> Signed-off-by: Angel Luu <[email protected]> Signed-off-by: Will Johnson <[email protected]> Signed-off-by: Abhishek <[email protected]> Signed-off-by: Anh Uong <[email protected]> Co-authored-by: Angel Luu <[email protected]> Co-authored-by: Will Johnson <[email protected]> Co-authored-by: Abhishek <[email protected]> Co-authored-by: Anh Uong <[email protected]>
- Loading branch information