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

[WIP][feature] Support Mixtral-8x7B SFT, Reward, and Alignment #95

Open
wants to merge 33 commits into
base: main
Choose a base branch
from

Conversation

haolin-nju
Copy link
Collaborator

This PR involves:

  1. Support Mixture-of-Experts model and Expert Parallel (EP) in ChatLearn;
  2. Implement an example on Mixtral-8x7B SFT, Reward, RLHF, DPO, and other alignment algorithms.

@haolin-nju haolin-nju changed the title [WIP] Feature: Support Mixtral-8x7B SFT, Reward, Alignment [WIP] Feature: Support Mixtral-8x7B SFT, Reward, and Alignment Sep 24, 2024
@haolin-nju haolin-nju changed the title [WIP] Feature: Support Mixtral-8x7B SFT, Reward, and Alignment [WIP][feature] Support Mixtral-8x7B SFT, Reward, and Alignment Oct 22, 2024
NNODES=$WORLD_SIZE


dp=$(($WORLD_SIZE * $GPUS_PER_NODE / $tp / $pp / $ep))

Choose a reason for hiding this comment

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

it's not supposed to divide ep here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

NNODES=$WORLD_SIZE


dp=$(($WORLD_SIZE * $GPUS_PER_NODE / $tp / $pp / $ep))

Choose a reason for hiding this comment

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

neither is here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

cd ${CHATLEARN}/examples/megatron/alignment/reward

torchrun $DISTRIBUTED_ARGS \
finetune_reward.py \

Choose a reason for hiding this comment

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

should be entry/train_reward.py

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

cd ${CHATLEARN}/examples/megatron/sft

torchrun $DISTRIBUTED_ARGS \
finetune_sft.py \

Choose a reason for hiding this comment

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

shold be entry/train_sft.py

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

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.

2 participants