Better HN
topnewbestaskshowjobs
Log inSign up

jacobgorm

971 karma · joined Feb 23, 2013 (13y ago) · 352 submissions

CS PhD who invented live VM migration. In AI since 2016, founder at Vertigo.ai and Jamscape (exited to Dropbox)
Submissions

comment 1d ago · link · parent

Not sure if it is because Mistral broke it, but I have been seing DS 4.1 Flash eff up consistently when trying to use it from there. Stuff like randomly overwriting files or doing git checkout -- on files it wasn't asked to touch, causing loss of WIP changes.

comment 1w ago · link · parent

The problem is that when nobody writes code or feels ownership over it anymore, nobody will be qualified to or really interested in doing the code reviews. The way forward could involve dropping code reviews altogether. You could argue that the useful pingpong between coder and reviewers has been replaced by the similar pingpong between the prompter and the agent.

comment 1w ago · link · parent

And I am one of the authors of that paper :-)

comment 1w ago · link · parent

L4Linux on NomadBIOS got it in 2002, and Xen got it about a year later, after I had met with the Cambridge Xen team at SOSP in upstate New York.

comment 1w ago · link · parent

See also the Doherty threshold https://lawsofux.com/doherty-threshold/

comment 2w ago · link · parent

I also try to use my idle time reading research papers, to make up for AI making me dumber in other respects.

comment 3w ago · link · parent

The people behind Toit are the original people behind the V8 VM in Chrome. They know their stuff.

comment 1mo ago · link · parent

Can you describe in detail what these powerful institutions are, and how they manage to hold back change?

comment 1mo ago · link · parent

The model architecture might be ten old, but it seems it was trained recently, so the title is a bit misleading.

comment 1mo ago · link · parent

Land of the free...

comment 1mo ago · link · parent

It should come with a flight attendant and an obligatory five minute safety instruction before each ride. I've ridden in multiple Teslas, including many Ubers, and no one has even given me the manual to read or shown me how to escape in case of a fire.

comment 1mo ago · link · parent

The register is hosted by US-owned DXC (formerly CSC.), who, apparently, did not know how to rate-limit the lookups.

comment 1mo ago · link · parent

"A little plague will be good for your natural immunity, by my favorite Danish team of crackpot researchers have just received $10M in express funding to test in African children whether the GCB vaccine helps, when we expose them to the bacterium"

comment 1mo ago · link · parent

Even this week following new mediocre PISA results for Danish pupils, I see organizations like the Danish Industry Association and the Danish Chamber of Commerce posting calls for more computers in classrooms, to combat the problems caused by computers in classrooms. They say kids just need to be tought better “technology understanding”.

comment 2mo ago · link · parent

I prefer to wirelessly charge my phone because the charging port is the part that typically wears out before the rest of the phone. My first EV's charging cable also wore about after around seven years of use, so I had to replace the entire charger. Charging port doors on some EVs also also known to develop faults in the locking motor, and the ports and/or its cover tends to fall of, which is is costly to repair as you need to repaint the new part. And then come the issues with having to choose EV models to suit the layout of your garage, as well as issues with the cable getting in the way when trying to pass the charging car with your bike, etc.

I cannot afford the Cayenne, but once this gets to cheaper models this will be an option I would be willing to pay for.

comment 2mo ago · link · parent

Neso is an ahead-of-time compiler backend for Triton. It lowers Triton TTIR/TTGIR into MSL or HLSL shader code, to allow modern LLM compute kernels such as Flash Attention II to run on GPUs in consumer devices such as Macs and Windows laptops. A companion project, NSpeech https://github.com/dropbox/nspeech, built in Rust with Candle, demonstrates how Neso can be used to power local ASR and TTS models.

17.

Neso: Metal MSL and D3D12 HLSL Back End for Triton(github.com ↗)

1 points · by jacobgorm · 2mo ago · 1 comment

comment 2mo ago · link · parent

I can program all my non-CUDA GPUs use completely open non-proprietary toolchains. And if that ceases to be the case on one platform I can switch platforms without having to rewrite all my code.

comment 2mo ago · link · parent

If that business makes it money selling a cross-platform AI inference engine, as was the case for my previous startup, it is bad business to tie yourself to single platform. I managed to build a single code base that would support CPUs, OpenCL, Metal, CUDA, D3D12, and WebGPU from a single set of kernel sources. As a single developer, there was no way I would have been able to, at the time, maintain separate code paths and GPU kernels for each of those platform, in addition to training the models etc.

comment 2mo ago · link · parent

