Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Config name is missing. #48

Open
Martin7-1 opened this issue Oct 24, 2023 · 0 comments
Open

ValueError: Config name is missing. #48

Martin7-1 opened this issue Oct 24, 2023 · 0 comments

Comments

@Martin7-1
Copy link

Martin7-1 commented Oct 24, 2023

Hi! I am tring using CodeXGLUE refinement dataset, but I encounter error below:

Traceback (most recent call last):
  File "/Users/zhengyi/Desktop/code/python/llm-projects/CodeT5-fine-tune/lora.py", line 37, in <module>
    main()
  File "/Users/zhengyi/Desktop/code/python/llm-projects/CodeT5-fine-tune/lora.py", line 17, in main
    train, test, validation = dataset.load(subset="code-refinement", config_name="small")
  File "/Users/zhengyi/Desktop/code/python/framework-projects/CodeTF/codetf/data_utility/codexglue_dataset.py", line 19, in load
    return self.load_funcs[subset](*args, **kwargs)
  File "/Users/zhengyi/Desktop/code/python/framework-projects/CodeTF/codetf/data_utility/codexglue_dataset.py", line 80, in load_codexglue_code_refinement_dataset
    dataset = load_dataset(dataset)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/CodeTF/lib/python3.9/site-packages/datasets/load.py", line 1785, in load_dataset
    builder_instance = load_dataset_builder(
  File "/opt/homebrew/Caskroom/miniconda/base/envs/CodeTF/lib/python3.9/site-packages/datasets/load.py", line 1540, in load_dataset_builder
    builder_instance: DatasetBuilder = builder_cls(
  File "/opt/homebrew/Caskroom/miniconda/base/envs/CodeTF/lib/python3.9/site-packages/datasets/builder.py", line 355, in __init__
    self.config, self.config_id = self._create_builder_config(
  File "/opt/homebrew/Caskroom/miniconda/base/envs/CodeTF/lib/python3.9/site-packages/datasets/builder.py", line 487, in _create_builder_config
    raise ValueError(
ValueError: Config name is missing.
Please pick one among the available configs: ['medium', 'small']
Example of usage:
	`load_dataset('code_x_glue_cc_code_refinement', 'medium')`

It seems that the function load_codexglue_code_refinement_dataset in codexglue.py doesn't pass the extra value to load dataset. Hope to fix it like #32. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant