Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Mello committed Sep 12, 2024
1 parent a0bd26b commit b26b4fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion torchtune/modules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"KVCache",
"RotaryPositionalEmbeddings",
"RMSNorm",
"TiedLinear" "Fp32LayerNorm",
"TiedLinear",
"Fp32LayerNorm",
"VisionTransformer",
"TransformerDecoder",
"TiedEmbeddingTransformerDecoder",
Expand Down
3 changes: 2 additions & 1 deletion torchtune/modules/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,8 @@ def forward(

@deprecated(
msg="Please use torchtune.modules.TransformerDecoder instead. \
If you need an example, see torchtune.models.qwen2._component_builders.py"
If you need an example, see torchtune.models.qwen2._component_builders.py \
and how to implement torch.modules.TiedLinear for the output projection."
)
class TiedEmbeddingTransformerDecoder(nn.Module):
"""
Expand Down

0 comments on commit b26b4fc

Please sign in to comment.