ray vs dspy

ray and dspy share 4 technologies: diskcache, anyio, Pydantic, and jsonschema. Both are written in Python.

Read it as markdown

What they share and what sets them apart

ray-project

ray

Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.

Python44.3kRead on November 10, 2026, at commit c99c603What is ray built with?

Only in ray

In common

stanfordnlp

dspy

DSPy: The framework for programming—not prompting—language models

Python39kRead on November 6, 2026, at commit c400596What is dspy built with?

Only in dspy

  • gepa

Side by side

SizeLines written by people and agents, without generated ones; code files, without tests.
ray1,551,053 lines written2,797 code files
dspy132,756 lines written267 code files
Who writes itA commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
ray3.7% of its commits signed by AIWith Claude Code, Gemini CLI, GitHub Copilot, Cursor, and Codex
dspy5.1% of its commits signed by AIWith Amp, Claude Code, Factory, GitHub Copilot, and Devin
ActivityFrom GitHub and its history, on the day SeeRepo read it.
rayLast push November 10, 202632,424 commits44,251 stars
dspyLast push November 6, 20264,029 commits38,961 stars
TestsThe files that test the code, and the share of code files a test imports.
ray2,192 test files9.5% of its code files have a test that imports them
dspy164 test files49.4% of its code files have a test that imports them

Frequently asked questions

Which is bigger, ray or dspy?
ray, with 1,551,053 lines written; dspy has 132,756.

The proof: ray-project/ray's code at commit c99c603

Which has more GitHub stars, ray or dspy?
ray, with 44,251 stars; dspy has 38,961.

The proof: ray-project/ray on GitHub

Which has more tests, ray or dspy?
ray, with 2,192 test files; dspy has 164.

The proof: ray-project/ray's code at commit c99c603

Which was updated more recently, ray or dspy?
ray: its last push was on November 10, 2026, and dspy's on November 6, 2026.

The proof: ray-project/ray's commits on GitHub

Which has more commits signed by AI, ray or dspy?
dspy: an AI signed 5.1% of its commits, with Amp, Claude Code, Factory, GitHub Copilot, and Devin; in ray, 3.7%.

The proof: the commits each tool signed in stanfordnlp/dspy

See inside your code, today.

Paste your repo and see it drawn, part by part: a medium one in under a minute.

Free, no account.

Or look inside SeeRepo's own →