Better HN
topnewbestaskshowjobs
Log inSign up

l-m-z

127 karma · joined Sep 21, 2018 (8y ago) · 15 submissions

Submissions

comment 1y ago · link · parent

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.

comment 2y ago · link · parent

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).

3.

Moshi: A voice AI that can display emotions(twitter.com ↗)

26 points · by l-m-z · 2y ago · 1 comment

comment 2y ago · link · parent

Candle dev here, we also support training/backdrop! We certainly focus on optimizing inference performance but hopefully that should improve the training efficiency too.

5.

Show HN: MetaVoice-1B on Candle, local text-to-speech in Rust with GPU support(twitter.com ↗)

3 points · by l-m-z · 2y ago · discuss

6.

Fast inference for text models using Rust(github.com ↗)

3 points · by l-m-z · 3y ago · discuss

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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 :)

9.

An OCaml port of min-DALLE(github.com ↗)

1 points · by l-m-z · 4y ago · discuss

10.

Show HN: Stable Diffusion implementation in Rust/libtorch(github.com ↗)

4 points · by l-m-z · 4y ago · discuss

11.

Using Python and OCaml in the same Jupyter notebook(blog.janestreet.com ↗)

165 points · by l-m-z · 6y ago · 34 comments

comment 7y ago · link · parent

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)

13.

Playing Atari Games with OCaml and Deep Reinforcement Learning(blog.janestreet.com ↗)

8 points · by l-m-z · 7y ago · discuss

comment 7y ago · link · parent

(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.

comment 7y ago · link · parent

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...