Update bot.py to use gpt-large
This commit is contained in:
parent
e61a793dd6
commit
7720c1c161
4
bot.py
4
bot.py
|
@ -18,8 +18,8 @@ parser.add_argument('-m', '--model', default='model',
|
|||
args = parser.parse_args()
|
||||
|
||||
|
||||
tokenizer = AutoTokenizer.from_pretrained('gpt2-medium')
|
||||
model = AutoModelForCausalLM.from_pretrained(args.model, low_cpu_mem_usage=True).to('cuda')
|
||||
tokenizer = AutoTokenizer.from_pretrained('gpt2-large')
|
||||
model = AutoModelForCausalLM.from_pretrained(args.model).to('cuda')
|
||||
|
||||
|
||||
if args.input is None:
|
||||
|
|
Loading…
Reference in a new issue