Source: https://seerepo.com/compare/bojieli/ai-infra-book/vs/ray-project/ray
Markdown source: https://seerepo.com/compare/bojieli/ai-infra-book/vs/ray-project/ray.md
Description: ai-infra-book and ray share 99 technologies: FastAPI, gitdb, huey, pyarrow, Redis, s3fs, s3transfer, smart-open, tensorboard-data-server, pyzmq, Hugging Face, anyio, Flask, flask-cors, graphene, graphql-core, graphql-relay, jupyter-core, Lightning, starlette, tornado, uvicorn, werkzeug, Ray, AIOHTTP, cycler, fonttools, contourpy, Gradio, matplotlib-inline, Plotly, prompt-toolkit, alembic, cryptography, itsdangerous, Google, comet-ml, cupy-cuda13x, jaxlib, llvmlite, ml-dtypes, MLflow, nltk, onnx-ir, onnxscript, opt-einsum, peft, rouge-score, sacrebleu, scikit-learn, sentencepiece, skops, tiktoken, timm, torch, transformers, torchvision, triton, safetensors, einops, datasets, ONNX, deepspeed, diffusers, jax, tokenizers, defusedxml, imageio, imageio-ffmpeg, lxml, mako, markdown-it-py, markupsafe, mdurl, nbformat, pytablewriter, markdown, pillow, jinja2, annotated-types, fastjsonschema, jsonschema, jsonschema-specifications, pathvalidate, referencing, typepy, Pydantic, aiobotocore, boto3, botocore, colorlog, docker, Gunicorn, opencensus-context, OpenTelemetry, opentelemetry-exporter-prometheus, opentelemetry-semantic-conventions, psutil, and prometheus-client. Both are written in Python.

# ai-infra-book vs ray

ai-infra-book and ray share 99 technologies: FastAPI, gitdb, huey, pyarrow, Redis, s3fs, s3transfer, smart-open, tensorboard-data-server, pyzmq, Hugging Face, anyio, Flask, flask-cors, graphene, graphql-core, graphql-relay, jupyter-core, Lightning, starlette, tornado, uvicorn, werkzeug, Ray, AIOHTTP, cycler, fonttools, contourpy, Gradio, matplotlib-inline, Plotly, prompt-toolkit, alembic, cryptography, itsdangerous, Google, comet-ml, cupy-cuda13x, jaxlib, llvmlite, ml-dtypes, MLflow, nltk, onnx-ir, onnxscript, opt-einsum, peft, rouge-score, sacrebleu, scikit-learn, sentencepiece, skops, tiktoken, timm, torch, transformers, torchvision, triton, safetensors, einops, datasets, ONNX, deepspeed, diffusers, jax, tokenizers, defusedxml, imageio, imageio-ffmpeg, lxml, mako, markdown-it-py, markupsafe, mdurl, nbformat, pytablewriter, markdown, pillow, jinja2, annotated-types, fastjsonschema, jsonschema, jsonschema-specifications, pathvalidate, referencing, typepy, Pydantic, aiobotocore, boto3, botocore, colorlog, docker, Gunicorn, opencensus-context, OpenTelemetry, opentelemetry-exporter-prometheus, opentelemetry-semantic-conventions, psutil, and prometheus-client. Both are written in Python.

