Text Generation
Transformers
Safetensors
English
lfm2
minecraft
mindcraft
mindcraft-ce
agent
edge
conversational
Instructions to use DedeProGames/NanoAndy-230M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DedeProGames/NanoAndy-230M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DedeProGames/NanoAndy-230M") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DedeProGames/NanoAndy-230M") model = AutoModelForCausalLM.from_pretrained("DedeProGames/NanoAndy-230M", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DedeProGames/NanoAndy-230M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DedeProGames/NanoAndy-230M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DedeProGames/NanoAndy-230M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DedeProGames/NanoAndy-230M
- SGLang
How to use DedeProGames/NanoAndy-230M with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "DedeProGames/NanoAndy-230M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DedeProGames/NanoAndy-230M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "DedeProGames/NanoAndy-230M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DedeProGames/NanoAndy-230M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use DedeProGames/NanoAndy-230M with Docker Model Runner:
docker model run hf.co/DedeProGames/NanoAndy-230M
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: lfm1.0
|
| 4 |
+
license_link: https://huggingface.co/LiquidAI/LFM2.5-230M/blob/main/LICENSE
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
base_model: LiquidAI/LFM2.5-230M
|
| 8 |
+
datasets:
|
| 9 |
+
- DedeProGames/Andy-4.1-NanoAndy
|
| 10 |
+
library_name: transformers
|
| 11 |
+
pipeline_tag: text-generation
|
| 12 |
+
tags:
|
| 13 |
+
- minecraft
|
| 14 |
+
- mindcraft
|
| 15 |
+
- mindcraft-ce
|
| 16 |
+
- agent
|
| 17 |
+
- lfm2
|
| 18 |
+
- edge
|
| 19 |
+
- conversational
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
|
| 24 |
+
# NanoAndy-230M
|
| 25 |
+
|
| 26 |
+
**NanoAndy-230M** is a compact, full-fine-tuned Minecraft agent model built on [LiquidAI/LFM2.5-230M](https://huggingface.co/LiquidAI/LFM2.5-230M) — Liquid AI's smallest LFM2.5 checkpoint. It is inspired by [Andy-4.1](https://huggingface.co/datasets/Mindcraft-CE/Andy-4.1) and purpose-built to run as the "brain" of a bot in [Mindcraft-CE](https://github.com/mindcraft-ce/mindcraft-ce), the community fork of the open-source Mindcraft platform that lets LLMs control Minecraft characters via Mineflayer.
|
| 27 |
+
|
| 28 |
+
At only 230M parameters, this is the smallest model in the NanoAndy line — aimed at the tightest memory and compute budgets: low-end GPUs, CPU-only machines, single-board computers, or running many bots side by side.
|
| 29 |
+
|
| 30 |
+
## What makes it "Nano"
|
| 31 |
+
|
| 32 |
+
NanoAndy-230M is trained on a stripped-down version of Andy-4.1's conversational data ([DedeProGames/Andy-4.1-NanoAndy](https://huggingface.co/datasets/DedeProGames/Andy-4.1-NanoAndy)):
|
| 33 |
+
|
| 34 |
+
- **No chain-of-thought.** All `<think>...</think>` reasoning traces were removed from the assistant turns. At 230M parameters there's essentially no spare capacity for long internal monologue, so training goes straight to the final in-game response.
|
| 35 |
+
- **No function-calling turns.** Conversations that used external `tool`-role calls were dropped entirely, keeping the model focused on Mindcraft's native chat/command format instead of a JSON tool-calling schema it wouldn't reliably use at this size.
|
| 36 |
+
|
| 37 |
+
The result is a lean, fast, direct-response model rather than a smaller reasoning model.
|
| 38 |
+
|
| 39 |
+
## Model Details
|
| 40 |
+
|
| 41 |
+
| | |
|
| 42 |
+
|---|---|
|
| 43 |
+
| **Base model** | [LiquidAI/LFM2.5-230M](https://huggingface.co/LiquidAI/LFM2.5-230M) |
|
| 44 |
+
| **Architecture** | LFM2 (hybrid conv + attention) |
|
| 45 |
+
| **Parameters** | ~230M (229,693,184) |
|
| 46 |
+
| **Fine-tuning method** | Full fine-tune (no LoRA/adapters) |
|
| 47 |
+
| **Context length** | 11,264 tokens |
|
| 48 |
+
| **Language** | English |
|
| 49 |
+
| **License** | [LFM Open License v1.0](https://huggingface.co/LiquidAI/LFM2.5-230M/blob/main/LICENSE) (inherited from base model) |
|
| 50 |
+
|
| 51 |
+
## Training
|
| 52 |
+
|
| 53 |
+
| | |
|
| 54 |
+
|---|---|
|
| 55 |
+
| **Dataset** | [DedeProGames/Andy-4.1-NanoAndy](https://huggingface.co/datasets/DedeProGames/Andy-4.1-NanoAndy) (1,695 conversations) |
|
| 56 |
+
| **Framework** | [Unsloth](https://github.com/unslothai/unsloth) |
|
| 57 |
+
| **Hardware** | 1x NVIDIA T4 (Google Colab) |
|
| 58 |
+
| **Epochs** | 2 |
|
| 59 |
+
| **Effective batch size** | 8 (1 x 8 grad. accumulation) |
|
| 60 |
+
| **Learning rate** | 5e-5, cosine schedule, 15 warmup steps |
|
| 61 |
+
| **Optimizer** | adamw_8bit |
|
| 62 |
+
| **Final train loss** | ~0.21 |
|
| 63 |
+
|
| 64 |
+
## Usage
|
| 65 |
+
|
| 66 |
+
NanoAndy-230M is meant to be dropped into a Mindcraft-CE [bot profile](https://github.com/mindcraft-ce/mindcraft-ce) (e.g. `andy.json`) as the chat/coding model, served locally through something like LM Studio, llama.cpp, or vLLM. Its small footprint makes it a good fit for running on modest hardware or alongside several other bots at once.
|
| 67 |
+
|
| 68 |
+
It also works with standard `transformers`:
|
| 69 |
+
|
| 70 |
+
```python
|
| 71 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
|
| 72 |
+
|
| 73 |
+
model_id = "DedeProGames/NanoAndy-230M"
|
| 74 |
+
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", dtype="bfloat16")
|
| 75 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 76 |
+
streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
|
| 77 |
+
|
| 78 |
+
prompt = "You are a minecraft bot named Andy. A player asks you to gather 4 oak logs."
|
| 79 |
+
input_ids = tokenizer.apply_chat_template(
|
| 80 |
+
[{"role": "user", "content": prompt}],
|
| 81 |
+
add_generation_prompt=True,
|
| 82 |
+
return_tensors="pt",
|
| 83 |
+
tokenize=True,
|
| 84 |
+
)["input_ids"].to(model.device)
|
| 85 |
+
|
| 86 |
+
model.generate(
|
| 87 |
+
input_ids,
|
| 88 |
+
do_sample=True,
|
| 89 |
+
temperature=0.3,
|
| 90 |
+
repetition_penalty=1.05,
|
| 91 |
+
max_new_tokens=256,
|
| 92 |
+
streamer=streamer,
|
| 93 |
+
)
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
## Limitations
|
| 97 |
+
|
| 98 |
+
- **Not a reasoning model.** With chain-of-thought training data removed, NanoAndy-230M won't show its work — it goes straight to an action/response.
|
| 99 |
+
- **No native tool-calling.** It was not trained on function-call syntax; it expects Mindcraft's native command/chat format.
|
| 100 |
+
- **Very small model.** At 230M parameters — the smallest in the NanoAndy line — it will struggle with long-horizon planning, complex builds, and multi-step reasoning more than the 350M variant, and considerably more than full-size Andy-4 models.
|
| 101 |
+
- **English only.**
|
| 102 |
+
- Narrowly tuned for the Mindcraft agent format — not intended as a general-purpose assistant.
|
| 103 |
+
|
| 104 |
+
## Acknowledgements
|
| 105 |
+
|
| 106 |
+
- [Liquid AI](https://liquid.ai) for the LFM2.5 base model.
|
| 107 |
+
- [Mindcraft-CE](https://github.com/mindcraft-ce/mindcraft-ce) and the Andy-4.1 dataset authors for the source conversational data and the platform this model targets.
|
| 108 |
+
- [Unsloth](https://github.com/unslothai/unsloth) for the training tooling.
|