It is currently faster than the stock Candle / MPS shaders it replaces on MacOS/ARM64, and IIRC a bit slower than OpenVINO/CPU on my old Windows laptop, where I never got OpenVINO/GPU to compute correctly. Candle didn't have support for GPUs on MacOS/Intel, and OpenVINO ceased to be supported there.

Compared to OpenVINO (I tried ONNX runtime too, but never got it produce correct outputs with my quantized models) it is very nice to be able to build the exact kernels I need, at the quantization settings and precision that works for the models I have and with the custom operators required (speech models do a lot of non-standard stuff), run from a single set of sources, and not have to ship a hefty third-party DLL, and having to deal with their memory leaks and other stability issues.

comment 2mo ago · link · parent

As it happens, I just got my employer's permission to release as open source a Triton back-end for Metal and D3D12 GPUs here: https://github.com/dropbox/neso .

As an example of you how can use it to deploy real models there is this project doing ASR and TTS: https://github.com/dropbox/nspeech .

Finally, I am also going to be switching the inferencing part of Witchcraft from current Candle on MacOS and OpenVINO on Windows to just Candle with Neso; https://github.com/dropbox/witchcraft

comment 2mo ago · link · parent

What reasons would you have to prefer Rust over C for compute kernels? I am a great fan of Rust, but I don't see any benefit for kernels, due to their relatively simple nature.

comment 2mo ago · link · parent

For learning that may be a fine approach, but CUDA (in C++) really tries to hide what is going on behind the scenes, which is roughly:

1) code gets split between a host part that goes through your normal compiler, and a device part that goes through the GPU compiler. You may as well write the kernels separate and compile them via a separate compilation step, and keep your trusted host compiler for the host-side code.

2) data needs to move between the host and devices via explicit buffer transfers and synchronization steps, CUDA tries to hide this with annotated pointers, but it is really easier to think about those as just buffers that you allocate and transfer IMO, instead of trying to transparently share pointers between host and device like CUDA does.

3) kernel launches can we wrapped in a function similar to:

void RunKernel(const char *kernel_name, size_t width, size_t height, size_t depth);

Instead of the funky <<< >>> syntax that CUDA for C/C++ imposes. The problem is that once you start putting that in your code, it stops being C++ and stops being portable to non-CUDA GPUs. The launching and grid settings can be a bit hard to grasp at first, but sugarcoating that in bastardized C++ syntax does not absolve from having to understand it eventually.

So a good place to start might be an OpenCL or Metal primer, depending on the hardware you have available. D3D12 (and probably Vulcan too) makes this much harder than it should be, with too much boilerplate but is overall a mature and well-designed API should you wish to develop for Windows. Starting with WebGPU might also be good these days. It has a very different shader language than the others, but the rest of the concepts are similar, and it has a strong emphasis on making things async, which is what you want for performance anyways.

Claude/Codex should be able to get you moving very quickly.

comment 2mo ago · link · parent

Because I know it is not technically crap, a lot of competent people worked on it, most with good intentions. I suppose it is better described as a cleverly designed Trojan horse than can infect your software and make that software become crap, in the sense that it becomes harder to maintain, increases code duplication, messes with your build system, ties your build system to platforms that have their toolchain binaries available, etc., etc., without bringing any long-term benefits over learning things the hard way.

comment 2mo ago · link · parent

I haven't felt this popular since then 1990s when I was opposing Visual J++ and IIS.

comment 2mo ago · link · parent

You can call their APIs without needing to compile your code with a proprietary compiler or adopt a bastardized version of C++.

comment 2mo ago · link · parent

No. CUDA allows you to write all the code in a single file, and uses a preprocessor to split it back out and pass it through separate compilers, one for host and one for device.

comment 2mo ago · link · parent

CUDA is not an API, CUDA is a language, so you cannot make that comparison.

comment 2mo ago · link · parent

Nobody cares if kernels are written in Rust. Kernels were meant to be written in C, but if you want to go more high-level try Triton or a similar DSL that nicely abstract tile sizes etc.

comment 2mo ago · link · parent

I strongly dislike CUDA. Once you have allowed that proprietary cr*p into your C++ codebase, it is very hard to get rid, and you end up with code that is either tied to a single vendor or an #ifdef hell, probably both.

The best way to program GPUs is face up to the reality that they are not the same machine as the CPU, write your kernels in separate files, and launch them manually, like in Metal, OpenCL, and D3D12, etc. These days we even have DSLs like Triton that make kernel writing much more ergonomic than anything you would hope to achieve in Rust.

12345
12