Generating Java Data Structures With LLMs Like Apple's Foundation Models Framework
- OpenJDK 21+ compatible JDK
- Maven
llama.cpp, specificallyllama-server
-
Download
Llama-3.2-3B-Instruct-Q4_0.gguffrom HuggingFace -
Run the following command:
llama-server -m Llama-3.2-3B-Instruct-Q4_0.gguf
-
Compile the project and execute the
Mainclass:mvn compile exec:java -Dexec.mainClass="io.shubham0204.Main"