Instructions to use Sweaterdog/Andy-4-micro-0427 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Sweaterdog/Andy-4-micro-0427 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Sweaterdog/Andy-4-micro-0427", filename="Andy-4-micro.F16.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Sweaterdog/Andy-4-micro-0427 with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Sweaterdog/Andy-4-micro-0427:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Sweaterdog/Andy-4-micro-0427:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Sweaterdog/Andy-4-micro-0427:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Sweaterdog/Andy-4-micro-0427:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Sweaterdog/Andy-4-micro-0427:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Sweaterdog/Andy-4-micro-0427:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Sweaterdog/Andy-4-micro-0427:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Sweaterdog/Andy-4-micro-0427:Q4_K_M
Use Docker
docker model run hf.co/Sweaterdog/Andy-4-micro-0427:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use Sweaterdog/Andy-4-micro-0427 with Ollama:
ollama run hf.co/Sweaterdog/Andy-4-micro-0427:Q4_K_M
- Unsloth Studio new
How to use Sweaterdog/Andy-4-micro-0427 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
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 Sweaterdog/Andy-4-micro-0427 to start chatting
Install Unsloth Studio (Windows)
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 Sweaterdog/Andy-4-micro-0427 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Sweaterdog/Andy-4-micro-0427 to start chatting
- Docker Model Runner
How to use Sweaterdog/Andy-4-micro-0427 with Docker Model Runner:
docker model run hf.co/Sweaterdog/Andy-4-micro-0427:Q4_K_M
- Lemonade
How to use Sweaterdog/Andy-4-micro-0427 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Sweaterdog/Andy-4-micro-0427:Q4_K_M
Run and chat with the model
lemonade run user.Andy-4-micro-0427-Q4_K_M
List all available models
lemonade list
| FROM YOUR/PATH/HERE | |
| TEMPLATE """{{ if .System }}<|im_start|>system | |
| {{ .System }}<|im_end|> | |
| {{ end }}{{ if .Prompt }}<|im_start|>user | |
| {{ .Prompt }}<|im_end|> | |
| {{ end }}<|im_start|>assistant | |
| {{ .Response }}<|im_end|> | |
| """ | |
| SYSTEM """ | |
| You are a Minecraft AI named Andy-4-micro, developed alone by the Sweaterdog AI Initiative. you are a 100% free model to download an run, the GGUF and LoRA weights are available on huggingface, and it is encouraged that others also fine tune you to become a better model. | |
| """ | |
| PARAMETER stop "<|im_start|>" | |
| PARAMETER stop "<|im_end|>" | |
| PARAMETER temperature 0.4 | |
| PARAMETER num_ctx 8192 | |
| PARAMETER top_k 20 | |
| PARAMETER top_p 0.9 | |
| PARAMETER min_p 0.05 | |
| LICENSE """ | |
| Andy 1.0 License | |
| Copyright 2025 SWEATERDOG | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this Work (the “Work”), to deal in the Work without restriction, including | |
| without limitation the rights to use, copy, modify, merge, publish, distribute, | |
| sublicense, and/or sell copies of the Work, and to permit persons to whom the | |
| Work is furnished to do so, subject to the following conditions: | |
| 1. Model Naming or Credit Link | |
| The redistributed or derivative model’s name must include the term “Andy”, | |
| OR the repository must credit https://huggingface.co/Sweaterdog in the | |
| README or LICENSE file. | |
| 2. Shout-Out Clause | |
| The following acknowledgment must appear in the README or equivalent: | |
| “This work uses data and models created by @Sweaterdog.” | |
| 3. Retention of License and Notices | |
| The above copyright notice, this license text, and the Shout-Out Clause | |
| must be included in all copies or substantial portions of the Work. | |
| 4. No Additional Restrictions | |
| You may not apply legal terms or technological measures that restrict | |
| the exercise of the rights granted herein. | |
| THE WORK IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, | |
| EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
| OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND | |
| NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR | |
| CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, | |
| WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, | |
| OUT OF, OR IN CONNECTION WITH THE WORK OR THE USE OR OTHER DEALINGS | |
| IN THE WORK. | |
| """ |