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.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.*
|