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

example: transformers add model parallelism to CodeGen #17

Open
wants to merge 1 commit into
base: example_transformers
Choose a base branch
from

Conversation

iejMac
Copy link
Owner

@iejMac iejMac commented Dec 4, 2022

@iejMac
Copy link
Owner Author

iejMac commented Dec 4, 2022

openai can you summarize this PR?

@github-actions
Copy link

github-actions bot commented Dec 4, 2022

This GitHub Pull Request adds model parallelism to the CodeGen modeling process of the Fake Transformers library by making changes to the modeling_codegen.py file. The changes include the addition of instance variables and methods for swapping the devices for layers of the model, as well as modifying the forward method of the class to handle model parallelism. Additionally, it adds a few logging statements to make debugging easier. Possible improvements could include making the model parallelism optional by adding a model parallelism argument to the init and parallelize methods.

@iejMac iejMac added the example label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant