Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Guided Generation With llama.cpp

Generating Java Data Structures With LLMs Like Apple's Foundation Models Framework

Setup

Prerequisites

  • OpenJDK 21+ compatible JDK
  • Maven
  • llama.cpp, specifically llama-server

Steps

  1. Download Llama-3.2-3B-Instruct-Q4_0.gguf from HuggingFace

  2. Run the following command:

    llama-server -m Llama-3.2-3B-Instruct-Q4_0.gguf
  3. Compile the project and execute the Main class:

    mvn compile exec:java -Dexec.mainClass="io.shubham0204.Main"