toolformer-pytorch icon indicating copy to clipboard operation
toolformer-pytorch copied to clipboard

run example in readme get errors

Open hxf829 opened this issue 1 year ago • 23 comments

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

hxf829 avatar Apr 12 '23 04:04 hxf829

Same here.

shiqichen17 avatar Apr 14 '23 04:04 shiqichen17

AssertionError: Torch not compiled with CUDA enabled

lzp492456131 avatar Apr 16 '23 13:04 lzp492456131

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

DengXianqi avatar Apr 24 '23 14:04 DengXianqi

Same here

NNNNNaaaaaa avatar Apr 25 '23 13:04 NNNNNaaaaaa

same error

lianggaoquan avatar Apr 27 '23 13:04 lianggaoquan

same error

wentinghome avatar May 10 '23 20:05 wentinghome

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.

wentinghome avatar May 10 '23 20:05 wentinghome

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

yonatanbitton avatar Jul 30 '23 15:07 yonatanbitton

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

shiqichen17 avatar Jul 30 '23 15:07 shiqichen17

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

yixin-zhu avatar Aug 02 '23 16:08 yixin-zhu

Has anyone found a solution to this? Thanks

vectorx666 avatar Aug 24 '23 08:08 vectorx666

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

shiqichen17 avatar Aug 24 '23 08:08 shiqichen17

does anyone solve this problem?

Kawai1Ace avatar Aug 27 '23 04:08 Kawai1Ace

does anyone found a solution for this???

sungwo101 avatar Jan 12 '24 02:01 sungwo101

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

shiqichen17 avatar Jan 12 '24 02:01 shiqichen17

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

Empth avatar Feb 13 '24 19:02 Empth

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

Alston16 avatar Mar 14 '24 06:03 Alston16

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

shiqichen17 avatar Mar 14 '24 06:03 shiqichen17

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

Have you solved the problem? thanks

LiaoNiuyu avatar Apr 22 '24 02:04 LiaoNiuyu

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

shiqichen17 avatar Apr 22 '24 02:04 shiqichen17

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

ritalily avatar Jul 02 '24 15:07 ritalily

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

shiqichen17 avatar Jul 02 '24 15:07 shiqichen17

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?

ritalily avatar Jul 02 '24 15:07 ritalily