#6565th of 168 in ML frameworks and librariesFor finance and business, trading, stocks and crypto, finance and accounting

qlib

Python platform for ML-based quantitative investment research and backtesting

Stars
50.2k
License
MIT
Last commit
Oct 2026
Last release
Oct 2026
Language
Python
Stars, last 29 weeks+9,602
20 Apr 2026: 40,614 stars27 Apr 2026: 40,912 stars4 May 2026: 41,584 stars11 May 2026: 42,247 stars18 May 2026: 42,787 stars25 May 2026: 43,122 stars1 Jun 2026: 43,544 stars8 Jun 2026: 43,846 stars15 Jun 2026: 44,124 stars22 Jun 2026: 44,680 stars29 Jun 2026: 45,094 stars6 Jul 2026: 45,539 stars13 Jul 2026: 45,895 stars20 Jul 2026: 46,156 stars27 Jul 2026: 46,456 stars3 Aug 2026: 46,751 stars10 Aug 2026: 47,049 stars17 Aug 2026: 47,474 stars24 Aug 2026: 47,726 stars31 Aug 2026: 48,001 stars7 Sept 2026: 48,235 stars14 Sept 2026: 48,425 stars21 Sept 2026: 48,618 stars28 Sept 2026: 48,909 stars5 Oct 2026: 49,101 stars12 Oct 2026: 49,271 stars19 Oct 2026: 49,508 stars26 Oct 2026: 49,736 stars2 Nov 2026: 49,970 stars9 Nov 2026: 50,216 stars

40,614 on 20 Apr 202650,216 on 9 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Qlib is a Python library covering the quant research pipeline: data handling, model training, backtesting, portfolio optimization and order execution. It ships a zoo of paper-implemented forecasting models (LightGBM, TCN, Transformer, TabNet, HIST, TRA and others), plus meta-learning and reinforcement learning frameworks. Workflows run from YAML configs via qrun or are built in code.

Who it is for: Quant researchers building ML-driven trading strategies in Python

Strengths

  • Covers data, modeling, backtesting, portfolio optimization and execution in one codebase
  • Includes many published quant models, with example configs run through qrun
  • Components are loosely coupled and can be used stand-alone
  • Supports supervised, market-adaptation (DDG-DA) and reinforcement learning workflows

Weaknesses

  • Official dataset is disabled for now; README points to a community data source
  • Bundled data comes from Yahoo Finance and the README says it may be imperfect
  • Unreleased main-branch change restricts recorder loads and needs trusted=True opt-in
  • Examples target China A-share data; other markets need your own data

What it needs

  • Docker
  • Needs Python 3.8-3.12, Yahoo Finance or community market data
  • Models: LightGBM, TCN, Transformer, TabNet, HIST

Quick answers

Is qlib open source?

Yes. Its code is on GitHub under the MIT license.

Can you run qlib with Docker?

Yes. Its repository has a Docker setup: a Dockerfile, a Compose file or a published image.

Also in ML frameworks and libraries

See all 168
Also in ML frameworks and libraries
RankProjectScore
1transformersPython library defining open models for text, vision, audio and multimodal tasks168.8k stars+1,522 (+0.9%) in 30 daysApache-2.094 out of 100
2pytorchPython tensor library with GPU support and tape-based autograd105.4k stars+1,043 (+1.0%) in 30 dayscustom license93 out of 100
3ultralyticsPython library and CLI for training and running YOLO vision models63.3k stars+1,015 (+1.6%) in 30 daysAGPL-3.093 out of 100
#4pytorch-image-modelsPyTorch library of image models, pretrained weights and training scripts37.3k stars+101 (+0.3%) in 30 daysApache-2.093 out of 100
#5supervisionPython toolkit for loading, annotating and counting computer vision detections Live demo ↗ (opens in a new tab)51.6k stars+514 (+1.0%) in 30 daysMIT92 out of 100