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

Kernel injection fixes #601

Merged
merged 5 commits into from
Dec 15, 2020
Merged

Conversation

tjruwase
Copy link
Contributor

Add replacement API with configurable kernel optimizations
Release context memory ASAP
Add training flag to replacement API

Transformer Layer creation API with configurable kernel optimizations
Add training flag to creation API
@tjruwase tjruwase changed the base branch from master to jeffra/inject_v2 December 14, 2020 15:17
@jeffra
Copy link
Collaborator

jeffra commented Dec 14, 2020

Offline discussion, new API to implement:

config = deepspeed.ops.DeepSpeedTransformerConfig(bsz=32, seq=128, ..., huggingface=true)
model = deepspeed.ops.replace_module(
           orig_module_impl=transformers.modeling_bert.BertLayer,
           model=model,
           config=config)

short-term TODO (not in this PR): add support for some kind of consistent hashing/versioning of the orig_module_impl to ensure we know how to translate between modules and they haven't changed.

@tjruwase tjruwase merged commit 1b42798 into jeffra/inject_v2 Dec 15, 2020
cmikeh2 added a commit that referenced this pull request Nov 3, 2023
Co-authored-by: Jeff Rasley <[email protected]>
Co-authored-by: Ammar Ahmad Awan <[email protected]>
Co-authored-by: Connor Holmes <[email protected]>
Co-authored-by: Masahiro Tanaka <[email protected]>
Co-authored-by: Logan Adams <[email protected]>
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.

3 participants