Unverified Commit 971e3666 authored by Josué Nascimento's avatar Josué Nascimento Committed by GitHub
Browse files

Change how to load config of XLNetLMHeadModel (#14746)

parent 15a9d015
......@@ -348,7 +348,7 @@ def main():
)
else:
logger.info("Training new model from scratch")
model = XLNetLMHeadModel.from_config(config)
model = XLNetLMHeadModel(config)
model.resize_token_embeddings(len(tokenizer))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment