When i run ``` with torch.inference_mode(): gpt2_model = GPTModelWrapper(config=model.config, device=model.device, inference=inference_torch) sample_output = gpt2_model.generate(inputs.input_ids, max_length=64) ``` There has an error `'GPTModelWrapper' object has no attribute 'can_generate'` how can i do? thanks
When i run
There has an error
'GPTModelWrapper' object has no attribute 'can_generate'how can i do?
thanks