-
Notifications
You must be signed in to change notification settings - Fork 250
enable multi-transformer defination #966
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchchat/966
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 11113ff with merge base 9dc9eff ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…-transformer-models-in-codebase
@@ -12,19 +12,23 @@ | |||
from typing import Any, Dict, Optional, Tuple, Union | |||
|
|||
import torch | |||
import torch.nn as nn | |||
from torch.distributed.device_mesh import DeviceMesh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some irrelevant updates come from lintrunner
…-transformer-models-in-codebase
…-transformer-models-in-codebase
…-transformer-models-in-codebase
…-transformer-models-in-codebase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work
Looks like export_et is a victim of rebasing though; that file got merged into export
export_util/export_et.py
Outdated
@@ -0,0 +1,135 @@ | |||
# Copyright (c) Meta Platforms, Inc. and affiliates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file got merged into export itself, you'll want the changes over there
This pull request enables the definition of multi-transformer models, including updates to ModelArgs and the Model class in the builder. These changes will serve as the primary entry point for both torchchat-defined models and imported models from torchtune.