Better HN
topnewbestaskshowjobs
Log inSign up

dlewis1788

67 karma · joined Jan 21, 2018 (8y ago) · 13 submissions

CTO, Silex Data Solutions Opinions expressed here are my own.

LinkedIn - https://www.linkedin.com/in/derek-lewis-b3881318/ GitHub - https://github.com/derekelewis Twitter - https://twitter.com/derekelewis

Submissions

comment 1y ago · link · parent

Looks like more than KV is having an issue. Just tried to load dash.cloudflare.com and no bueno.

comment 1y ago · link · parent

100% - probably why vLLM is now the default back-end in Dynamo.

comment 1y ago · link · parent

100% valid - Nvidia is trying to address that now with cuTile and the new Python front-end for CUTLASS.

comment 1y ago · link · parent

CUDA is an entire ecosystem - not a single programming language extension (C++) or a single library, but a collection of libraries & tools for specific use cases and optimizations (cuDNN, CUTLASS, cuBLAS, NCCL, etc.). There is also tooling support that Nvidia provides, such as profilers, etc. Many of the libraries build on other libraries. Even if AMD had the decent, reliable language extensions for general-purpose GPU programming, they still don't have the libraries and the supporting ecosystem to provide anything to the level that CUDA provides today, which is a decade plus of development effort from Nvidia to build.

comment 1y ago · link · parent

Just curious what your issues with Triton were. We've done OK with it using it to serve LLM models w/ a classifier head via HF Transformers pipeline & Flash Attention 2, as well as serving text generation models with the vLLM back-end.

comment 2y ago · link · parent

For training, yes, but no indications on inference workloads. Apple has said they would use their own silicon for inference in the cloud.

comment 3y ago · link · parent

Someone commented below that with enough batchnorm/layernorm/etc. and/or gradient clipping you can manage it, but BF16 just makes life easier if you can live without some precision.

comment 3y ago · link · parent

I didn't even know about Apple's AMX instructions until I clicked on your link. Very interesting - thanks!

comment 3y ago · link · parent

My understanding is for certain types of networks BF16 will train better than FP16, given the additional protection against exploding gradients and loss functions with the extended range of BF16 - at the loss of precision.

comment 3y ago · link · parent

Confirmed Apple M1 lacks bfloat16 support completely - M1: hw.optional.arm.FEAT_BF16: 0 vs M2: hw.optional.arm.FEAT_BF16: 1

comment 3y ago · link · parent

Somehow missed this from WWDC23, but it looks like Sonoma will add support for bfloat16 with Metal, and there's an active PR to add support with the PyTorch MPS back-end (PR #99272). Since M2 added bfloat16 support at the hardware level, I'm assuming this will only be supported on M2 Macs.

That maxed out Mac Studio M2 w/ 192GB of memory now looks more appealing...

12.

Bfloat16 support coming to Apple's Metal and PyTorch [video](developer.apple.com ↗)

93 points · by eoskx · 3y ago · 53 comments