Instructions to use Sweaterdog/Andy-4-micro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Sweaterdog/Andy-4-micro with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Sweaterdog/Andy-4-micro:F16 # Run inference directly in the terminal: llama cli -hf Sweaterdog/Andy-4-micro:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Sweaterdog/Andy-4-micro:F16 # Run inference directly in the terminal: llama cli -hf Sweaterdog/Andy-4-micro:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Sweaterdog/Andy-4-micro:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf Sweaterdog/Andy-4-micro:F16
Use Docker
docker model run hf.co/Sweaterdog/Andy-4-micro:F16
- Llama new
- LM Studio
- Jan
- Ollama
How to use Sweaterdog/Andy-4-micro with Ollama:
ollama run hf.co/Sweaterdog/Andy-4-micro:F16
- Unsloth Desktop
- Pi
How to use Sweaterdog/Andy-4-micro with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Sweaterdog/Andy-4-micro:F16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Sweaterdog/Andy-4-micro:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Sweaterdog/Andy-4-micro with Docker Model Runner:
docker model run hf.co/Sweaterdog/Andy-4-micro:F16
- Lemonade
How to use Sweaterdog/Andy-4-micro with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Sweaterdog/Andy-4-micro:F16
Run and chat with the model
lemonade run user.Andy-4-micro-F16
List all available models
lemonade list
- Hermes Agent
How to use Sweaterdog/Andy-4-micro with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Sweaterdog/Andy-4-micro:F16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default Sweaterdog/Andy-4-micro:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Sweaterdog/Andy-4-micro with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Sweaterdog/Andy-4-micro:F16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "Sweaterdog/Andy-4-micro:F16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
datasets:
|
| 3 |
+
- Sweaterdog/Andy-4-base-2
|
| 4 |
+
- Sweaterdog/Andy-4-ft
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
base_model:
|
| 8 |
+
- unsloth/Qwen2.5-1.5B-Instruct-unsloth-bnb-4bit
|
| 9 |
+
tags:
|
| 10 |
+
- gaming
|
| 11 |
+
- minecraft
|
| 12 |
+
- mindcraft
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# 🤏 Andy‑4‑micro 🧠
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
|
| 19 |
+
**Andy‑4‑micro** is a lightweight Minecraft-tuned AI model derived from the Andy‑4 architecture. Built for responsiveness and portability, it’s ideal for local testing, light inference, and experimentation within the **Mindcraft** framework.
|
| 20 |
+
|
| 21 |
+
**The current version of Andy-4-micro is `Andy-4-micro-0504`**, All previous versions of Andy-4-micro can still be found on my huggingface page.
|
| 22 |
+
|
| 23 |
+
> 💡 Trained on a **single RTX 3070** over **four days**, Andy‑4‑micro maintains strong performance while staying efficient.
|
| 24 |
+
|
| 25 |
+
> ⚠️ **Certification:**
|
| 26 |
+
> Andy‑4‑micro is **not yet certified** by the Mindcraft developers. Use in production at your own discretion.
|
| 27 |
+
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
## 📊 Model Overview
|
| 31 |
+
|
| 32 |
+
- **Base Architecture:** Qwen 2.5
|
| 33 |
+
- **Parameter Count:** 1.5 B
|
| 34 |
+
- **Training Duration:** ~4 days
|
| 35 |
+
- **Training GPU:** 1 × NVIDIA RTX 3070
|
| 36 |
+
- **Total Tokens Used:** ~42M
|
| 37 |
+
- **License:** [Andy 1.1 License](LICENSE)
|
| 38 |
+
- **Repository:** https://huggingface.co/Sweaterdog/Andy-4-micro
|
| 39 |
+
|
| 40 |
+
---
|
| 41 |
+
|
| 42 |
+
## 🚀 Installation
|
| 43 |
+
|
| 44 |
+
First, you need to choose your quantization, this chart is with the base of `8192` set as the context window
|
| 45 |
+
|
| 46 |
+
| Quantization | VRAM Required |
|
| 47 |
+
|--------------|---------------|
|
| 48 |
+
| F16 | 6 GB+ |
|
| 49 |
+
| Q5_K_M | 4 GB+ |
|
| 50 |
+
| Q4_K_M | 4 GB |
|
| 51 |
+
| Q3_K_M | 1.5 GB or CPU |
|
| 52 |
+
|
| 53 |
+
**NOTE:** GPUs made before 2017 will have *significantly slower speeds* than newer GPUs, also, CPU inference will be extremely slow.
|
| 54 |
+
|
| 55 |
+
### 1. Installation directly on Ollama
|
| 56 |
+
|
| 57 |
+
1. Visit [Andy-4 on Ollama](https://ollama.com/Sweaterdog/Andy-4)
|
| 58 |
+
2. Copy the command after choosing model type / quantization
|
| 59 |
+
3. Run the command in the terminal
|
| 60 |
+
4. Set the profile's model to be what you installed, such as `ollama/sweaterdog/andy-4:latest`
|
| 61 |
+
|
| 62 |
+
### 2. Manual Download & Setup
|
| 63 |
+
|
| 64 |
+
1. **Download**
|
| 65 |
+
- Visit the Hugging Face **Files** tab.
|
| 66 |
+
- Download the `.GGUF` quantization weights (e.g. `Andy-4-micro.Q4_K_M.gguf`).
|
| 67 |
+
- Grab the provided `Modelfile`.
|
| 68 |
+
|
| 69 |
+
2. **Edit `Modelfile`**
|
| 70 |
+
|
| 71 |
+
Change the path placeholder:
|
| 72 |
+
|
| 73 |
+
```text
|
| 74 |
+
FROM YOUR/PATH/HERE
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
to:
|
| 78 |
+
|
| 79 |
+
```text
|
| 80 |
+
FROM /path/to/Andy-4-micro.Q4_K_M.gguf
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
*Optional*: Adjust `num_ctx` for longer context windows if your system supports it.
|
| 84 |
+
|
| 85 |
+
3. **Create Model**
|
| 86 |
+
|
| 87 |
+
```bash
|
| 88 |
+
ollama create andy-4-micro -f Modelfile
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
This registers Andy‑4‑micro locally with Ollama.
|
| 92 |
+
|
| 93 |
+
---
|
| 94 |
+
|
| 95 |
+
If you lack a GPU, check the [Mindcraft Discord guide](https://ptb.discord.com/channels/1303399789995626667/1347027684768878644/1347027684768878644) for free cloud setups.
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
## 🔧 Context‑Window Quantization
|
| 99 |
+
|
| 100 |
+
To lower VRAM use for context windows:
|
| 101 |
+
|
| 102 |
+
#### **Windows**
|
| 103 |
+
|
| 104 |
+
1. Close Ollama.
|
| 105 |
+
2. In **System Properties → Environment Variables**, add:
|
| 106 |
+
```text
|
| 107 |
+
OLLAMA_FLASH_ATTENTION=1
|
| 108 |
+
OLLAMA_KV_CACHE_TYPE=q8_0 # or q4_0 for extra savings, but far more unstable
|
| 109 |
+
```
|
| 110 |
+
3. Restart Ollama.
|
| 111 |
+
|
| 112 |
+
#### **Linux/macOS**
|
| 113 |
+
|
| 114 |
+
```bash
|
| 115 |
+
export OLLAMA_FLASH_ATTENTION=1
|
| 116 |
+
export OLLAMA_KV_CACHE_TYPE="q8_0" # or "q4_0", but far more unstable
|
| 117 |
+
ollama serve
|
| 118 |
+
```
|
| 119 |
+
|
| 120 |
+
---
|
| 121 |
+
|
| 122 |
+
## 📌 Acknowledgments
|
| 123 |
+
|
| 124 |
+
<details>
|
| 125 |
+
<summary>Click to expand</summary>
|
| 126 |
+
|
| 127 |
+
- **Data & Model by:** @Sweaterdog
|
| 128 |
+
- **Framework:** Mindcraft (https://github.com/kolbytn/mindcraft)
|
| 129 |
+
- **LoRA Weights:** https://huggingface.co/Sweaterdog/Andy-4-micro-LoRA
|
| 130 |
+
|
| 131 |
+
</details>
|
| 132 |
+
|
| 133 |
+
---
|
| 134 |
+
|
| 135 |
+
## ⚖️ License
|
| 136 |
+
|
| 137 |
+
See [Andy 1.1 License](LICENSE).
|
| 138 |
+
|
| 139 |
+
*This work uses data and models created by @Sweaterdog.*
|