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

GaLore Finetuning Example #10722

Merged
merged 11 commits into from Apr 18, 2024
Merged

Conversation

Uxito-Ada
Copy link
Contributor

@Uxito-Ada Uxito-Ada commented Apr 10, 2024

Description

add an example of new fine-tuning algorithm on IPEX-LLM llama2 7b
#nano

1. Why the change?

as above

2. User API changes

How to Run

python galore_finetuning.py --repo-id-or-model-path '/home/wangruonan/llm-models/Llama-2-7b-chat-hf' --data-path 'g-ronimo/oasst2_top4k_en' --output-dir './ipex-llm-galore'

3. Summary of the change

GaLore Finetuning Example

4. How to test?

  • N/A
  • Unit test
  • Application test
  • Document test
  • ...

5. New dependencies

galore-torch
trl==0.8.1


**--repo-id-or-model-path** : default to `meta-llama/Llama-2-7b-hf`, and you can also specify your local model path.

**--data-path** : default to `g-ronimo/oasst2_top4k_en`, and you can also specify your local datal path.
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

change dataset to HuggingFaceH4/helpful_instructions, a chat completion dataset, which is on our white list

parser.add_argument('--repo-id-or-model-path', type=str, default="meta-llama/Llama-2-7b-chat-hf",
help='The huggingface repo id for the Llama2 (e.g. `meta-llama/Llama-2-7b-chat-hf` and `meta-llama/Llama-2-13b-chat-hf`) to be downloaded'
', or the path to the huggingface checkpoint folder')
parser.add_argument('--data-path', type=str, default="g-ronimo/oasst2_top4k_en",
Copy link
Contributor

@glorysdj glorysdj Apr 11, 2024

Choose a reason for hiding this comment

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

dataset need to be verified

Copy link
Contributor

@glorysdj glorysdj left a comment

Choose a reason for hiding this comment

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

LGTM

@Uxito-Ada Uxito-Ada merged commit 581ebf6 into intel-analytics:main Apr 18, 2024
31 checks passed
@Uxito-Ada Uxito-Ada deleted the heyang_24_4_10 branch April 18, 2024 05:47
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

2 participants