python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Error when using mode.generate() from Transformers - TypeError: forward() got an unexpected keyword argument 'return_dict'
I am trying to perform inference with a finetuned GPT2HeadWithValueModel from the Transformers library. I'm using the model.generate() method from generation_utils.py
I am using this function to call ...
ScandinavianMrT
Votes: 0
Answers: 0
_forward_unimplemented() got an unexpected keyword argument 'input_ids'
I am training a model using HuggingFace Trainer class.(GPT2 text Classification) The following code does a decent job:
def preprocess_function(examples):
return tokenizer(examples["text"...
eatalot foryou
Votes: 0
Answers: 0
Generating 10000 sentences from GptNeo Model results in out of memory error
I was doing some work where I wanted to generate 10000 sentences from the GptNeo Model. I have a GPU of size 40GB and am running the model in the GPU but everytime the code runs out of memory. Is ther...
prb977
Votes: 0
Answers: 0
CUDA out of memory while fine-tuning GPT2
RuntimeError: CUDA out of memory. Tried to allocate 144.00 MiB (GPU 0; 11.17 GiB total capacity; 10.49 GiB already allocated; 13.81 MiB free; 10.56 GiB reserved in total by PyTorch) If reserved memor...
Vortekus
Votes: 0
Answers: 1