l-m-z
Show HN: MetaVoice-1B on Candle, local text-to-speech in Rust with GPU support
Fast inference for text models using Rust
An OCaml port of min-DALLE
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.
Using Python and OCaml in the same Jupyter notebook
Playing Atari Games with OCaml and Deep Reinforcement Learning
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.
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...