Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
490ebbdc
Commit
490ebbdc
authored
Jul 22, 2019
by
Anish Moorthy
Browse files
Fix PretrainedModel.from_pretrained not passing cache_dir forward
parent
b8009cb0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
pytorch_transformers/modeling_utils.py
pytorch_transformers/modeling_utils.py
+2
-1
No files found.
pytorch_transformers/modeling_utils.py
View file @
490ebbdc
...
...
@@ -373,7 +373,8 @@ class PreTrainedModel(nn.Module):
if
config
is
None
:
config
,
model_kwargs
=
cls
.
config_class
.
from_pretrained
(
pretrained_model_name_or_path
,
*
model_args
,
return_unused_args
=
True
,
**
kwargs
cache_dir
=
cache_dir
,
return_unused_args
=
True
,
**
kwargs
)
else
:
model_kwargs
=
kwargs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment