efxmarty (@efxmarty) profile picture

ML/SW @ AMD

Joined July 2022
Typical torch.compile:
getting a PR merged in transformers, making torch.compile work, ... be like: youtu.be/Trkxjp0qERg?t=112 and the list could go one
1
3
503
Living in Europe I've always been jealous of all the cool hackathons happening in the US around ML systems & optimization - thankfully AMD is hosting one in Paris in two weeks: lu.ma/fmvdjmur, come say hi (and maybe win some €€, and definitely meet cool folks)! 🤗
174
Is dynamic indexing not supported in torch.cuda.CUDAGraph API? CUDA complains about `operation not permitted when stream is capturing` when using dynamic indexes in this example, but is happy with static indexes. Sounds weird to me :o
1
3
243
But using a slice `perm[0:1]` works... got to love pytorch
119
Meta models user experience: "Your request to access this repo has been rejected by the repo's authors." DeepSeek user experience: `huggingface-cli download deepseek-ai/DeepSeek-R1` let's goooo
1
343
I have a dream where we have clone of @tri_dao working on *all* batched linear algebra imaginable
1
4
491
I'll be presenting today at 5:00 pm CET the work we have been doing at HF on TGI x ROCm, feel free to drop by: streamyard.com/watch/iMZUvJn…
On the next Hugging Cast, see how AMD works with @huggingface to run open source models in the cloud with Instinct GPUs on Azure and locally on Ryzen AI PCs
1
2
473
Beautiful doc by @efxmarty to monitor your LLM deployments (Prom + Grafana) huggingface.co/docs/text-gen…
2
14
1,441
Does H100 actually have 85GB HBM? cudaMemGetInfo gives me 85.17 GB, and nvidia-smi gives me 85.52 GB. Yet the GPU is named "NVIDIA H100 80GB HBM3"
1
9
1,058
I'll be in Seattle next week attending Microsoft Build, if you're around and would like to chat feel free to drop me a message!
1
3
328
huggingface.co/chat/ with llama 3 70B + web search feature is pretty useful IMO, straight to the point, filtering out the bullshit search results, quoting precise sources you can ctrl+F. Next for me is to use an equivalent directly in VSCode for debugging :)
4
270
getting a PR merged in transformers, making torch.compile work, ... be like: youtu.be/Trkxjp0qERg?t=112 and the list could go one
1
4
1,009
TIL that H100 and MI300 each use a different fp8 format (e4m3fn vs e4m3fnuz), that are can not be mapped one-to-one due a different exponent bias. I wonder why e4m3fnuz & the MI300 deviated from IEE 574? Better quality with finer representation close to zero?
2
1
1
11
2,378
yep so according to this commit chromium.googlesource.com/ex… it is NVIDIA/ARM/Intel with 7 exponent bias vs Graphcore/AMD/Qualcomm with 8 exponent bias (arxiv.org/pdf/2209.05433.pdf vs arxiv.org/pdf/2206.02915.pdf)
1
4
696
AutoGPTQ 0.7.0 is released and includes @elias_frantar's Marlin kernel for int4*fp16 matrix multiplication on Ampere GPUs. Check out github.com/AutoGPTQ/AutoGPTQ… - This is usable with any int4 quantized Transformers model (symmetric quantization, no act-order) directly from the Hub!🧵
1
8
20
2,248
Something interesting to note is that comparing Exllama and PyTorch/Marlin is not very fair, as exllama uses cublasHgemm that accumulates on fp16 while PyTorch/Marlin use fp32 accumulation, which impacts latency & the comparison is then not apple to apple.
1
3
197
I wish I were as good at CUDA & profiling than @elias_frantar is, this is awesome work!
1
173
30%+ faster training, 80%+ memory savings? You heard it right, 🤗 Transformers now uses @PyTorch scaled_dot_product_attention by default and automatically dispatches to flash attention, mem-efficient attention, with no other package required than `torch`! github.com/huggingface/trans…
2
41
5
288
40,056
This wouldn't have been possible without the great work and help from the one and only Driss Guessous from @PyTorch team, who built a quite robust integration with @tri_dao's Flash Attention and @Meta's xformers directly in PyTorch. Hopefully AMD GPUs support will come soon!
9
1,076