Code Update

#3
by Halloweenpink - opened

First, "text_generator" name is wrong(it is a small mistake)
And Huggingface update the fuction: "AutoModelWithLMHead" with
AutoModelForCausalLM for causal language models, AutoModelForMaskedLM for masked language models and AutoModelForSeq2SeqLM for encoder-decoder models
And we should use AutoModelForCausalLM here.
The performance is better btw.

Sign up or log in to comment