Llama 3 implemented in pure NumPy
11–20 of 54 posts
Re: Llama 3 implemented in pure NumPy
#12The rotary embeddings bit is neat. I wonder if a complex representation would simplify vs complexify things (readability, performance, expressive power).
As far as expressive power goes, it shouldn't make a difference for the models in common use, but I could totally imagine models where it improves readability.
Re: Llama 3 implemented in pure NumPy
#13What is the difference to the llama.np repository credited in the README? https://github.com/hscspring/llama.np
Well, it supports Llama3. But the other question I have is about the license. The tokenizer.py file is identical, and the rest is very similar - just making minor adjustments here and there. Can they just take this Apache 2 licensed code, change it a bit and offer it as MIT? They are clearly not the original author.
Re: Llama 3 implemented in pure NumPy
#14Re: Llama 3 implemented in pure NumPy
#15Earlier quoted context omitted.
Well, it supports Llama3. But the other question I have is about the license. The tokenizer.py file is identical, and the rest is very similar - just making minor adjustments here and there. Can they just take this Apache 2 licensed code, change it a bit and offer it as MIT? They are clearly not the original author.
Unfortunately, licenses are only worth as much as your lawyers.
Re: Llama 3 implemented in pure NumPy
#16I'll consider superintelligence achieved if AI can do such work faithfully.
Re: Llama 3 implemented in pure NumPy
#17Re: Llama 3 implemented in pure NumPy
#18`import jax.numpy as np`, then we also get a jax implemention after certain modifications: e.g. remove in-place index assignment, replace unsupported functions, etc