Better HN
topnewbestaskshowjobs
Log inSign up

zanussbaum

87 karma · joined Oct 30, 2018 (8y ago) · 15 submissions

zanussbaum.github.io

https://x.com/zach_nussbaum

Submissions

1.

The Lost Nuance of Grep vs. Semantic Search(nuss-and-bolts.com ↗)

2 points · by zanussbaum · 1y ago · discuss

2.

I Like Big Batches and I Cannot Lie: Tricks for Good Embeddings(nuss-and-bolts.com ↗)

3 points · by zanussbaum · 1y ago · discuss

comment 1y ago · link · parent

First embedding models trained from modern-bert-embed!

4.

The release of the first ModernBERT-based embedding models(twitter.com ↗)

1 points · by zanussbaum · 1y ago · 1 comment

comment 2y ago · link · parent

this was a huge inspiration for the post! i tried to highlight it in the blog but it might have gotten buried

there are a few things that i wasn't able to figure out how to get access to/i wasn't sure if they were possible. for example, a lot of Simon's article takes advantage of the warp scheduler and warp tiling.

i had a hard time finding information on if that's even possible with my M2/metal and the general memory access patterns. it seems like CUDA does have better documentation in this regard

comment 2y ago · link · parent

oh in that case it was because i didn't know about them :) something to try next!

comment 2y ago · link · parent

at least on my m2, the compiled kernel ends up using fast math anyways so using WGSL's fma didn't change anything about the actual kernel that gets run

comment 2y ago · link · parent

thanks! and yes definitely not at CUDA levels :)

comment 2y ago · link · parent

i tried using workgroup shared memory and found it slower than just recomputing everything in each thread although i may have been doing something dumb

i'm excited to try subgroups though: https://developer.chrome.com/blog/new-in-webgpu-128#experime...

comment 2y ago · link · parent

you're definitely right, 80% was a bit of an overestimation, especially with respect to CUDA

it would be cool to see if there's some way to get better access to those lower-level primitives but would be surprised

it does seem like subgroup support are a step in the right direction though!

comment 2y ago · link · parent

great question, to me webGPU sits a hair high level than CUDA or Vulkan. so you don't have the exact same level of control but can get to 80% performance of it without having to write different kernels specific to the hardware

12.

Optimizing a WebGPU Matmul Kernel for 1 TFLOP(zanussbaum.substack.com ↗)

172 points · by zanussbaum · 2y ago · 80 comments

comment 3y ago · link · parent

Has been a huge boost over using Copilot. I accidentally was using Copilot instead of Codeium and was confused why the generations took so long until I realized! Great product

comment 6y ago · link · parent

This made my day