Skip to content

Make use of anaconda.org/huggingface #13

Description

@jayfurmanek

Transformers now has an official conda channel at: http://anaconda.org/huggingface

Some notes:

  • transformers itself is noarch so we could maybe stomp building it
  • tokenizers is not noarch - so we'll need to continue building that for ppc64le at least
  • there is also huggingface-datasets and sacremoses in the channel (both noarch)

the channel includes python_abi package, which is something that forge uses, so I'm curious if they include that here to be compatible with both defaults and forge - in which case maybe we steal that idea..

So let's make use of this. We could do something like the following:

  • Remove the packages that already exist in the HuggingFace channel from transformers-env.yaml.
  • Add the HuggingFace channel to the top of transformers-env.yaml.
  • List transformers, and whichever other packages we care about as external dependencies in transformers-env.yaml.
  • Investigate and Adjust any dependencies on our side to be compatible with the packages in this channel.
transformers 4.3.3 py_0
-----------------------
file name   : transformers-4.3.3-py_0.tar.bz2
name        : transformers
version     : 4.3.3
build       : py_0
build number: 0
size        : 1.7 MB
license     : Apache License 2.0
subdir      : noarch
url         : https://conda.anaconda.org/huggingface/noarch/transformers-4.3.3-py_0.tar.bz2
md5         : c765cb79a4283ff25d3ea9463b6a2e78
timestamp   : 2021-02-27 01:17:51 UTC
dependencies: 
  - dataclasses
  - filelock
  - numpy >=1.17
  - packaging
  - protobuf
  - python
  - regex !=2019.12.17
  - requests
  - sacremoses
  - tokenizers >=0.10.1,<0.11.0
  - tqdm >=4.27

It looks like there will be some missing dependencies (multiprocess, python-xxhash) for datasets. Forge likely has those and we can add them as remote recipes in the env file.

datasets 1.2.1 py_0
-------------------
file name   : datasets-1.2.1-py_0.tar.bz2
name        : datasets
version     : 1.2.1
build       : py_0
build number: 0
size        : 158 KB
license     : Apache License 2.0
subdir      : noarch
url         : https://conda.anaconda.org/huggingface/noarch/datasets-1.2.1-py_0.tar.bz2
md5         : a220db03876e20a8a96413d1bc07343b
timestamp   : 2021-01-14 15:02:04 UTC
dependencies: 
  - dataclasses
  - dill
  - multiprocess
  - numpy >=1.17
  - pandas
  - pip
  - pyarrow >=0.17.1
  - python
  - python-xxhash
  - requests >=2.19.0
  - tqdm >=4.27,<4.50.0

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions