explosion / spacy-ray

☄️ Parallel and distributed training with spaCy and Ray

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

tests 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

About

☄️ Parallel and distributed training with spaCy and Ray

License:MIT License


Languages

Language:Python 97.1%Language:Shell 2.9%