mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
[run_language_modeling] Fix: initialize a new model from a config object
This commit is contained in:
parent
f8823bad9a
commit
eaabaaf750
1 changed files with 1 additions and 1 deletions
|
|
@ -710,7 +710,7 @@ def main():
|
|||
)
|
||||
else:
|
||||
logger.info("Training new model from scratch")
|
||||
model = AutoModelWithLMHead(config=config)
|
||||
model = AutoModelWithLMHead.from_config(config)
|
||||
|
||||
model.to(args.device)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue