Running Llama2 Models in Vanilla Minecraft With Pure Commands
I made a program that converts any llama2 large language model into a minecraft datapack, and you can run inference right inside the game. It's still semi-finished, Currently I've only implemented argmax sampling, so the output tends to stuck in loops sometimes. Adding top-p sampling will probably improve this a lot. The tokenizer is also missing for now, it can only generate text from scratch. Inference speed is...quite slow. With a 15M parameter model, it takes roughly 20 minutes to produce a single token. If you want to try it out yourself, you can download "stories15M.bin" and "tokenizer.bin" from llama2.c , and follow the instructions in my repository down below. I will keep working on this project, hopefully one day I will be able to bring a usable chat model in Minecraft. Github Rep
Could not retrieve the full article text.
Read on Reddit r/LocalLLaMA →Reddit r/LocalLLaMA
https://www.reddit.com/r/LocalLLaMA/comments/1sbvn2w/running_llama2_models_in_vanilla_minecraft_with/Sign in to highlight and annotate this article

Conversation starters
Daily AI Digest
Get the top 5 AI stories delivered to your inbox every morning.
More about
llamamodellanguage model
5 Types of Loss Functions in Machine Learning
A loss function is what guides a model during training, translating predictions into a signal it can improve on. But not all losses behave the same—some amplify large errors, others stay stable in noisy settings, and each choice subtly shapes how learning unfolds. Modern libraries add another layer with reduction modes and scaling effects that [ ] The post 5 Types of Loss Functions in Machine Learning appeared first on Analytics Vidhya .
Knowledge Map
Connected Articles — Knowledge Graph
This article is connected to other articles through shared AI topics and tags.






Discussion
Sign in to join the discussion
No comments yet — be the first to share your thoughts!