MineDojo: Building Open-Ended Embodied Agents with Internet-Scale Knowledge
Paper • 2206.08853 • Published • 1
How to use SanthoshToorpu/Llama-3.2-Minecraft with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("SanthoshToorpu/Llama-3.2-Minecraft", dtype="auto")How to use SanthoshToorpu/Llama-3.2-Minecraft with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for SanthoshToorpu/Llama-3.2-Minecraft to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for SanthoshToorpu/Llama-3.2-Minecraft to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for SanthoshToorpu/Llama-3.2-Minecraft to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="SanthoshToorpu/Llama-3.2-Minecraft",
max_seq_length=2048,
)A specialized LLaMA 3.2 model fine-tuned to generate Mineflayer-compatible JavaScript code for Minecraft bot automation.
This model generates executable JavaScript code using the Mineflayer API to create intelligent Minecraft bots. It can produce code for various bot behaviors including mining, building, combat, navigation, and server interaction.
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("SanthoshToorpu/minecraft-bot-model")
model = AutoModelForCausalLM.from_pretrained("SanthoshToorpu/minecraft-bot-model")
prompt = "Create a bot that automatically farms wheat"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=200)
code = tokenizer.decode(outputs[0], skip_special_tokens=True)
This model was trained 2x faster with Unsloth and Hugging Face's TRL library.
This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.