Chad Brewbaker

Results 102 comments of Chad Brewbaker

Could you run this and paste the results? ```bash sudo strace uutils_touch /tmp/newfile &> log1.txt sudo strace gnu_touch /tmp/newfile2 &> log2.txt ```

GNU touch ```bash openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=3041456, ...}) = 0 mmap(NULL, 3041456, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6ca71d9000 close(3) = 0 openat(AT_FDCWD, "/tmp/newfile", O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK, 0666) =...

Problems I see: 1) uutils_touch is truncating files by default - that's a problem? 2) uutils_touch should also call utimensat()? I'll run with code coverage to make sure I understand...

This line: https://github.com/uutils/coreutils/blob/4b76849de72557e377bc211c82e6e5208d8bc652/src/uu/touch/src/touch.rs#L151 Library issue that hard codes the truncate(true). https://github.com/rust-lang/rust/blob/4ffb5c5954a304daf47a567b34e74e421db86d98/library/std/src/fs.rs#L357 ```rust #[stable(feature = "rust1", since = "1.0.0")] pub fn create(path: P) -> io::Result { OpenOptions::new().write(true).create(true).truncate(true).open(path.as_ref()) } ``` GNU discussion...

Until this project is super stable, I have been thinking about an optional build flag that inserts a lightweight shim for Linux that if you pass a --classic flag it...

I am finding nanoGPT useful as a playground for modeling refactors to [llama.cpp](https://github.com/ggerganov/llama.cpp). I was thinking of adding a third script that is instrumented so you can run experiments and...

The tiny codebase should be kept as-is. Perhaps fork the repo elsewhere, and list notable forks at the bottom of the README? ## Notable picoGPT uses * [picoGPT_viz](http://www.doesntexist.com) - visualize...

Why not go full MPI? Probably easier to parallelize the tensor operations, but I think the tokens can also be done as a parallel prefix https://gist.github.com/chadbrewbaker/ffe95290fc945af63611693688dfe54d You should see super-linear...

I started an mpi branch just to include mpi.h and get it compiling on supported platforms. Probably gate everything with a USING_MPI ifdef so it stays out of everyone's way....

> Thanks for your PR! I was using BLAS to achieve something similar as what you are doing: tweaking the BLAS environment variable to set the number of eval threads,...