R port of llama2.c Note