-
Notifications
You must be signed in to change notification settings - Fork 9
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
Merge 'main' into 'llama' #26
Conversation
Add missing argument explanations to various functions across multiple files. * **`fusion_bench/compat/taskpool/clip_image_classification.py`**: - Add explanation for `clip_model` argument in `evaluate` function. - Add explanation for `model` argument in `evaluate` function. * **`fusion_bench/compat/taskpool/flan_t5_glue_text_generation.py`**: - Add explanation for `model` argument in `evaluate` function. * **`fusion_bench/dataset/gsm8k.py`**: - Add explanation for `dataset_name` argument in `load_gsm8k_question_label_data` function. * **`fusion_bench/dataset/nyuv2.py`**: - Add explanation for `index` argument in `__getitem__` function. * **`fusion_bench/method/adamerging/task_wise_adamerging.py`**: - Add explanation for `module`, `batch`, and `task` arguments in `compute_logits` function. * **`fusion_bench/method/dawe/dawe_for_clip.py`**: - Add explanation for `pretrained_model_name_or_path` argument in `load_resnet_processor` function. * **`fusion_bench/method/dummy.py`**: - Add explanation for `modelpool` argument in `run` function. * **`fusion_bench/method/ensemble.py`**: - Add explanation for `modelpool` argument in `run` function. * **`fusion_bench/method/linear/expo.py`**: - Add explanation for `modelpool` argument in `run` function. * **`fusion_bench/method/linear/linear_interpolation.py`**: - Add explanation for `modelpool` argument in `run` function. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/tanganke/fusion_bench?shareId=XXXX-XXXX-XXXX-XXXX).
commit 160eeaf Author: tanganke <tang.anke@foxmail.com> Date: Fri Nov 1 20:29:05 2024 +0800 modified: fusion_bench/taskpool/llama/test_generation.py commit 574447f Author: tanganke <tang.anke@foxmail.com> Date: Fri Nov 1 19:41:52 2024 +0800 update expo.py commit 4e613a4 Author: tanganke <tang.anke@foxmail.com> Date: Fri Nov 1 18:32:17 2024 +0800 update task vector cos similarity visualization commit 201c81b Author: Anke Tang <tang.anke@foxmail.com> Date: Fri Nov 1 15:42:34 2024 +0800 update docstring commit 50b5974 Author: Anke Tang <tang.anke@foxmail.com> Date: Fri Nov 1 15:41:09 2024 +0800 fix bugs commit 92548f6 Author: Anke Tang <tang.anke@foxmail.com> Date: Fri Nov 1 15:34:51 2024 +0800 update docs and test generation for llama taskpool commit 7a4ec5d Author: Anke Tang <tang.anke@foxmail.com> Date: Fri Nov 1 15:27:04 2024 +0800 update LlamaTestGenerationTaskPool commit 04048f5 Author: Anke Tang <tang.anke@foxmail.com> Date: Fri Nov 1 15:25:53 2024 +0800 add LlamaTestGenerationTaskPool commit f22ae6d Author: tanganke <tang.anke@foxmail.com> Date: Fri Nov 1 12:14:02 2024 +0800 update functions related to llama models new file: fusion_bench/dataset/llama/openai.py modified: fusion_bench/modelpool/base_pool.py modified: fusion_bench/modelpool/causal_lm/causal_lm.py new file: fusion_bench/taskpool/llama/__init__.py new file: fusion_bench/taskpool/llama/test_generation.py commit 378efd2 Author: tanganke <tang.anke@foxmail.com> Date: Fri Nov 1 09:15:58 2024 +0800 update modified: config/method/adamerging/llama_sft.yaml modified: fusion_bench/dataset/llama/alpaca.py commit ea0cfa5 Author: tanganke <tang.anke@foxmail.com> Date: Thu Oct 31 21:07:35 2024 +0800 update commit 5d3e2f8 Author: tanganke <tang.anke@foxmail.com> Date: Thu Oct 31 20:57:44 2024 +0800 remove unused files commit aacdc97 Author: tanganke <tang.anke@foxmail.com> Date: Thu Oct 31 20:56:00 2024 +0800 update sharegpt.py commit d0acaaa Author: tanganke <tang.anke@foxmail.com> Date: Thu Oct 31 20:26:00 2024 +0800 add sharegpt.py commit 37e1ab3 Author: tanganke <tang.anke@foxmail.com> Date: Thu Oct 31 18:27:07 2024 +0800 new file: fusion_bench/dataset/llama/alpaca.py commit 67688c3 Author: tanganke <tang.anke@foxmail.com> Date: Thu Oct 31 17:38:33 2024 +0800 rename squad.py and wikitext.py commit c53288c Author: tanganke <tang.anke@foxmail.com> Date: Thu Oct 31 17:35:28 2024 +0800 add AdamW mixin commit 2ec72e4 Author: tanganke <tang.anke@foxmail.com> Date: Thu Oct 31 17:17:01 2024 +0800 Add squad.py, update docs commit aa3b318 Author: tanganke <tang.anke@foxmail.com> Date: Thu Oct 31 16:03:40 2024 +0800 optimize task_vector_violin_plot commit 8a5806f Author: tanganke <tang.anke@foxmail.com> Date: Thu Oct 31 15:49:24 2024 +0800 add TaskVectorViolinPlot new file: config/method/analysis/task_vector_violin_plot.yaml new file: fusion_bench/method/analysis/task_vector_violin_plot.py commit 418a802 Author: tanganke <tang.anke@foxmail.com> Date: Thu Oct 31 14:30:10 2024 +0800 fix bugs commit 855460a Merge: 18717f0 b37a63a Author: tanganke <tang.anke@foxmail.com> Date: Thu Oct 31 14:12:07 2024 +0800 Merge branch 'llama' of https://github.com/tanganke/fusion_bench into llama commit b37a63a Author: Anke Tang <tang.anke@foxmail.com> Date: Thu Oct 31 11:34:58 2024 +0800 Update llama_sft.yaml, llama_adamerging.py, layer_wise_fusion.py. commit e306e38 Author: Anke Tang <tang.anke@foxmail.com> Date: Thu Oct 31 11:10:23 2024 +0800 refactor: rename BaseModelFusionAlgorithm to BaseAlgorithm **Key changes**: - Renamed BaseModelFusionAlgorithm to BaseAlgorithm for better clarity and consistency - Updated all references to BaseModelFusionAlgorithm across the codebase - Added BaseModelAlgorithm as an alias for BaseAlgorithm for backward compatibility - Added/improved docstrings for models/wrappers/ensemble.py - No functional changes - purely refactoring of class names commit 8268d7a Author: tanganke <tang.anke@foxmail.com> Date: Wed Oct 30 20:50:39 2024 +0800 update code commit 18717f0 Author: tanganke <tang.anke@foxmail.com> Date: Wed Oct 30 20:50:39 2024 +0800 update code commit be0442e Author: tanganke <tang.anke@foxmail.com> Date: Wed Oct 30 20:20:56 2024 +0800 update config commit 46ae4b6 Author: tanganke <tang.anke@foxmail.com> Date: Wed Oct 30 20:20:56 2024 +0800 update config commit 3538534 Author: tanganke <tang.anke@foxmail.com> Date: Wed Oct 30 20:16:55 2024 +0800 update llama_sft adamerging commit a4a6c89 Author: tanganke <tang.anke@foxmail.com> Date: Wed Oct 30 20:16:55 2024 +0800 update llama_sft adamerging commit c68b7d2 Author: tanganke <tang.anke@foxmail.com> Date: Wed Oct 30 14:52:22 2024 +0800 update llama adamerging commit a58cb45 Author: tanganke <tang.anke@foxmail.com> Date: Wed Oct 30 10:49:37 2024 +0800 update data for llama models commit ccfc3c2 Author: tanganke <tang.anke@foxmail.com> Date: Wed Oct 30 14:52:22 2024 +0800 update llama adamerging commit bcefd49 Author: tanganke <tang.anke@foxmail.com> Date: Wed Oct 30 10:49:37 2024 +0800 update data for llama models commit a66f396 Author: tanganke <tang.anke@foxmail.com> Date: Wed Oct 30 10:07:00 2024 +0800 update data utils for llama models commit d0b0884 Author: tanganke <tang.anke@foxmail.com> Date: Wed Oct 30 09:54:05 2024 +0800 add collator and template commit d722c1a Author: tanganke <tang.anke@foxmail.com> Date: Wed Oct 30 10:07:00 2024 +0800 update data utils for llama models commit 9bad0eb Author: tanganke <tang.anke@foxmail.com> Date: Wed Oct 30 09:54:05 2024 +0800 add collator and template commit 71a9291 Author: Anke Tang <tang.anke@foxmail.com> Date: Wed Oct 30 00:39:26 2024 +0800 Update utils modified: fusion_bench/utils/devices.py modified: fusion_bench/utils/parameters.py commit dcdeb1b Author: Anke Tang <tang.anke@foxmail.com> Date: Wed Oct 30 00:05:59 2024 +0800 Enhance LLaMA model integration commit d09ca14 Author: Anke Tang <tang.anke@foxmail.com> Date: Wed Oct 30 00:39:26 2024 +0800 Update utils modified: fusion_bench/utils/devices.py modified: fusion_bench/utils/parameters.py commit a4cc970 Author: Anke Tang <tang.anke@foxmail.com> Date: Wed Oct 30 00:05:59 2024 +0800 Enhance LLaMA model integration commit 68ee6be Author: tanganke <tang.anke@foxmail.com> Date: Tue Oct 29 21:38:08 2024 +0800 partial update commit 72c21bb Author: tanganke <tang.anke@foxmail.com> Date: Tue Oct 29 21:38:08 2024 +0800 partial update commit 7026685 Author: tanganke <tang.anke@foxmail.com> Date: Tue Oct 29 20:13:32 2024 +0800 add Dare simple_average
…nch/taskpool/clip_vision/taskpool.py
Images automagically compressed by Calibre's image-actions ✨ Compression reduced images by 42.1%, saving 455.32 KB.
62 images did not require optimisation. |
Copilot
AI
left a comment
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.
Copilot reviewed 10 out of 25 changed files in this pull request and generated 1 suggestion.
Files not reviewed (15)
- .vscode/.gitignore: Language not supported
- fusion_bench/dataset/gsm8k.py: Evaluated as low risk
- fusion_bench/method/analysis/task_vector_cos_similarity.py: Evaluated as low risk
- fusion_bench/method/linear/linear_interpolation.py: Evaluated as low risk
- fusion_bench/method/dummy.py: Evaluated as low risk
- fusion_bench/compat/taskpool/clip_image_classification.py: Evaluated as low risk
- fusion_bench/dataset/nyuv2.py: Evaluated as low risk
- fusion_bench/method/dawe/dawe_for_clip.py: Evaluated as low risk
- fusion_bench/compat/taskpool/flan_t5_glue_text_generation.py: Evaluated as low risk
- fusion_bench/method/adamerging/clip_layer_wise_adamerging.py: Evaluated as low risk
- fusion_bench/method/linear/expo.py: Evaluated as low risk
- fusion_bench/method/adamerging/task_wise_adamerging.py: Evaluated as low risk
- fusion_bench/method/ensemble.py: Evaluated as low risk
- fusion_bench/taskpool/clip_vision/taskpool.py: Evaluated as low risk
- README.md: Evaluated as low risk
Returns: | ||
Iterator: An iterator over the shuffled test DataLoader. | ||
""" | ||
# get dataloader kwargs |
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.
The word 'dataloader' should be 'DataLoader' to maintain consistency.
# get dataloader kwargs | |
DataLoader_kwargs = self._dataloader_kwargs.copy() |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
No description provided.