Closed lifelongeeek closed 9 months ago
You can check whether the version of torchdata is correct.
Also, you can manually run the prompt
and canonical_solutions
for each problem to see if they run successfully and then debug it.
@NL2Code
I concatenateprompt
and one of canonical_solutions
of TorchDataEval. 82% of cases passed without error. However, in 18% of cases, execution failed with undefined objects. Followings are the lists of them
["failed: name 'Cycler' is not defined"]
["failed: name 'Enumerator' is not defined"]
["failed: name 'Demultiplexer' is not defined"]
["failed: name 'Forker' is not defined"]
["failed: name 'IterKeyZipper' is not defined"]
["failed: name 'MapKeyZipper' is not defined"]
["failed: name 'UnZipper' is not defined"]
["failed: name 'collated_ds' is not defined"]
["failed: name 'Grouper' is not defined"]
["failed: name 'FlatMapper' is not defined"]
["failed: name 'Mapper' is not defined"]
["failed: name 'Filter' is not defined"]
["failed: name 'Header' is not defined"]
["failed: name 'Rows2Columnar' is not defined"]
["failed: name 'Concater' is not defined"]
["failed: name 'Collator' is not defined"]
Do I need to import an external codebase to use these objects?
No additional imports are required. I suspect the issue might be with the version of torchdata you have installed. I recommend trying out different versions.
I am trying to validate evaluation of apicoder.
I simply make a perfect evaluation file by
"completion"
field in the evaluation file same as"canonical_solutions"
in the problem file. However, all of the examples in TorchDataEval failed with"result": "failed: 'NoneType' object is not callable"
error, while HumanEval pass all examples. Any suggestion to solve this issue?I attach the 2 examples in problem & evaluation files for HumanEval & TorchDataEval datasets for reference.
HumanEval
Problem file
Evaluation file
TorchDataEval
Problem file
Evaluation file