- [bojieli/ai-infra-book](https://seerepo.com/r/bojieli/ai-infra-book): 《深入理解 AI Infra：量化分析与系统设计》（李博杰 著）开源书稿：从硬件约束和模型架构出发，量化推导 LLM 推理与训练系统设计。含全书正文、PDF、配套计算工具与实验
- [ray-project/ray](https://seerepo.com/r/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.

## What they share and what sets them apart

- In common: FastAPI, gitdb, huey, pyarrow, Redis, s3fs, s3transfer, smart-open, tensorboard-data-server, pyzmq, Hugging Face, anyio, Flask, flask-cors, graphene, graphql-core, graphql-relay, jupyter-core, Lightning, starlette, tornado, uvicorn, werkzeug, Ray, AIOHTTP, cycler, fonttools, contourpy, Gradio, matplotlib-inline, Plotly, prompt-toolkit, alembic, cryptography, itsdangerous, Google, comet-ml, cupy-cuda13x, jaxlib, llvmlite, ml-dtypes, MLflow, nltk, onnx-ir, onnxscript, opt-einsum, peft, rouge-score, sacrebleu, scikit-learn, sentencepiece, skops, tiktoken, timm, torch, transformers, torchvision, triton, safetensors, einops, datasets, ONNX, deepspeed, diffusers, jax, tokenizers, defusedxml, imageio, imageio-ffmpeg, lxml, mako, markdown-it-py, markupsafe, mdurl, nbformat, pytablewriter, markdown, pillow, jinja2, annotated-types, fastjsonschema, jsonschema, jsonschema-specifications, pathvalidate, referencing, typepy, Pydantic, aiobotocore, boto3, botocore, colorlog, docker, Gunicorn, opencensus-context, OpenTelemetry, opentelemetry-exporter-prometheus, opentelemetry-semantic-conventions, psutil, prometheus-client
- Only in ai-infra-book: blobfile, transferqueue, Anthropic, hypercorn, kui, quart, mkdocs-material, blessed, kaleido, pyecharts, seaborn, matplotlib, SQLAlchemy, accelerate, apache-tvm-ffi, cuda-core, cuda-python, cuda-toolkit, decord2, descript-audio-codec, e2b, einx, emerging-optimizers, evaluate, fla-core, flash-linear-attention, flashinfer-cubin, flashinfer-python, loralib, mamba-ssm, math-verify, MCP, megatron-bridge, mistral-common, mlx, mlx-lm, mooncake-transfer-engine-cuda13, nixl, nvidia-cublas, nvidia-cudnn-cu12, nvidia-cudnn-cu13, nvidia-cudnn-frontend, nvidia-cufft, nvidia-cusolver, nvidia-cusparse, nvshmem4py-cu13, open-clip-torch, OpenAI, openai-agents, pythainlp, qwen-vl-utils, sglang-router, silero-vad, sklearn-crfsuite, spaCy, spacy-legacy, stanza, thinc, torch-c-dlpack-ext, tensordict, flash-attn, megatron-core, xformers, librosa, torchaudio, causal-conv1d, cuda-bindings, ModelScope, nvidia-cuda-runtime, torchdata, transformer-engine, cairosvg, pylatexenc, python-magic, pymupdf, av, dacite, msgspec, gpustat, spacy-loggers, swanlab, loguru
- Only in ray: aimrecords, aimrocks, amqp, array-record, arro3-core, async-lru, azure-common, azure-datalake-store, azure-storage-blob, confluent-kafka, delta-kernel-rust-sharing-wrapper, diskcache, expiringdict, feather-format, google-cloud-core, h5py, jupyter-cache, kombu, partd, petastorm, pickleshare, py-partiql-parser, pylance, pymongo, qpd, s3torchconnectorclient, semidbm, sqlitedict, taskiq, zict, mcap, aioboto3, MongoDB, adlfs, pyiceberg, deltalake, clickhouse-connect, daft, gcsfs, lance-namespace, obstore, Celery, delta-sharing, fastavro, hudi, s3torchconnector, taskiq-redis, zarr, Google Cloud Storage, Kafka, Databricks, adagio, asgiref, jupyterlab-server, pygame, pymars, pyspark, raydp, React, react-router-dom, accessible-pygments, alabaster, jupyterlab-pygments, pydata-sphinx-theme, soupsieve, sphinx-design, tinycss2, aim-ui, alive-progress, bokeh, glfw, halo, jupyter-server-terminals, jupyterlab-widgets, pyglet, pyopengl, spinners, Textual, widgetsnbextension, xyzservices, ipywidgets, Rich, pydot, peewee, sqlglot, adal, argon2-cffi, argon2-cffi-bindings, azure-identity, flask-basicauth, gcs-oauth2-boto-plugin, google-auth-oauthlib, google-oauth, google-reauth, id, joserfc, jwcrypto, keyring, msal, msal-extensions, oauth2client, oauthlib, pyjwt, pyu2f, requests-oauthlib, google-auth-httplib2, aws-requests-auth, albucore, autograd, ax-platform, bayesian-optimization, bitsandbytes, botorch, cma, cmdstanpy, crcmod, cupy-cuda100, cupy-cuda12x, fairscale, fbgemm-gpu, gpytorch, gradio-client, gym, labmaze, LangChain, lightning-utilities, linear-operator, lm-eval, minigrid, moocore, mosaicml, onnxruntime, openai-whisper, optax, orbax-checkpoint, prophet, pymoo, pyro-ppl, pytorch-ranger, scikit-image, stanio, statsforecast, tf-keras, torch-geometric, torch-optimizer, torch-scatter, torch-sparse, torchtext, yahp, gymnasium, TensorFlow, xgboost, lightgbm, pytorch-lightning, dm-env, flax, Keras, torchmetrics, aim, ale-py, configspace, dm-control, hpbandster, hyperopt, nevergrad, open-spiel, Optuna, tensorflow-probability, zoopt, bleach, et-xmlfile, imagesize, jsonlines, linkify-it-py, mdit-py-plugins, mistune, moviepy, myst-parser, nbconvert, nh3, openpyxl, pandocfilters, readme-renderer, ruamel-yaml, ruamel-yaml-clib, strictyaml, tinyscaler, webencodings, xlrd, xmltodict, docutils, beautifulsoup4, decord, torchcodec, fqdn, jsonschema-path, openapi-spec-validator, rfc3339-validator, rfc3986, rfc3986-validator, validators, applicationinsights, aws-sam-translator, aws-xray-sdk, azure-cli-core, azure-cli-telemetry, azure-core, azure-mgmt-compute, azure-mgmt-core, azure-mgmt-network, azure-mgmt-resource, azure-mgmt-resource-deployments, boto, cloud-tpu-diagnostics, execnet, google-cloud-audit-log, log-symbols, ml-goodput-measurement, msrestazure, opentelemetry-instrumentation, opentelemetry-instrumentation-asgi, opentelemetry-util-http, python-json-logger, supervisor, pybuildkite, kubernetes, opentelemetry-exporter-otlp-proto-grpc, opentelemetry-instrumentation-fastapi, ray-haproxy, typeface-roboto, MUI, usehooks-ts, lowlight, react-window, react-icons, @mui/icons-material, js-yaml

## Side by side

| | ai-infra-book | ray |
|---|---|---|
| Size | 1,438,355 lines written, 1,748 code files | 1,583,573 lines written, 2,829 code files |
| Who writes it | 16.6% of its commits signed by AI. With Claude Code and Codex | 3.8% of its commits signed by AI. With Claude Code, Gemini CLI, GitHub Copilot, Cursor, and Codex |
| Activity | Last push October 1, 2026, 314 commits, 8,032 stars | Last push November 18, 2026, 32,530 commits, 44,318 stars |
| Tests | 1,093 test files. 17.8% of its code files have a test that imports them | 2,221 test files. 9.4% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## Frequently asked questions

### Which is bigger, ai-infra-book or ray?

ray, with 1,583,573 lines written; ai-infra-book has 1,438,355.

The proof: [ray-project/ray's code at commit eb50407](https://github.com/ray-project/ray/tree/eb50407602c55f2660b4a3a93d7e2fe07824ae20)

### Which has more GitHub stars, ai-infra-book or ray?

ray, with 44,318 stars; ai-infra-book has 8,032.

The proof: [ray-project/ray on GitHub](https://github.com/ray-project/ray)

### Which has more tests, ai-infra-book or ray?

ray, with 2,221 test files; ai-infra-book has 1,093.

The proof: [ray-project/ray's code at commit eb50407](https://github.com/ray-project/ray/tree/eb50407602c55f2660b4a3a93d7e2fe07824ae20)

### Which was updated more recently, ai-infra-book or ray?

ray: its last push was on November 18, 2026, and ai-infra-book's on October 1, 2026.

The proof: [ray-project/ray's commits on GitHub](https://github.com/ray-project/ray/commits)

### Which has more commits signed by AI, ai-infra-book or ray?

ai-infra-book: an AI signed 16.6% of its commits, with Claude Code and Codex; in ray, 3.8%.

The proof: [the commits each tool signed in bojieli/ai-infra-book](https://seerepo.com/r/bojieli/ai-infra-book/ai)

## Sources

- bojieli/ai-infra-book: Read on November 17, 2026, at commit 3bdcb4f (https://github.com/bojieli/ai-infra-book/tree/3bdcb4fcab73010eeaccf31cc10a8242a895d82e)
- ray-project/ray: Read on November 18, 2026, at commit eb50407 (https://github.com/ray-project/ray/tree/eb50407602c55f2660b4a3a93d7e2fe07824ae20)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
