Llama2.java: Karpathy's llama2.c ported to Java
1–10 of 19 posts
Re: Llama2.java: Karpathy's llama2.c ported to Java
#2Re: Llama2.java: Karpathy's llama2.c ported to Java
#3Re: Llama2.java: Karpathy's llama2.c ported to Java
#4How you all used these things for anything useful? I can't get them to give useful results on my 3060 8gb. If I wanted to get decent results I think I'd need to rent a GPU node somewhere, but chatGPT is still free
Re: Llama2.java: Karpathy's llama2.c ported to Java
#5Looked at the author and realized it's Alfonso from the Graal team -- makes sense.
I wonder whether the "matmul" code could be further optimized with the Vector API and SIMD.
Re: Llama2.java: Karpathy's llama2.c ported to Java
#6How you all used these things for anything useful? I can't get them to give useful results on my 3060 8gb. If I wanted to get decent results I think I'd need to rent a GPU node somewhere, but chatGPT is still free
Re: Llama2.java: Karpathy's llama2.c ported to Java
#7The Java code is impressively written, using newer features like MemorySegment. Looked at the author and realized it's Alfonso from the Graal team -- makes sense. I wonder whether the "matmul" code could be further optimized with the Vector API and SIMD.
Re: Llama2.java: Karpathy's llama2.c ported to Java
#8How you all used these things for anything useful? I can't get them to give useful results on my 3060 8gb. If I wanted to get decent results I think I'd need to rent a GPU node somewhere, but chatGPT is still free
I know it might be asking a lot, but it would be great if someone could put up a HF space so I could try all the various flavours/sizes.
Re: Llama2.java: Karpathy's llama2.c ported to Java
#9Any abstraction for GPGPU or shaders programming?
Re: Llama2.java: Karpathy's llama2.c ported to Java
#10The Java code is impressively written, using newer features like MemorySegment. Looked at the author and realized it's Alfonso from the Graal team -- makes sense. I wonder whether the "matmul" code could be further optimized with the Vector API and SIMD.
Also new virtual threads might be beneficial. I was experimenting using Vector api for matrix multiplication once and effect was pretty good.