[HN Gopher] Llama2.rs: One-file Rust implementation of Llama2
___________________________________________________________________
Llama2.rs: One-file Rust implementation of Llama2
Author : sshroot
Score : 12 points
Date : 2023-08-05 16:03 UTC (6 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| CameronNemo wrote:
| _This is my first Rust project, so if you are an expert I would
| love a code review!_
|
| Seeing a few uses of `unsafe`, a few of `expect`. Wonder if you
| can mmap the binary model in without unsafe??
| WiSaGaN wrote:
| This has 2 dependencies. Notably it depends on rayon.
___________________________________________________________________
(page generated 2023-08-05 23:02 UTC)