Better HN
topnewbestaskshowjobs
Log inSign up

gauravm

30 karma · joined Dec 21, 2012 (13y ago) · 22 submissions

Submissions

comment 1y ago · link · parent

New blog post on Efficient AI Techniques: KV Caching and KV Sharing.

Efficient training and inference is table stakes for LLMs these days, and these two algorithmic efficiency techniques work really well for reducing LLM latency as well as memory usage, while retaining the model performance. Feel free to give it a read, and drop a note if I missed something.

2.

Efficient AI: KV Caching and KV Sharing(blog.gaurav.ai ↗)

1 points · by gauravm · 1y ago · 1 comment

comment 4y ago · link · parent

We have been working on a book that focuses on deep learning efficiency techniques such as quantization, pruning, distillation, etc. for both server-side as well as on-device (smartphones, IoT, etc.) applications. We had earlier released the first four chapters for anyone to read for free.

We now have a new chapter focusing on sparsity and clustering, two advanced compression techniques that you can use to reduce the footprint of your model (size, latency, etc.) while retaining your model accuracy. You can read the five chapters released so far, and go through the accompanying codelabs in the form of Jupyter notebooks.

We hope that our readers can make their models 4-20x smaller, faster, and better in quality. We would truly appreciate any sort of comments / feedback.

Book: efficientdlbook.com Feedback: hello@efficientdlbook.com

4.

Free book on optimizing deep learning models for training and inference(efficientdlbook.com ↗)

2 points · by gauravm · 4y ago · 1 comment

5.

Efficient Deep Learning: A Survey on Making DL Models Smaller, Faster, & Better(arxiv.org ↗)

3 points · by gauravm · 5y ago · discuss

comment 8y ago · link · parent

There is Tensorflow Lite that Google just opensourced.

7.

Back to Basics: Reservoir Sampling(blog.gaurav.im ↗)

1 points · by gauravm · 9y ago · discuss

8.

Lambda: A Lisp Interpreter Written in Go That Runs in an iOS App(blog.gaurav.im ↗)

6 points · by gauravm · 10y ago · discuss

9.

Facebook expands Search to 2 Trillion posts(facebook.com ↗)

1 points · by gauravm · 11y ago · discuss

comment 11y ago · link · parent

Sadly, there is no 'R' anymore :-/

comment 11y ago · link · parent

I really like this approach of gamified interview prep, kind of like Duoling style learning. Practicing for interviews is hard, and this makes it a little more fun :) Good luck!

comment 11y ago · link · parent

I wanted something easy to use to quickly get an idea of how much explicit content could we be dealing with. The main challenge was dealing with a multi-lingual database. I didn't even find a naive classifier.

Though I don't have time/RoI to improve this, but potential ideas are to use labeled data to cluster porny words and get a probablistic metric of porni-ness of a sentence.

comment 11y ago · link · parent

Thanks. This quick idea worked for my cases, because there were few potential false positives. But your idea around using a regex style matcher should be good.

comment 11y ago · link · parent

Sorry, no offense intended, if anyone took it. In my use-case, the words such as 'gay' and 'lesbian' were in almost all cases, used for explicit documents.

This is a very naive implementation to quickly get a handle of amount of porny documents. I intend to do some more work around clustering of porny words. I think understanding sentiment would be hard and involves a lot of labeled data, but that is a potentially very useful project.

15.

Show HN: A naive classifier to figure out if a sentence contains dirty words(github.com ↗)

10 points · by gauravm · 11y ago · 11 comments

16.

A Gentle Intro to Libevent(blog.gaurav.im ↗)

2 points · by gauravm · 11y ago · discuss

17.

Random Quotes from Breaking Bad, GoT, LoTR as an API (written in Golang)(randquotes.com ↗)

3 points · by gauravm · 13y ago · 1 comment

18.

Facebook's Distributed SQL Query Engine for Big Data - Presto(prestodb.io ↗)

12 points · by gauravm · 13y ago · discuss

comment 13y ago · link · parent

Is it just me or does the abstract seems like it was written by some grammar retard?

20.

Scalable Bloom Filters in Go(blog.gaurav.im ↗)

2 points · by gauravm · 13y ago · discuss