Toggle navigation
Toggle navigation
This project
Loading...
Sign in
graykode
/
commit-autosuggestions
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
graykode
2020-09-10 17:53:59 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
76d67cd5b7ce1c1d4046e1972a33d0a3033f3b0d
76d67cd5
1 parent
1b580669
(fixed) CUDA runtime error (59) : device-side assert triggered error
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
train/lightning_base.py
train/lightning_base.py
View file @
76d67cd
...
...
@@ -125,6 +125,7 @@ class BaseTransformer(pl.LightningModule):
)
else
:
self
.
model
=
model
self
.
model
.
resize_token_embeddings
(
len
(
tokenizer
))
def
load_hf_checkpoint
(
self
,
*
args
,
**
kwargs
):
self
.
model
=
self
.
model_type
.
from_pretrained
(
*
args
,
**
kwargs
)
...
...
Please
register
or
login
to post a comment