-
Notifications
You must be signed in to change notification settings - Fork 449
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
LoRA typo fix + bias=True #1881
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchtune/1881
Note: Links to docs will display an error until the docs builds have been completed. ❌ 5 New Failures, 5 Cancelled JobsAs of commit aba63fe with merge base ca37c59 (): NEW FAILURES - The following jobs have failed:
CANCELLED JOBS - The following jobs were cancelled. Please retry:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
from torchtune.models.clip._position_embeddings import ( | ||
TiledTokenPositionalEmbedding, | ||
TilePositionalEmbedding, | ||
TokenPositionalEmbedding, | ||
) | ||
|
||
from torchtune.modules import ( | ||
TransformerSelfAttentionLayer, | ||
FeedForward, | ||
Fp32LayerNorm, | ||
MultiHeadAttention, | ||
TanhGate, | ||
FeedForward, | ||
Fp32LayerNorm | ||
TransformerSelfAttentionLayer, | ||
) | ||
|
||
from torchtune.modules.common_utils import reparametrize_as_dtype_state_dict_post_hook | ||
|
||
from torchtune.modules.peft import DoRALinear, LORA_ATTN_MODULES, LoRALinear | ||
|
||
from torchtune.modules.vision_transformer import CLSProjection, VisionTransformer |
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.
precommit hook reordering
in_dim=in_dim, | ||
out_dim=hidden_dim, | ||
rank=lora_rank, | ||
alpha=lora_alpha, | ||
dropout=lora_dropout, | ||
quantize_base=quantize_base, | ||
use_bias=True, | ||
) | ||
down_proj = adapter_cls( | ||
in_dim=hidden_dim, | ||
out_dim=dim, | ||
out_dim=out_dim, | ||
rank=lora_rank, | ||
alpha=lora_alpha, | ||
dropout=lora_dropout, | ||
quantize_base=quantize_base, | ||
use_bias=True, |
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 changed
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.
Thanks for fixing the lora builder
Context
What is the purpose of this PR? Is it to
Test plan