HNHacker News
TopNewBestAskShowJobs

varunshenoy

381 karma · joined May 27, 2016

site: varunshenoy.com twitter: @varunshenoy_
submissionscomments
varunshenoy··on Ask HN: Is anybody getting value from AI Agents? How so?
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.

varunshenoy··on Generating VR worlds with Stable Diffusion in < 5s
Hey guys! Just wanted to share a fun side project.

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

varunshenoy··on A guide to open-source LLM inference and performance
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.
varunshenoy··on A guide to open-source LLM inference and performance
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

varunshenoy··on A guide to open-source LLM inference and performance
Thanks!

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

varunshenoy··on A guide to open-source LLM inference and performance
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.

varunshenoy··on A guide to open-source LLM inference and performance
:)
varunshenoy··on Show HN: Playground for comparing embedding models on Wikipedia+book retrieval
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).

varunshenoy··on Opendream: A layer-based UI for Stable Diffusion
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!

varunshenoy··on Opendream: A layer-based UI for Stable Diffusion
LoRAs can be handled as a straight-forward Python extension!
varunshenoy··on Opendream: A layer-based UI for Stable Diffusion
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!

varunshenoy··on Opendream: A layer-based UI for Stable Diffusion
done :)
varunshenoy··on GraphGPT: Extrapolating knowledge graphs from unstructured text
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.

varunshenoy··on GraphGPT: Extrapolating knowledge graphs from unstructured text
If anyone wants to play around without having to set everything up:

https://graphgpt.vercel.app/

Just bring your own OpenAI API Key.

varunshenoy··on GraphGPT: Extrapolating knowledge graphs from unstructured text
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.

varunshenoy··on GraphGPT: Extrapolating knowledge graphs from unstructured text
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!).
varunshenoy··on GraphGPT: Extrapolating knowledge graphs from unstructured text
Yup, this is correct. Huge fan of Arc!
varunshenoy··on GraphGPT: Extrapolating knowledge graphs from unstructured text
Hey everyone, author of the repo here.

Never expected to see this near the top of HN, but here we are! Super cool to see so much excitement around my weekend hack. Happy to answer any questions on the project.

I posted a couple demo videos on Twitter, in case anyone is interested: https://twitter.com/varunshenoy_/status/1620511932930490372?...