text stringlengths 0 9.36M |
|---|
"pytest", |
"pytest-subtests", |
"pytest-timeout", |
"pytest-xdist", |
"python>=3.8.0", |
"ray[tune]", |
"myst-parser", |
"regex!=2019.12.17", |
"requests", |
"rjieba", |
"rouge-score!=0.0.7,!=0.0.8,!=0.1,!=0.1.1", |
"sacrebleu>=1.4.12,<2.0.0", |
"sacremoses", |
"safetensors>=0.2.1", |
"sagemaker>=2.31.0", |
"scikit-learn", |
"sentencepiece>=0.1.91,!=0.1.92", |
"sigopt", |
"librosa", |
"sphinx-copybutton", |
"sphinx-markdown-tables", |
"sphinx-rtd-theme==0.4.3", # sphinx-rtd-theme==0.5.0 introduced big changes in the style. |
"sphinx==3.2.1", |
"sphinxext-opengraph==0.4.1", |
"sphinx-intl", |
"sphinx-multiversion", |
"starlette", |
"tensorflow-cpu>=2.4,<2.12", |
"tensorflow>=2.4,<2.12", |
"tensorflow-text", |
"tf2onnx", |
"timeout-decorator", |
"timm", |
"tokenizers>=0.11.1,!=0.11.3,<0.14", |
"torch>=1.12.1", |
"torchaudio", |
"pyctcdecode>=0.4.0", |
"tqdm>=4.27", |
"unidic>=1.0.2", |
"unidic_lite>=1.0.7", |
"uvicorn", |
"beautifulsoup4", |
"sudachipy>=0.6.6", |
"sudachidict_core>=20220729", |
"rhoknp>=1.1.0", |
] |
# this is a lookup table with items like: |
# |
# tokenizers: "tokenizers==0.9.4" |
# packaging: "packaging" |
# |
# some of the values are versioned whereas others aren't. |
deps = {b: a for a, b in (re.findall(r"^(([^!=<>~ ]+)(?:[!=<>~ ].*)?$)", x)[0] for x in _deps)} |
# since we save this data in src/transformers/dependency_versions_table.py it can be easily accessed from |
# anywhere. If you need to quickly access the data from this table in a shell, you can do so easily with: |
# |
# python -c 'import sys; from transformers.dependency_versions_table import deps; \ |
# print(" ".join([ deps[x] for x in sys.argv[1:]]))' tokenizers datasets |
# |
# Just pass the desired package names to that script as it's shown with 2 packages above. |
# |
# If transformers is not yet installed and the work is done from the cloned repo remember to add `PYTHONPATH=src` to the script above |
# |
# You can then feed this for example to `pip`: |
# |
# pip install -U $(python -c 'import sys; from transformers.dependency_versions_table import deps; \ |
# print(" ".join([ deps[x] for x in sys.argv[1:]]))' tokenizers datasets) |
# |
def deps_list(*pkgs): |
return [deps[pkg] for pkg in pkgs] |
class DepsTableUpdateCommand(Command): |
""" |
A custom distutils command that updates the dependency table. |
usage: python setup.py deps_table_update |
""" |
description = "build runtime dependency table" |
user_options = [ |
# format: (long option, short option, description). |
("dep-table-update", None, "updates src/transformers/dependency_versions_table.py"), |
] |
def initialize_options(self): |
pass |
def finalize_options(self): |
pass |
def run(self): |
entries = "\n".join([f' "{k}": "{v}",' for k, v in deps.items()]) |
content = [ |
"# THIS FILE HAS BEEN AUTOGENERATED. To update:", |
"# 1. modify the `_deps` dict in setup.py", |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.