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 Settings
- 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
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
Update Modelfile
Browse files
Modelfile
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
-
|
| 2 |
-
FROM /content/Sweaterdog/Andy-4-micro/unsloth.F16.gguf
|
| 3 |
TEMPLATE """{{ if .System }}<|im_start|>system
|
| 4 |
{{ .System }}<|im_end|>
|
| 5 |
{{ end }}{{ if .Prompt }}<|im_start|>user
|
|
@@ -7,7 +6,51 @@ TEMPLATE """{{ if .System }}<|im_start|>system
|
|
| 7 |
{{ end }}<|im_start|>assistant
|
| 8 |
{{ .Response }}<|im_end|>
|
| 9 |
"""
|
|
|
|
|
|
|
|
|
|
| 10 |
PARAMETER stop "<|im_start|>"
|
| 11 |
PARAMETER stop "<|im_end|>"
|
| 12 |
-
PARAMETER temperature
|
| 13 |
-
PARAMETER
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM YOUR/PATH/HERE
|
|
|
|
| 2 |
TEMPLATE """{{ if .System }}<|im_start|>system
|
| 3 |
{{ .System }}<|im_end|>
|
| 4 |
{{ end }}{{ if .Prompt }}<|im_start|>user
|
|
|
|
| 6 |
{{ end }}<|im_start|>assistant
|
| 7 |
{{ .Response }}<|im_end|>
|
| 8 |
"""
|
| 9 |
+
SYSTEM """
|
| 10 |
+
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.
|
| 11 |
+
"""
|
| 12 |
PARAMETER stop "<|im_start|>"
|
| 13 |
PARAMETER stop "<|im_end|>"
|
| 14 |
+
PARAMETER temperature 0.4
|
| 15 |
+
PARAMETER num_ctx 8192
|
| 16 |
+
PARAMETER top_k 20
|
| 17 |
+
PARAMETER top_p 0.9
|
| 18 |
+
PARAMETER min_p 0.05
|
| 19 |
+
|
| 20 |
+
LICENSE """
|
| 21 |
+
Andy 1.0 License
|
| 22 |
+
|
| 23 |
+
Copyright 2025 SWEATERDOG
|
| 24 |
+
|
| 25 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 26 |
+
of this Work (the “Work”), to deal in the Work without restriction, including
|
| 27 |
+
without limitation the rights to use, copy, modify, merge, publish, distribute,
|
| 28 |
+
sublicense, and/or sell copies of the Work, and to permit persons to whom the
|
| 29 |
+
Work is furnished to do so, subject to the following conditions:
|
| 30 |
+
|
| 31 |
+
1. Model Naming or Credit Link
|
| 32 |
+
The redistributed or derivative model’s name must include the term “Andy”,
|
| 33 |
+
OR the repository must credit https://huggingface.co/Sweaterdog in the
|
| 34 |
+
README or LICENSE file.
|
| 35 |
+
|
| 36 |
+
2. Shout-Out Clause
|
| 37 |
+
The following acknowledgment must appear in the README or equivalent:
|
| 38 |
+
“This work uses data and models created by @Sweaterdog.”
|
| 39 |
+
|
| 40 |
+
3. Retention of License and Notices
|
| 41 |
+
The above copyright notice, this license text, and the Shout-Out Clause
|
| 42 |
+
must be included in all copies or substantial portions of the Work.
|
| 43 |
+
|
| 44 |
+
4. No Additional Restrictions
|
| 45 |
+
You may not apply legal terms or technological measures that restrict
|
| 46 |
+
the exercise of the rights granted herein.
|
| 47 |
+
|
| 48 |
+
THE WORK IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
|
| 49 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
| 50 |
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
|
| 51 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
| 52 |
+
CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY,
|
| 53 |
+
WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM,
|
| 54 |
+
OUT OF, OR IN CONNECTION WITH THE WORK OR THE USE OR OTHER DEALINGS
|
| 55 |
+
IN THE WORK.
|
| 56 |
+
"""
|