issues Search Results · repo:codertimo/BERT-pytorch language:Python
Filter by
87 results
(57 ms)87 results
incodertimo/BERT-pytorch (press backspace or delete to remove)Hi there,
In my endeavor to construct a BERT model from the ground up for the purpose of gaining hands-on experience and a
comprehensive understanding of the model, I have encountered a point of confusion ...
AliHaiderAhmad001
- Opened on Nov 24, 2023
- #107
import torch.nn as nn
class SegmentEmbedding(nn.Embedding):
def __init__(self, embed_size=512):
super().__init__(3, embed_size, padding_idx=0)
This is the source code. ...
UTimeStrange
- 1
- Opened on Nov 21, 2023
- #106
the GELU class is available in PyTorch (https://pytorch.org/docs/stable/generated/torch.nn.GELU.html). No need to
implement it in utils/GELU.py
hubin-keio
- 1
- Opened on Mar 15, 2023
- #102
Hello @codertimo , it is a nice repo. If I want to fine tune pretrained bert model, such as BERT-Base, Uncased by
google, how can I do it?
MingchangLi
- Opened on Jan 10, 2023
- #100
trainer/pretrain.py
class BERTTrainer:
def __init__(self, ...):
...
# Using Negative Log Likelihood Loss function for predicting the masked_token
self.criterion = nn.NLLLoss(ignore_index=0) ...
Jasmine969
- 1
- Opened on Jul 7, 2022
- #98
I noticed that their is a pooler layer in original BERT that seems not present here. Did I miss something?
lihaoxin2020
- Opened on Jan 17, 2022
- #95
Hello,
I have tried to run bert with --with_cuda False, but the model keeps running forward function on cuda. These are my
command line and the error message I got.
bert -c corpus.small -v vocab.small ...
hanyangii
- Opened on Nov 5, 2021
- #94

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.