Skip to content

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

Description

@fasterinnerlooper

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions