Thinc

Languages and libraries

deep learning library

SHOW HN2020

Legend

Thinc

A new deep learning library by the makers of spaCy and FastAPI

thinc.ai

#deep learning#type hints#numpy#pytorch#machine learning library

250points
17comments
#189of 3,028 in 2020
Top 7%of 2020 by points

How HN took it

CuriousMostly questions and neutral comments

5 positive, 8 neutral or asking, 1 mixed, 2 critical, out of 16 comments about the project. Thread score +0.04.

Idea: 2 for, 0 againstDesign: 1 for, 1 againstExecution: 1 for, 0 againstPerformance: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Type hints and mypy plugin make numpy and tensor code easier to check

    From 2 comments
    • FastAPI creator here. If you've used FastAPI you'll probably like Thinc. It uses Python type hints extensively and even includes a Mypy plugin. So, you'll get nice and clear…
      tiangolo on HN
    • Damn, SpaCy and FastAPI, not to mention Prodigy, make up a huge percentage of our teams development stack. It took us a while to even realize that tiangolo and syllogism work…
      ZeroCool2u on HN
  • Wrapping PyTorch, TensorFlow and MXNet models within one network

    From 2 comments
    • FastAPI creator here. If you've used FastAPI you'll probably like Thinc. It uses Python type hints extensively and even includes a Mypy plugin. So, you'll get nice and clear…
      tiangolo on HN
    • I've been working on various versions of Thinc for a long time --- it's always been the name for the machine learning code powering spaCy. But previous versions really weren't…
      syllogism on HN
  • Simple, functional design praised as beautiful and productive

    From 1 comment
    • Damn, SpaCy and FastAPI, not to mention Prodigy, make up a huge percentage of our teams development stack. It took us a while to even realize that tiangolo and syllogism work…
      ZeroCool2u on HN

Objections

  • Performance concerns from no custom CUDA kernels and no compiled optimisation

    From 1 comment
    • So no custom CUDA kernels, just CuPy? Isn't that a performance issue? (Based on installation notes)
      kmbriedis on HN
  • Seems more complicated and confusing than plain PyTorch

    From 1 comment
    • I must be missing something but this looks more complicated and confusing than plain PyTorch.
      m0zg on HN
  • Type system for variadic tensor types is difficult

    From 1 comment
    • The best answer is, "with some difficulty". I've written a bit about the struggles here: https://thinc.ai/docs/usage-type-checking#model-types There are basically two approaches,…
      syllogism on HN

Requests

  • Multi-GPU and multi-node training support

    From 1 comment
    • But Keras does not support PyTorch or MXNet. I think the design of Model, Block, and Layer like this is very intuitive and shared among several frameworks. I wish it could have…
      yzh on HN

Questions

  • How does it compare to TensorFlow, Keras, PyTorch and fast.ai

    From 2 comments
  • Is it a Keras replacement

    From 1 comment
    • Just for clarification, is it like a Keras replacement?
      amrrs on HN
  • How does the type system handle variadic tensor types

    From 1 comment
    • Interesting project! How does the type system work with variadic types and arbitrary tensor manipulations? e.g. a function transforms tensor[A, B] -> tensor[A].
      ipsum2 on HN

Alternatives named

  • Keras

    From 2 comments
    • Just for clarification, is it like a Keras replacement?
      amrrs on HN
    • But Keras does not support PyTorch or MXNet. I think the design of Model, Block, and Layer like this is very intuitive and shared among several frameworks. I wish it could have…
      yzh on HN
  • PyTorch

    From 2 comments
    • how does it compare to Tensorflow, Keras, PyTorch ?
      guybedo on HN
    • I must be missing something but this looks more complicated and confusing than plain PyTorch.
      m0zg on HN
  • TensorFlow

    From 1 comment
  • fast.ai

    From 1 comment

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/22174412)