graykode / graykode/nlp-tutorial

If create the Linear() casually, it won't be trained during training.

Open
#29 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
14.9k
Forks
3.9k
PR merge metrics
No merged PRs in 30d

Description

https://github.com/graykode/nlp-tutorial/blob/3b3a80dc63e69935731bcf09c951eb371692af8f/5-1.Transformer/Transformer(Greedy_decoder)-Torch.py#L98

Contributor guide

Open the contributing guide

Research direction

Start at 5-1.Transformer/Transformer(Greedy_decoder)-Torch.py around line 98 and trace how the Linear layer is created and reached during training. Check the model's parameter registration and optimizer path; done means the issue's concern about the layer not being trained is resolved and the relevant training behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.