microsoft / PyCodeGPT

A pre-trained GPT model for Python code completion and generation
MIT License
265 stars 44 forks source link

No module named 'nl2code.dynamic_block_dataset' when run_generating_codes.sh #21

Closed lifelongeeek closed 9 months ago

lifelongeeek commented 9 months ago

Hello. When I executing run_generating_codes.sh, the following error occurs.

 File "/data/gmkim/PyCodeGPT/apicoder/CodeGenAPI/eval_private.py", line 13, in <module>
    from nl2code.modeling_codegen import CodeGenForCausalLM
  File "/data/gmkim/PyCodeGPT/apicoder/CodeGenAPI/nl2code/__init__.py", line 3, in <module>
    from .code_dataset import CodeBlockDataset, CodeDatasetCallBack
  File "/data/gmkim/PyCodeGPT/apicoder/CodeGenAPI/nl2code/code_dataset.py", line 14, in <module>
    from .dynamic_block_dataset import DynamicBlockDataset
ModuleNotFoundError: No module named 'nl2code.dynamic_block_dataset'

I couldn't find dynamic_block_dataset from this repository. Could you suggest the solution?

NL2Code commented 9 months ago

Please use https://github.com/microsoft/PyCodeGPT/blob/main/cert/nl2code/dynamic_block_dataset.py to resolve it.

lifelongeeek commented 9 months ago

Thanks it works 👍