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

Refactor, deepspeed support #49

Merged
merged 8 commits into from
Apr 23, 2024
Merged

Refactor, deepspeed support #49

merged 8 commits into from
Apr 23, 2024

Conversation

zzasdf
Copy link
Collaborator

@zzasdf zzasdf commented Mar 28, 2024

What does this PR do?

  • Simplify the config in example
  • Add decode script to the example asr_librispeech
  • Add user custom model
  • Merge the setup model with model_factory
  • move the setup_encoder and set_llm into model_factory
  • Move the inference function to slam_model_asr
  • Add deepspeed support
  • Move the checkpoint handler to utils

@zzasdf zzasdf changed the title Refactor Refactor, deepspeed support Mar 31, 2024
@@ -98,6 +81,7 @@ class DataConfig:
val_data_path: Optional[str] = None
train_split: str = "train"
test_split:str = "validation"
prompt: Optional[str] = None
Copy link
Collaborator

Choose a reason for hiding this comment

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

priority?


logger = logging.getLogger(__name__)

def model_factory(train_config, model_config, **kwargs):
Copy link
Collaborator

Choose a reason for hiding this comment

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

move to base model factory

@ddlBoJack ddlBoJack merged commit 08277f4 into main Apr 23, 2024
1 of 2 checks passed
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