Skip to main content

The AI-driven data pipeline and workflow framework for data scientists and machine learning engineers.

Project description

Logo

Graphbook

GitHub License GitHub Actions Workflow Status Docker Pulls PyPI Downloads PyPI - Version

Discord

The Framework for AI-driven Data Pipelines
Report bug · Request feature

OverviewStatusGetting StartedExamplesCollaboration

Overview

Graphbook is a framework for building efficient, interactive DAG-structured AI data pipelines or workflows composed of nodes written in Python. Graphbook provides common ML processing features such as multiprocessing IO and automatic batching for PyTorch tensors, 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.

Try out the demo!

Huggingface Pipeline Demo

Build, run, monitor!

Applications

  • Clean and curate custom large scale datasets
  • Demo ML apps on Huggingface Spaces
  • Build and deliver customizable no-code or hybrid low-code ML apps and services
  • Quickly experiment with different ML models and adjust hyperparameters
  • Maximize GPU utilization, parallelize IO, and scale across clusters
  • Wrap your Ray DAGs with a frontend for end users

Status

Graphbook is in a very early stage of development, so expect minor bugs and rapid design changes through the coming releases. If you would like to report a bug or request a feature, please feel free to do so. We aim to make Graphbook serve our users in the best way possible.

Current Features

  • ​​Graph-based visual editor to experiment and create complex ML workflows
  • Workflows can be serialized as Python and JSON files
  • 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 via OOP and functional patterns
  • 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 system CPU and GPU resource usage
  • Monitorable worker queue sizes for optimal worker scaling
  • Human-in-the-loop prompting for interactivity and manual control during DAG execution
  • Can switch to threaded processing per client session for demoing apps to multiple simultaneous users
  • Scale with Ray: Build all-code workflows and scale pipelines on Ray clusters
  • (BETA) Third Party Plugins *

* We plan on adding documentation for the community to build plugins, but for now, an example can be seen at example_plugin and graphbook-huggingface

Supported OS

The following operating systems are supported in order of most to least recommended:

  • Linux
  • Mac
  • Windows (not recommended) *

* There may be issues with running Graphbook on Windows. With limited resources, we can only focus testing and development on Linux.

Getting Started

Install from PyPI

  1. pip install graphbook
  2. graphbook
  3. Visit http://localhost:8005

Install with Docker

  1. Pull and run the downloaded image
    docker run --rm -p 8005:8005 -v $PWD/workflows:/app/workflows rsamf/graphbook:latest
    
  2. Visit http://localhost:8005

Recommended Plugins

Visit the docs to learn more on how to create custom nodes and workflows with Graphbook.

Examples

See plugin and workflow examples here in this folder.

Collaboration

Graphbook is in active development and very much welcomes contributors. If you would like to be actively involved in making Graphbook great, join our discord.

Run Graphbook in Development Mode

This is a guide on how to run Graphbook in development mode. If you are simply using Graphbook, view the Getting Started section. You can use any other virtual environment solution, but it is highly advised to use uv since our dependencies are managed with uv.

  1. Clone the repo and cd graphbook
  2. uv sync --group dev
  3. python graphbook/core/cli.py
  4. cd web
  5. deno install
  6. deno run dev
  7. In your browser, navigate to localhost:5173, and in the settings, change your Graph Server Host to localhost:8005.

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

graphbook-0.14.0b7.tar.gz (2.9 MB view details)

Uploaded Source

Built Distribution

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

graphbook-0.14.0b7-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file graphbook-0.14.0b7.tar.gz.

File metadata

  • Download URL: graphbook-0.14.0b7.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for graphbook-0.14.0b7.tar.gz
Algorithm Hash digest
SHA256 10d17df469102df8e9315f84a304dc8ebd735ac1964a4a344133832a9acd7da9
MD5 581c4143ad1351f2e0a1e938c6b2a097
BLAKE2b-256 71ff2cb7d28ade32271752d12c86ac45b6f4efb14ee2aaa1551a172fa48f4f27

See more details on using hashes here.

File details

Details for the file graphbook-0.14.0b7-py3-none-any.whl.

File metadata

  • Download URL: graphbook-0.14.0b7-py3-none-any.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for graphbook-0.14.0b7-py3-none-any.whl
Algorithm Hash digest
SHA256 6dbf04274b20675020ed61d2bc795a8cf6b78793223487916e624d4ebd0a99b9
MD5 46f0b85508fad2a16da7291611b37231
BLAKE2b-256 cbad03a4fb5224175ce3c2574aa778bc5237fe1d01b0652b2cc75f1394936fb6

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