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

Failure during HuggingFace Training loop (calc_codeblue doesn't exist) #38

Open
fasterinnerlooper opened this issue Mar 22, 2024 · 0 comments

Comments

@fasterinnerlooper
Copy link
Contributor

Hi @k4black ,

I have the following error when performing evaluation using CodeBleu in my HuggingFace training loop. Do you know what the issue could be?

[cut from longer output]
   result = metric.compute(predictions=decoder_preds, references=decoder_labels, lang=lang)
  File "/usr/local/lib/python3.9/dist-packages/evaluate/module.py", line 462, in compute
    output = self._compute(**inputs, **compute_kwargs)
  File "/notebooks/cache/huggingface/modules/evaluate_modules/metrics/k4black--codebleu/0510675d8d105d7f64b0458864c7f4b7ec3995ff230e89d27d92b9a7a635654d/codebleu.py", line 113, in _compute
    return self.codebleu_package.calc_codebleu(
AttributeError: module 'codebleu' has no attribute 'calc_codebleu'
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