lucidrains/toolformer-pytorch

run example in readme get errors

hxf829 opened this issue · 23 comments

hxf829 commented

run example in readme, get errors as follows, how to fix? thank you
image

Same here.

AssertionError: Torch not compiled with CUDA enabled

Hello, did you find out how to fix this error?

Same here

same error

same error

The following code does not augment original data with callable API starting '[' and ending with ']'. The error happens since after filtering, there is no callable API.
data_with_api_calls = self.generate_data_with_api_calls(data)

A potential solution is to increase the size of PALM and load the pre-trained model checkpoint so that the prompted data contains API. I haven't noticed the checkpoint loading in the current repo. If anyone finds, please let me know.

I receive the same error. Was someone able to fix it? @lucidrains

line 882, in forward
    assert len(filtered_data_with_api_calls) > 0, 'your model failed to follow instructions and make API calls. please try a better model or do some better prompt engineering'
AssertionError: your model failed to follow instructions and make API calls. please try a better model or do some better prompt engineering

I met the same problem. Does anyone find out how to fix it?
image

Has anyone found a solution to this? Thanks

does anyone solve this problem?

does anyone found a solution for this???

I'm getting the same error, does anyone know of any solutions?

AssertionError: Torch not compiled with CUDA enabled

If you have a cuda compatible GPU, reinstall pytorch with the command from this link
Or just remove .cuda() to have the model loaded in CPU

I've received your e-mail , and I'll reply soon:)Shiqi Chen

Have you solved the problem? thanks

I've received your e-mail , and I'll reply soon:)Shiqi Chen

Hi Shiqi, I am facing the same error as this post when running with the example in readme. May you guide me on how to resolve this too? Much appreciated!
f840b93c01c46d6e64db9cd243a4b0c4

I've received your e-mail , and I'll reply soon:)Shiqi Chen

Have you solved the problem? thanks

Hi LiaoNiuya, excuse me, just want to check my luck with you. Were you managed to resolve the error at the end?