Sweaterdog commited on
Commit
92b610d
·
verified ·
1 Parent(s): 93f23b6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +179 -3
README.md CHANGED
@@ -1,3 +1,179 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - Sweaterdog/Andy-4-preview-1
5
+ - Sweaterdog/Andy-4-preview-2
6
+ language:
7
+ - en
8
+ base_model:
9
+ - unsloth/DeepSeek-R1-Distill-Llama-8B-bnb-4bit
10
+ tags:
11
+ - gaming
12
+ - minecraft
13
+ ---
14
+
15
+ # 🧠 Andy-4-base-LoRA 🧠
16
+
17
+ Welcome to **Andy-4-base** – a revolutionary new model designed for playing Minecraft via the Mindcraft framework.
18
+
19
+ This AI is crafted to push the boundaries of gameplay, reasoning, and multi-language summarization, making it one of the most versatile and powerful models available for Minecraft enthusiasts.
20
+
21
+ This is the LoRA adapter for the model, used for things like making fine tunes off of Andy-4-base, and for making the final Andy-4 model.
22
+
23
+ # Overview
24
+
25
+ Andy-4-base is an 8B parameter model built on the efficient Llama3.1 8B DeepSeek-R1 distill architecture.
26
+
27
+ It has been meticulously trained over three weeks on a single RTX 3090 using two carefully curated datasets.
28
+
29
+ The model underwent 2 epochs on the first dataset with a higher learning rate and 4 epochs on the second dataset with a much lower learning rate, ensuring a balanced and robust learning process.
30
+
31
+ This training regimen, coupled with advanced techniques like manual learning rate adjustments and dynamic dataset modifications, has allowed Andy-4-base to outperform its competitors, including GPT-4o-mini, Claude 3.5 Haiku, Mineslayer v2, and the former leader, Andy-3.6.
32
+
33
+ # How to install
34
+
35
+ On Huggingface, press the `Use this model` dropdown menu, and choose `Ollama`, then in the drop down menu, choose your quantization, following this GPU VRAM chart:
36
+
37
+ *All of these values assume a context window size of 8192 or less*
38
+ ```
39
+ F16 = 20+ GB
40
+ Q8_0 = 12+ GB
41
+ Q5_K_M = >8 GB
42
+ Q4_K_M = 8+ GB
43
+ Q3_K_M = 6-8 GB on Minecraft LOW settings
44
+ Q2_K = 6-8 GB on Minecraft LOW settings
45
+ ```
46
+ If you do not have a dedicated GPU, there is a [guide in the Mindcraft discord](https://ptb.discord.com/channels/1303399789995626667/1347027684768878644/1347027684768878644) server for setting up Cloud Computing for free
47
+
48
+ If you want a more custom install, go to the `files` tab on Huggingface, and download the quantization you want and the `Modelfile`
49
+
50
+ Once downloaded, open `Modelfile` in a text editor, and change the `FROM` tag to the exact path of the GGUF weights you installed without the quotes, such as `C:\users\jimmy\downloads\Andy-4-base.Q3_K_M.GGUF`
51
+
52
+ Open the directory of your Modelfile in the terminal, or command prompt, and then run `ollama create Andy-4-base -f Modelfile`, which will create `Andy-4-base` as the model, based on the Modelfile, which includes some important information such as system prompt, chat template, context length, as well as sampling settings.
53
+
54
+ For most people, using the direct HF method of downloading Andy-4-base is recommended, but you will suffer from a shorter context window, and possibly sparatic text.
55
+
56
+ For the full Andy-4 model, there will be a direct download on Ollama, so you won't have to do it this method.
57
+
58
+ ## Installation notes
59
+
60
+ Andy-4-base, and Andy-4, will support a context window of up to `131072` tokens, but to run the Q5_K_M version with that context length, at stock settings on ollama, you would need an RTX 5090, and you would have 3GB of VRAM left over for Minecraft
61
+
62
+ A context window of `8192` is smaller, but it can still allow for great conversations with the model, and since the model knows all of the commands by heart, you can cut the command docs from the system prompt to lower context usage.
63
+
64
+ If you have a 6GB GPU, and want to run it locally, you will need to use the advanced installation method, as well as set the context length in the modelfile to `4096` to allow adequate VRAM for Minecraft.
65
+
66
+ If you want to know your specific VRAM usage, for Context length as well as the model, follow [This Huggingface Repo](https://huggingface.co/spaces/NyxKrage/LLM-Model-VRAM-Calculator)
67
+
68
+ If you want to have a larger context window, for less memory, and are okay with some hiccups when it comes to remembering things, follow this guide:
69
+
70
+ ### On Windows:
71
+
72
+ 1. Close Ollama
73
+ 2. Open System properties by searching for `Edit the system environment variables` in the windows start menu
74
+ 3. In the bottom left, click on `Environment Variables...`
75
+ 4. Navigate to `System Variables` and press `New...`
76
+ 5. Name the variable `OLLAMA_FLASH_ATTENTION` and set the value to `1`
77
+ 6. Make *another* variable, name it `OLLAMA_KV_CACHE_TYPE` and set the value to `q8_0`, but if you are okay with more instability, and want more VRAM savings, set it to `q4_0`
78
+ 7. Press `Okay` in the bottom, and then close out of the `System Properties` window
79
+ 8. Now you can start Ollama again, and have a quantized context window
80
+
81
+ ### On Linux / MaxOS
82
+
83
+ 1. Open terminal
84
+ 2. Ensure Ollama is not active, as in no language models can be ran
85
+ 3. Run the following command:
86
+ ```bash
87
+ export OLLAMA_FLASH_ATTENTION=1
88
+ export OLLAMA_KV_CACHE_TYPE="q8_0"
89
+ ollama serve
90
+ ```
91
+ -Or if you want more context, and are okay with instability-
92
+ ```bash
93
+ export OLLAMA_FLASH_ATTENTION=1
94
+ export OLLAMA_KV_CACHE_TYPE="q4_0"
95
+ ollama serve
96
+ ```
97
+
98
+ # Key Features
99
+
100
+ - **Revolutionary Performance:** Specifically engineered for Minecraft gameplay, providing creative, strategic, and efficient in-game decision-making.
101
+ - **Advanced Reasoning Capabilities:** If you include `Reason in your responses with <think> and </think>` in your prompt, or something similar, Andy-4-base will provide detailed reasoning to enhance performance, at the cost of speed.
102
+ - **Multi-Language Summarization:** Capable of summarizing content in multiple languages, making it more efficient at remembering it's history.
103
+ - **Building and Creativity:** Not only can it play Minecraft, but it also excels in constructing complex structures and solving intricate in-game challenges.
104
+ - **Vast Knowledge Base:** Possesses extensive knowledge about Minecraft, including game mechanics, strategies, and creative builds.
105
+ - **Open Source:** Completely open source and available to the community for further development and experimentation.
106
+ - **Versatile Utility:** Excels in building, reasoning, summarizing, and strategic gameplay.
107
+
108
+ # Open Source and Licensing
109
+
110
+ Andy-4-base is 100% open source and is licensed under the [Apache 2.0 License](LICENSE). We believe in transparency and community collaboration, and all source code and training details are available for review and contribution.
111
+
112
+ ## LoRA Weights
113
+
114
+ Access the LoRA weights for Andy-4-base here: [Andy-4-base LoRA Weights](https://huggingface.co/Sweaterdog/Andy-4-base-LoRA)
115
+
116
+ # Datasets
117
+
118
+ The model was trained on two distinct datasets:
119
+ - [Dataset 1: Andy-4-Preview-1](https://huggingface.co/datasets/Sweaterdog/Andy-4-preview-1) (trained for 2 epochs with a higher learning rate)
120
+ - [Dataset 2: Andy-4-Preview-2](https://huggingface.co/datasets/Sweaterdog/Andy-4-preview-2) (trained for 4 epochs with a much lower learning rate)
121
+
122
+ # Usage
123
+
124
+ To integrate Andy-4-base with the Mindcraft framework, adjust your configuration settings as needed and follow the execution instructions provided separately.
125
+
126
+ Customize the personality in the `conversing` profile section and configuration files to optimize performance for specific in-game tasks or environments.
127
+
128
+ Andy-4-base is designed to seamlessly integrate with your existing Mindcraft setups, enhancing both gameplay and creative capabilities.
129
+
130
+ # Mindcraft Project
131
+
132
+ Download and explore the Mindcraft project on GitHub:
133
+ [Mindcraft Project on GitHub](https://github.com/kolbytn/mindcraft)
134
+
135
+ ## How to use
136
+
137
+ On Mindcraft, ensure you put `ollama/` before the model name, this can be something like `ollama/hf.co/sweaterdog/andy-4-base:q5_k_m`
138
+
139
+ ## Notes on Quantization
140
+
141
+ Typically, the smaller the quantization, such as Q2_K being the lowest, the more the model is to make a mistake, however the Q8_0 weights perform nearly identically to the F16 weights.
142
+
143
+ For most cases, I suggest Q5_K_M or Q4_K_M, this is for 8GB GPUs, anything less and I would follow the guide on how to use free cloud computing on the discord.
144
+
145
+ # Disclaimer
146
+
147
+ **Important Notice:**
148
+ Andy-4-base is a preview model and, while it represents a significant advancement in AI-driven Minecraft gameplay, please be aware of the following:
149
+ - **Performance Variability:** Due to its experimental nature, the model may not always deliver ultimate performance in every scenario.
150
+ - **Ongoing Development:** This preview release is intended for early testing and community feedback. You might encounter occasional inconsistencies or limitations as further refinements are made.
151
+
152
+ # Community and Contact
153
+
154
+ Join our vibrant community for discussions, support, and feedback:
155
+ - **Discord (Mindcraft Server):** [Join the Mindcraft Discord](https://discord.gg/NGfCGs7aXJ)
156
+ - **Huggingface Page:** Explore more experimental models and projects: [Sweaterdog on Huggingface](https://huggingface.co/Sweaterdog)
157
+ - **Discord Username:** `Sweaterdog`
158
+
159
+ We welcome your feedback, suggestions, and contributions as we continue to improve Andy-4-base and push the boundaries of AI in gaming.
160
+
161
+ # Acknowledgements
162
+
163
+ We extend our gratitude to all the developers and researchers who have contributed to the evolution of AI in gaming.
164
+
165
+ ```
166
+ Copyright 2025 Sweaterdog
167
+
168
+ Licensed under the Apache License, Version 2.0 (the "License");
169
+ you may not use this file except in compliance with the License.
170
+ You may obtain a copy of the License at
171
+
172
+ http://www.apache.org/licenses/LICENSE-2.0
173
+
174
+ Unless required by applicable law or agreed to in writing, software
175
+ distributed under the License is distributed on an "AS IS" BASIS,
176
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
177
+ See the License for the specific language governing permissions and
178
+ limitations under the License.
179
+ ```