Better HN
topnewbestaskshowjobs
Log inSign up

varunshenoy

381 karma · joined May 27, 2016 (10y ago) · 40 submissions

site: varunshenoy.com twitter: @varunshenoy_
Submissions

comment 2y ago · link · parent

I've been playing with AI agents for months, and most of them are pretty bad. They often get stuck in loops, which is frustrating. This happens in MultiOn, AutoGPT, and others.

I've used Devin a few times (see: https://x.com/varunshenoy\_/status/1767591341289250961?s=20), and while it's far from perfect, it's by far the best I've seen. It doesn't get stuck in loops, and it keeps trying new things until it succeeds. Devin feels like a fairly competent high school intern.

Interestingly, Devin seems better suited as an entry-level analyst than a software engineer. We've been using it internally to scrape and structure real estate listings. Their stack for web RPA and browser automation works _really_ well. And it makes sense why this is important: if you want to have a successful agent, you need to provide it with good tools. Again, it's not flawless, but it gives me hope for the future of AI agents.

2.

Where are the good AI products?(varunshenoy.substack.com ↗)

2 points · by varunshenoy · 2y ago · discuss

3.

Super JSON Mode: Up to 20x Faster JSON Generation from LLMs(github.com ↗)

2 points · by varunshenoy · 2y ago · discuss

4.

Show HN: Generate Cover Art for Spotify Playlists(coverart.lol ↗)

2 points · by varunshenoy · 2y ago · 1 comment

comment 2y ago · link · parent

Hey guys! Just wanted to share a fun side project.

Code is here: https://github.com/varunshenoy/latentverse

6.

Generating VR worlds with Stable Diffusion in < 5s(latentverseai.com ↗)

6 points · by varunshenoy · 2y ago · 2 comments

comment 3y ago · link · parent

Slightly different set of trade-offs, but similar mental model. You always use large batch sizes (compute bound) and the bottleneck usually ends up communication between GPUs/nodes.

comment 3y ago · link · parent

Good question. Yes, the 10GB available for batching is in the HBM. In a single forward pass, you move the entire model from HBM -> SRAM exactly once. In a batched forward pass, this is still the case, so you end up doing more compute for the same amount of memory movement.

You can calculate the SRAM as follows: an A100 has 108 SMs, and each SM has 192 KB in SRAM (shared memory, aka its L1 cache) [1]. Multiplied out, this is ~20 MB of total SRAM. This happens to match up with the diagram in the Flash Attention paper [2].

[1] https://developer.nvidia.com/blog/cuda-refresher-cuda-progra...

[2] https://arxiv.org/pdf/2205.14135.pdf

comment 3y ago · link · parent

Thanks!

vLLM for quick set up, TRT-LLM for best performance. Both available on https://baseten.co/.

comment 3y ago · link · parent

Absolutely. Looks like the M1 Ultra has 800GB/s of memory bandwidth and ~20 TFLOPS of compute.

The same calculations from the post should hold, except with these new values.

comment 3y ago · link · parent

:)

12.

A guide to open-source LLM inference and performance(baseten.co ↗)

113 points · by varunshenoy · 3y ago · 14 comments

13.

Show HN: Misgif – AI Generated GIFs(misgif.app ↗)

2 points · by varunshenoy · 3y ago · discuss

comment 3y ago · link · parent

Awesome job guys, and thank you for creating it. Curious if you guys have any insights on long-term memory and if there are better ways to do retreivel apart from top-k.

Seems weird that every RAG app uses top-k especially since you might pull in information irrelevant to the context (e.g. if you were asking for the names of the authors of paper, you probably only want the top-1 embedding).

15.

Why Open Source AI Will Win(varunshenoy.substack.com ↗)

1 points · by varunshenoy · 3y ago · discuss

16.

How we got Stable Diffusion XL inference to under 2 seconds(baseten.co ↗)

51 points · by varunshenoy · 3y ago · 5 comments

comment 3y ago · link · parent

You can write an extension to support LoRA (~10 lines of Python HF Diffusers code).

If you get to this before me, please create a PR!

comment 3y ago · link · parent

LoRAs can be handled as a straight-forward Python extension!

comment 3y ago · link · parent

If anyone wants to add SDXL support, all you have to do is create a new extension with the correct SDXL logic (loading from HF diffusers, etc.). You could parameterize `num_inference_steps`, for example, to delegate decisions to the user of the extension.

If anyone gets to making one before me, please leave a PR!

comment 3y ago · link · parent

done :)

21.

Opendream: A layer-based UI for Stable Diffusion(github.com ↗)

472 points · by varunshenoy · 3y ago · 137 comments

22.

How do embeddings work? (in under 10 minutes)(generativemagic.substack.com ↗)

3 points · by varunshenoy · 3y ago · discuss

23.

Natural language is an unnatural interface(varunshenoy.substack.com ↗)

154 points · by varunshenoy · 3y ago · 88 comments

24.

Coauthor: Open-Source Text to LaTeX in Overleaf(github.com ↗)

5 points · by varunshenoy · 3y ago · discuss

25.

Please Build More Silly Things(varunshenoy.substack.com ↗)

1 points · by varunshenoy · 3y ago · 1 comment

comment 3y ago · link · parent

Agreed. Definitely a drawback of this technique — you might not get the exact specificity you want.

In general, GraphGPT tends to be very conservative in adding nodes/relationships. Not sure why, but probably deserves more investigation.

comment 3y ago · link · parent

If anyone wants to play around without having to set everything up:

https://graphgpt.vercel.app/

Just bring your own OpenAI API Key.

comment 3y ago · link · parent

We've been messing with a Vercel deployment so you might've seen that :)

https://graphgpt.vercel.app/

It's not quite battle tested, but think I gotta sleep and take a look at it tomorrow.

comment 3y ago · link · parent

Handling state (especially long-term) is really a struggle for LLMs right now. This issue should become easier to work with as context windows scale up in the next couple years (or months, who knows!).

comment 3y ago · link · parent

Yup, this is correct. Huge fan of Arc!
12