Skip to main content

Parallel and distributed training with spaCy and Ray

Project description

spacy-ray: Parallel and distributed training with spaCy and Ray

⚠️ This repo is still a work in progress and requires the new spaCy v3.0.

Ray is a fast and simple framework for building and running distributed applications. This very lightweight extension package lets you use Ray for parallel and distributed training with spaCy. If spacy-ray is installed in the same environment as spaCy, it will automatically add spacy ray commands to your spaCy CLI.

The main command is spacy ray train for parallel and distributed training, but we expect to add spacy ray pretrain and spacy ray parse as well.

Azure Pipelines Current Release Version PyPi Version

🚀 Quickstart

You can install spacy-ray from pip:

pip install spacy-ray

To check if the command has been registered successfully:

python -m spacy ray --help

Train a model using the same API as spacy train:

python -m spacy ray train config.cfg --n-workers 2

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spacy_ray-0.1.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spacy_ray-0.1.0-py2.py3-none-any.whl (13.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file spacy_ray-0.1.0.tar.gz.

File metadata

  • Download URL: spacy_ray-0.1.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.7.9

File hashes

Hashes for spacy_ray-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b93f0f6fbc86c99408e56e542f0ad544433c85ea39eebe39858550ccf57c5e1b
MD5 42bfe23cd76115cdc55d3211e6779c61
BLAKE2b-256 2f3c38a272889342418003d067cbbbbe6b8dcfa9b69e290fcfb32f41e04a2f2d

See more details on using hashes here.

File details

Details for the file spacy_ray-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: spacy_ray-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.7.9

File hashes

Hashes for spacy_ray-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ef488396fef8b42bc02a8207e87f35cf895692271ad7d0bfd9bbc3d59d7ef6c4
MD5 030169e56cb8dc89f8002461f2dd357b
BLAKE2b-256 37ee5b133c2b535d2165afea3be5407357b6bbbd0d3c769f617b1cb20a0e76a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page