Source: https://seerepo.com/compare/microsoft/qlib/vs/ray-project/ray
Markdown source: https://seerepo.com/compare/microsoft/qlib/vs/ray-project/ray.md
Description: qlib and ray share 6 technologies: soupsieve, cryptography, torch, beautifulsoup4, lxml, and openpyxl. Both are written in Python.

# qlib vs ray

qlib and ray share 6 technologies: soupsieve, cryptography, torch, beautifulsoup4, lxml, and openpyxl. Both are written in Python.

- [microsoft/qlib](https://seerepo.com/r/microsoft/qlib): Qlib is an AI-oriented Quant investment platform that aims to use AI tech to empower Quant Research, from exploring ideas to implementing productions. Qlib supports diverse ML modeling paradigms, including supervised learning, market dynamics modeling, and RL, and is now equipped with https://github.com/microsoft/RD-Agent to automate R&D process.
- [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: soupsieve, cryptography, torch, beautifulsoup4, lxml, openpyxl
- Only in qlib: bs4, loguru
- Only in ray: FastAPI, amqp, async-lru, azure-common, azure-datalake-store, azure-storage-blob, confluent-kafka, diskcache, expiringdict, gitdb, google-cloud-core, h5py, kombu, pickleshare, pylance, pymongo, pyarrow, aioboto3, MongoDB, Redis, adlfs, smart-open, pyiceberg, pymysql, clickhouse-connect, deltalake, gcsfs, Celery, fastavro, pyzmq, s3fs, webdataset, Google, Hugging Face, Google Cloud Storage, Kafka, asgiref, Flask, flask-cors, graphene, graphql-core, graphql-relay, jupyter-core, jupyterlab-server, werkzeug, Ray, starlette, AIOHTTP, Lightning, anyio, tornado, uvicorn, React, react-router-dom, alabaster, cycler, fonttools, jupyterlab-pygments, pydata-sphinx-theme, sphinx-design, tinycss2, contourpy, glfw, jupyter-server-terminals, jupyterlab-widgets, matplotlib-inline, Plotly, prompt-toolkit, pyopengl, Textual, widgetsnbextension, xyzservices, Gradio, ipywidgets, matplotlib, Rich, pydot, alembic, peewee, sqlglot, SQLAlchemy, argon2-cffi, argon2-cffi-bindings, azure-identity, flask-basicauth, google-auth-oauthlib, itsdangerous, joserfc, jwcrypto, keyring, msal, msal-extensions, oauth2client, oauthlib, pyjwt, requests-oauthlib, google-auth-httplib2, albucore, bitsandbytes, cmdstanpy, crcmod, cupy-cuda12x, cupy-cuda13x, einops, fairscale, gradio-client, gym, LangChain, llvmlite, lm-eval, ml-dtypes, MLflow, nltk, ONNX, onnxruntime, onnxscript, openai-whisper, opt-einsum, orbax-checkpoint, peft, prophet, rouge-score, sacrebleu, safetensors, scikit-image, sentencepiece, skops, tf-keras, tiktoken, timm, tokenizers, torchtext, triton, gymnasium, transformers, TensorFlow, jax, torchvision, xgboost, lightgbm, scikit-learn, accelerate, datasets, pytorch-lightning, evaluate, flax, Keras, torchmetrics, albumentations, deepspeed, diffusers, hyperopt, Optuna, pettingzoo, tensordict, tensorflow-datasets, tensorflow-probability, torchaudio, bleach, defusedxml, et-xmlfile, imageio, imageio-ffmpeg, imagesize, jsonlines, linkify-it-py, mako, markdown, markdown-it-py, markupsafe, mdurl, mistune, moviepy, nbconvert, nh3, pandocfilters, ruamel-yaml, webencodings, xlrd, xmltodict, pillow, docutils, jinja2, av, nbformat, torchcodec, annotated-types, fastjsonschema, fqdn, jsonschema-specifications, pathvalidate, pydantic-core, referencing, rfc3339-validator, rfc3986, rfc3986-validator, validators, Pydantic, jsonschema, openapi-schema-validator, aiobotocore, azure-mgmt-compute, azure-mgmt-resource, colorlog, Gunicorn, opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, python-json-logger, psutil, boto3, botocore, prometheus-client, OpenTelemetry, kubernetes, opentelemetry-exporter-prometheus, docker, opentelemetry-exporter-otlp-proto-grpc, opentelemetry-instrumentation-fastapi, typeface-roboto, MUI, usehooks-ts, lowlight, react-window, react-icons, @mui/icons-material, js-yaml

## Side by side

| | qlib | ray |
|---|---|---|
| Size | 78,929 lines written, 219 code files | 1,531,664 lines written, 2,777 code files |
| Who writes it | 0.2% of its commits signed by AI. With GitHub Copilot | 3.6% of its commits signed by AI. With Claude Code, Gemini CLI, GitHub Copilot, Cursor, and Codex |
| Activity | Last push November 4, 2026, 1,852 commits, 50,029 stars | Last push November 6, 2026, 32,373 commits, 44,213 stars |
| Tests | 56 test files. 36.5% of its code files have a test that imports them | 2,168 test files. 9.7% 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, qlib or ray?

ray, with 1,531,664 lines written; qlib has 78,929.

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

### Which has more GitHub stars, qlib or ray?

qlib, with 50,029 stars; ray has 44,213.

The proof: [microsoft/qlib on GitHub](https://github.com/microsoft/qlib)

### Which has more tests, qlib or ray?

ray, with 2,168 test files; qlib has 56.

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

### Which was updated more recently, qlib or ray?

ray: its last push was on November 6, 2026, and qlib's on November 4, 2026.

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

### Which has more commits signed by AI, qlib or ray?

ray: an AI signed 3.6% of its commits, with Claude Code, Gemini CLI, GitHub Copilot, Cursor, and Codex; in qlib, 0.2%.

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

## Sources

- microsoft/qlib: Read on November 5, 2026, at commit 5435523 (https://github.com/microsoft/qlib/tree/54355232463878d2eebb91fe0ee5fa7fa1f5976c)
- ray-project/ray: Read on November 6, 2026, at commit 77567c5 (https://github.com/ray-project/ray/tree/77567c5c5790e9e91aa40a5af93004ef958c2ffc)

## 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.
