Library / SDK
shenweichen/DeepCTR-Torch avatar
shenweichen/DeepCTR-Torch

DeepCTR-Torch sorts its models list by paper title

PyTorch: easy-to-use, modular and extendible package of deep-learning based CTR models.

3,475 stars736 forksPythonApache-2.0

At a glance

What is it?
A PyTorch package of click-through rate models behind two method names, where the dependency pins split at Python 3.8, two dicts in setup.py are left empty, the Discussions link points at the TensorFlow repository, and the table order follows the alphabet of the papers.
Who is it for?
DeepCTR-Torch is worth a look when you want a published architecture as a starting point rather than a model to design, because the whole list sits behind fit and predict and the component layers are exported for reuse. Check the runtime before committing, because the package claims Python 3.7 support while pinning torch 1.13 for it and torch 2.4 for everything above, and the newest tag v0.3.0 sits three and a half years after v0.2.9 with a last push on 2026-07-09.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 137 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • shenweichen/DeepCTR-Torch3,475 ★ · +19
Star history
Repository2026-09-112026-11-23
shenweichen/DeepCTR-Torch3.5k3.5k

19 Stars in the last 73 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Two torch pins split at Python 3.8

The install requirements are four lines and two of them are the same package.

python
REQUIRED_PACKAGES = [
    'torch>=1.13.0; python_version < "3.8"',
    'torch>=2.4.0; python_version >= "3.8"',
    'tqdm',
    'scikit-learn'
]

Below that, `python_requires` is `>=3.7` while the classifiers run from Python 3.7 all the way to 3.13, so the metadata advertises a wide range while the torch requirement it can actually resolve changes abruptly at the 3.8 line. Nothing in the list is optional: `extras_require` is an empty dict and `entry_points` is an empty dict, so there is no test extra, no examples extra, and no console script, even though a `tests/` directory and a `examples/` directory both ship in the tree. Packaging runs through `setup.py` alone, with `setuptools.find_packages` excluding `tests`, `tests.models` and `tests.layers`.

The models table is ordered by paper title

Twenty-three models are listed, and the Model column is not alphabetical by model. Convolutional Click Prediction Model is first, then Factorization-supported Neural Network, then Product-based Neural Network, then Wide & Deep. DeepFM comes after Wide & Deep and Deep & Cross Network comes after Piece-wise Linear Model. That order only makes sense if you sort the Paper column instead, where the entries begin A Convolutional Click Prediction Model, Deep Learning over Multi-field Categorical Data, Product-based neural networks and Wide & Deep Learning, with leading articles dropped. The list also mixes categories. ESMM, MMOE, PLE and SharedBottom are multi-task and post-click conversion models sitting in the same table as the click-through rate models, and SharedBottom is cited to an overview survey of multi-task learning rather than to a click prediction paper.

Four URL shapes for the same kind of citation

The Paper column links to four different kinds of URL depending on the venue. Convolutional Click Prediction Model points at an `ir.ia.ac.cn` bitstream. DeepFM and Attentional Factorization Machine point at `www.ijcai.org/proceedings/` with a lower case p, while Input-aware Factorization Machine and Dual Input-aware Factorization Machine point at `www.ijcai.org/Proceedings/` with a capital P. Most arXiv papers use `arxiv.org/pdf/`, but a handful use `arxiv.org/abs/`. The two SIGIR and KDD multi-task entries use `dl.acm.org/doi/10.1145/...`, while MMOE uses `dl.acm.org/doi/abs/10.1145/...`. None of that breaks anything for a reader, and all of it is the kind of thing a link checker trips over when a host changes a path.

The Discussions link points at the TensorFlow repository

Under the heading written as DisscussionGroup, the first entry is Github Discussions, and its href is `https://github.com/shenweichen/DeepCTR/discussions`, which is the DeepCTR repository rather than DeepCTR-Torch. The badge near the top of the page has the same shape of error in a different form: it links to `./README.md#disscussiongroup`, an anchor that exists only because the heading itself is misspelled with three s characters. The rest of the community section runs through Chinese platforms. There is a WeChat public account and a WeChat ID, a knowledge community link, a WeChat article album, and a Chinese introduction on Zhihu, plus the same author listed on AlgoNotes, DeepCTR, DeepMatch and GraphEmbedding. Documentation sits elsewhere, on readthedocs.

Three sample datasets and six run scripts

The examples directory carries three plain text samples, `byterec_sample.txt`, `criteo_sample.txt` and `movielens_sample.txt`, and six Python entry points: `run_classification_criteo.py`, `run_dien.py`, `run_din.py`, `run_multitask_learning.py`, `run_multivalue_movielens.py` and `run_regression_movielens.py`. Read as a set, they cover three datasets and two families of model, the Deep Interest variants and the multi-task path. The two most widely cited names in the table, Wide & Deep and DeepFM, have no run script among the files listed here, so someone starting from those papers is reading the documentation rather than copying an example.

Twenty-three models behind two method names

The whole interface is stated in one clause: you can use any complex model with `model.fit()` and `model.predict()`. That is the architectural claim of the package, twenty-three architectures spanning CIKM 2015 to RecSys 2020, plus component layers you can assemble yourself, all reached through two methods. The description sentence that carries this claim reads Easy-to-use, Modular and Extendible package of deep-learning based CTR models along with lots of core components layers which can be used to build your own custom model easily, with no space after the first comma, and the same wording with CTR(Click Through Rate) spelled out is repeated as the PyPI description in setup.py. The name itself has three spellings: the repository is DeepCTR-Torch, the package directory is `deepctr_torch/` and the distribution on PyPI is `deepctr-torch`.

Three and a half years between v0.2.9 and v0.3.0

The release history has a long flat stretch in it. v0.2.8 was published on 2022-06-19, v0.2.9 on 2022-10-21, and then nothing until v0.3.0 on 2026-04-18. The version string in setup.py reads `0.3.0`, so the tag and the source agree, and the last commit to master is dated 2026-07-09, about three months after the release that is currently newest. Nothing in the visible text says whether v0.3.0 is expected to be followed by more, so the practical question for anyone pinning this is which tag they actually want, since the default install resolves to whatever PyPI currently serves and that surface has only moved twice in four years.

A setup.py with two empty dicts left in it

Two fields in the packaging file are present but blank, and both are visible in the source. `extras_require` opens and closes on adjacent lines with nothing between them, and `entry_points` does the same. That matters more than it looks: an empty `extras_require` means there is no way to install the test dependencies separately, so the three required packages come along with every install, and an empty `entry_points` confirms there is no command line wrapper, only the importable package. The rest of the file is explicit. `download_url` points at the tags page rather than at a source archive, the long description is read from README.md and marked as markdown, and the classifiers declare an Apache Software License, OS Independent, three intended audiences from Developers through Education to Science/Research, and Python 3 as the only implementation.

Editorial conclusion

DeepCTR-Torch is worth a look when you want a published architecture as a starting point rather than a model to design, because the whole list sits behind fit and predict and the component layers are exported for reuse. Check the runtime before committing, because the package claims Python 3.7 support while pinning torch 1.13 for it and torch 2.4 for everything above, and the newest tag v0.3.0 sits three and a half years after v0.2.9 with a last push on 2026-07-09. For anything beyond an experiment, read the version you are about to pin against your own torch, since extras_require and entry_points are both empty and nothing about the dependency set is optional.

Frequently asked questions

What is DeepCTR-Torch?

It is the PyTorch version of DeepCTR: a package of deep-learning based CTR prediction models together with component layers you can use to build a custom model. Any model in the list is driven through model.fit() and model.predict(), and it installs with pip install -U deepctr-torch.

Which Python and PyTorch versions does DeepCTR-Torch support?

python_requires is >=3.7 and the classifiers run from Python 3.7 to 3.13. The install requirement splits by marker: torch>=1.13.0 for python_version below 3.8 and torch>=2.4.0 at 3.8 and above, next to tqdm and scikit-learn.

Is DeepCTR-Torch still being released?

v0.3.0 is the newest tag, published 2026-04-18, and setup.py carries the same version string. The tag before it was v0.2.9 on 2022-10-21, so the two releases sit about three and a half years apart. The last push to master is dated 2026-07-09.

How many models ship with DeepCTR-Torch?

The models table lists twenty-three entries, from Convolutional Click Prediction Model through PLE, each with its paper and venue. They are not all click-through rate models: ESMM, MMOE, PLE and SharedBottom are multi-task or post-click conversion models, and SharedBottom is cited to an overview survey of multi-task learning.

Does DeepCTR-Torch have optional dependencies or a command line tool?

Neither. In setup.py both extras_require and entry_points are empty dicts, so torch, tqdm and scikit-learn are installed in every case and no console script is declared. Tests and examples ship in the tree but there is no extra that pulls their dependencies separately.

Where do DeepCTR-Torch users discuss the project?

Through a Github Discussions link, a WeChat public account with its own ID, a knowledge community link, a WeChat article album, a Zhihu column for a Chinese introduction, and a WeChat discussion group. The Github Discussions link points at the DeepCTR repository rather than DeepCTR-Torch, and the documentation is hosted on readthedocs.

Official sources

  1. License: Apache-2.0
  2. Project website
  3. README
  4. Releases
  5. shenweichen/DeepCTR-Torch on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/shenweichen-deepctr-torch.svg)](https://hysenlabs.com/projects/shenweichen-deepctr-torch)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/shenweichen-deepctr-torch.svg)](https://hysenlabs.com/projects/shenweichen-deepctr-torch)

Was this useful?