News for hackers. Stuff that matters.

l-m-z

Hibiki is an auto-regressive model with temperature based sampling so very similar to a LLM, generations are "random" and you can make them deterministic by fixing the RNG seed.
Re:Moshi: A speech-text foundation model for real time dialogue on Wednesday September 18, 2024 @06:22PM (#41586240)
Hi swyx, laurent from kyutai here. We actually used the online demo at moshi.chat for the live event (the original demo), so same quantization. We updated the weights on the online version since then to add support for more emotions but we haven't noticed it being worse. One thing to point out is that it takes time to get used to interact with the model, what tends to work, how to make it speak. The live event was far from perfect but we certainly used this experience. I would encourage you to try a bit the same kind of interaction we add on the live event and you should get similar results (though the model is very unpredictable so hard to be sure, you can see that some part of the live events definitely didn't work as expected).
Re:Llm.c – LLM training in simple, pure C/CUDA on Tuesday April 09, 2024 @01:48AM (#39976485)
Candle dev here, we also support training/backdrop! We certainly focus on optimizing inference performance but hopefully that should improve the training efficiency too.
Re:Candle: Torch Replacement in Rust on Tuesday August 08, 2023 @04:05PM (#37054752)
The tensors should be Send and Sync so can be manipulated from multiple threads, the underlying data is protected by a RWLock to guard against data races. The heavy operations such as matrix multiplication will be run on multiple cores even without using some explicit threading.
Re:Llama2.c: inference llama 2 in one file of pure C on Monday July 24, 2023 @07:42AM (#36846283)
Another random (self) plug for a rust version, this uses the candle ML library we've been working on for the last month and can be run in the browser. https://laurentmazare.github.io/candle-llama2/index.html The non-web version has full GPU support but is not at all minimalist :)

Show HN: Stable Diffusion implementation in Rust/libtorch

https://github.com/LaurentMazare/tch-rs/tree/main/examples/stable-diffusion

This is an implementation of Stable Diffusion in Rust using libtorch bindings - including some nice samples of rusty robots! It follows the lines of Huggingface's (amazing) diffusers library. The main goal is to show how a complex model can be converted and re-used on the Rust side.

( Read More... | no comments | on HN )
Re:Self-Supervised Learning [pdf] on Sunday June 16, 2019 @12:03PM (#20196135)
This is from yesterday's (June the 15th) workshop on self-supervised learning at ICML. The video of this talk can be seen here: https://www.facebook.com/icml.imls/videos/2030095370631729/ (not sure if the video is also available on other platforms than facebook)
Re:OCaml bindings for PyTorch on Saturday January 19, 2019 @07:26PM (#18950159)
(I'm obviously biased as being the author of ocaml-torch) Using functional programming is not of much help for size mismatches, the current bindings don't even use the type system to check the number of dimensions - although that should be reasonably easy to add. Maybe a better approach to help with this would be tensors with named dimensions http://nlp.seas.harvard.edu/NamedTensor It's possible that a strong type system would help here but I don't think there have been much attempts.

However when using the Python api I often have errors because of: - Unused variables when refactoring my code, which are just me forgetting to use some parameters. - Comparing things of different types (and Python does not report any error and just return that they are different). - Making changes to some helper functions without adapting all the projects where I'm using them. Using a good Python linter probably helps with these, but that's a place where languages like ocaml naturally shine.

Re:OCaml bindings for PyTorch on Saturday January 19, 2019 @06:31PM (#18949921)
Bindings author here. This should support most of the PyTorch ops - this is done by automatically generating the binding code as there are more than a thousand of these. Most of the models available in torchvision should also be there (with pre-trained weights) see https://github.com/LaurentMazare/ocaml-torch/tree/master/src... Finally it's also possible to export some python defined models and run them from ocaml.

That being said there are some rough edges compared to the PyTorch api, e.g. no parallel data loader, not much tooling and only a couple tutorials...