An extensible ML workflow framework built for data scientists and ML engineers.
Project description
Graphbook
The ML workflow framework
Report bug
·
Request feature
Overview • Current Features • Getting Started • Collaboration
Overview
Graphbook is a framework for building efficient, visual DAG-structured ML workflows composed of nodes written in Python. Graphbook provides common ML processing features such as multiprocessing IO and automatic batching, and it features a web-based UI to assemble, monitor, and execute data processing workflows. It can be used to prepare training data for custom ML models, experiment with custom trained or off-the-shelf models, and to build ML-based ETL applications. Custom nodes can be built in Python, and Graphbook will behave like a framework and call lifecycle methods on those nodes.
Current Features
- Graph-based visual editor to experiment and create complex ML workflows
- Caches outputs and only re-executes parts of the workflow that changes between executions
- UI monitoring components for logs and outputs per node
- Custom buildable nodes with Python
- Automatic batching for Pytorch tensors
- Multiprocessing I/O to and from disk and network
- Customizable multiprocessing functions
- Ability to execute entire graphs, or individual subgraphs/nodes
- Ability to execute singular batches of data
- Ability to pause graph execution
- Basic nodes for filtering, loading, and saving outputs
- Node grouping and subflows
- Autosaving and shareable serialized workflow files
- Registers node code changes without needing a restart
- Monitorable CPU and GPU resource usage
Getting Started
Install from PyPI
pip install graphbook
graphbook
- Visit http://localhost:8007
Install with Docker
- Pull and run the downloaded image
docker run --rm -p 8005:8005 -p 8006:8006 -p 8007:8007 -v $PWD/workflows:/app/workflows rsamf/graphbook:latest
- Visit http://localhost:8007
Visit the docs to learn more on how to create custom nodes and workflows with Graphbook.
Collaboration
This is a guide on how to get started developing Graphbook. If you are simply using Graphbook, view the Getting Started section.
Run Graphbook in Development Mode
You can use any other virtual environment solution, but poetry
is used in the steps below.
- Clone the repo and
cd graphbook
poetry install --with dev
poetry shell
python graphbook/server.py
cd web
npm install
npm run dev
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for graphbook-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0967b2022e875d2ed244a5a8770bac562502266f936d82adc47e641b353c79be |
|
MD5 | b4079f028c1b561005e2f84eca116096 |
|
BLAKE2b-256 | 59df216e0d1e7ad09808829b44f8bed1f8e14eba8834d8717229ad2310b595c1 |