This project was inspired by two important open-source projects:
First, Andrej Karpathy's llama2.c project, a minimalist Llama 2 inference engine implemented in pure C, which shows that the core principles of large language models can be realized with extremely concise code. Second, Xiaodou's Math Lib project, a floating-point arithmetic library based on Minecraft's scoreboard system, which proves the feasibility of performing complex mathematical calculations in the game's command system.
Combining the capabilities of these two projects, the creator had a bold idea: since llama2.c can implement LLM inference in C, and Math Lib can do floating-point operations in Minecraft, then theoretically it is completely possible to run the Llama 2 model in Minecraft.