ImportError:无法在HuggingFace变形金刚中导入名称“ hf_bucket_url”

时间:2020-07-05 20:49:34

标签: tensorflow pytorch huggingface-transformers

所以我在Google Colab上安装了最新版本的转换器

class A : Point {
  override fun move(newPosition: Position): Point {
     return A(name, newPosition);
  }
  ...
}
class B : Point {
  override fun move(newPosition: Position): Point {
     return B(name, newPosition);
  }
}

当尝试使用调用转换文件时

var a: Point = A()
...
a = a.move(newPos)

或尝试使用

!pip install transformers 

我收到此错误

!python /usr/local/lib/python3.6/dist-packages/transformers/convert_pytorch_checkpoint_to_tf2.py .py --help  

这是怎么回事?

1 个答案:

答案 0 :(得分:0)

事实证明是一个错误。通过正确导入功能hf_bucket_url This PR solves the issue