Better HN
topnewbestaskshowjobs
Log inSign up

atairov

5 karma · joined Aug 13, 2023 (3y ago) · 19 submissions

Submissions

1.

Velocity – GitHub Activity and Productivity Reports for GitHub Repos and Orgs(github.com ↗)

2 points · by atairov · 1y ago · discuss

2.

Modular Community Edition, MAX and Mojo are free forever for commercial use(modular.com ↗)

5 points · by atairov · 1y ago · 1 comment

comment 2y ago · link · parent

A technology partnership with NVIDIA to bring all the benefits of their accelerated compute platform to MAX, unifying and simplifying heterogeneous CPU+GPU development for AI developers everywhere.

4.

Modular announced strategic partnerships with Nvidia and AWS(modular.com ↗)

1 points · by atairov · 2y ago · 1 comment

5.

Llama2 12 Ports Extensive Benchmark Results on Mac M1 Max(engiware.com ↗)

1 points · by atairov · 3y ago · discuss

comment 3y ago · link · parent

I'm honoured to be the author of the first ever guest post on the Modular AI blog

7.

How I Built Llama2.mojo(modular.com ↗)

1 points · by atairov · 3y ago · 1 comment

comment 3y ago · link · parent

I'm not that much in context regarding BLAS. People are trying to optimize the code as much as possible, but some optimizations are not approved to be merged due to over-complexity in the code understanding.

comment 3y ago · link · parent

Hi. Thanks for commenting on this. You're correct llama2.c was built with runfast that doesn't execute on cores via OMP. This made comparison fair, since in Mojo the parallelize helper wasn't used as well. I think one of the reason why llama2.c isn't performing better, it's because so far it doesn't have SIMD instructions support. And it seems that the SIMD implementation could make overall complexity of run.c quite bad. While the essential purpose of llama2.c was determined as education. In the other side llama2.mojo as Mojo ecosystem also is in it's early stages. I'm researching how to implement full set of improvements offered by Mojo.

10.

Llama2 Inference in pure Mojo(github.com ↗)

2 points · by atairov · 3y ago · discuss

comment 3y ago · link · parent

If your goal is to make it as fast as possible, then for sure Python implementation is not a solution here. I think for this exactly reason llama.cpp got high attention

comment 3y ago · link · parent

Regarding the original llama2.c as I believe the value proposition is to have simple implementation that can execute the inference locally on wide variety of platforms. What if we can execute fine-tuned Llama7B on our phones?

comment 3y ago · link · parent

Personally for me the value was to implement a complex logic from a scientific paper in a pure Python. It helps to understand the essence of a cutting edge AI technology. And it's quite fascinating that it would take about 500 lines of core part code to implement inference for such a complex solution.

comment 3y ago · link · parent

1.3 tok / sec is something similar to my Python version port performance, but I tried on M1 Max

comment 3y ago · link · parent

Thanks for sharing this! It's great to have a reference implementation written on java lang. With given original simplicity it's really easy to follow llama architecture logic.

Just in case if anyone interested in Python version, I spend some time on weekend and ported it to pure python -- https://github.com/tairov/llama2.py

I never knew that it would take about 500 lines of core part code to implement inference for such a cutting edge AI technology.

16.

Karpathy's llama2.c ported to pure Python(github.com ↗)

6 points · by atairov · 3y ago · 10 comments