Text Generation
MLX
Safetensors
GGUF
English
code
qwen2
go
golang
testing
table-driven-tests
guildlm
code-guild
conversational
4-bit precision
Instructions to use guildlm/go-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use guildlm/go-test with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("guildlm/go-test") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - llama-cpp-python
How to use guildlm/go-test with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="guildlm/go-test", filename="go-test.Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use guildlm/go-test 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 guildlm/go-test:Q4_K_M # Run inference directly in the terminal: llama cli -hf guildlm/go-test:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf guildlm/go-test:Q4_K_M # Run inference directly in the terminal: llama cli -hf guildlm/go-test: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 guildlm/go-test:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf guildlm/go-test: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 guildlm/go-test:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf guildlm/go-test:Q4_K_M
Use Docker
docker model run hf.co/guildlm/go-test:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use guildlm/go-test with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "guildlm/go-test" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "guildlm/go-test", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/guildlm/go-test:Q4_K_M
- Ollama
How to use guildlm/go-test with Ollama:
ollama run hf.co/guildlm/go-test:Q4_K_M
- Unsloth Studio
How to use guildlm/go-test 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 guildlm/go-test 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 guildlm/go-test to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for guildlm/go-test to start chatting
- Pi
How to use guildlm/go-test with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "guildlm/go-test"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "guildlm/go-test" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use guildlm/go-test with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "guildlm/go-test"
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:8080/v1 hermes config set model.default guildlm/go-test
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use guildlm/go-test with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "guildlm/go-test"
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:8080/v1 \ --custom-model-id "guildlm/go-test" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- MLX LM
How to use guildlm/go-test with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "guildlm/go-test"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "guildlm/go-test" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "guildlm/go-test", "messages": [ {"role": "user", "content": "Hello"} ] }' - Docker Model Runner
How to use guildlm/go-test with Docker Model Runner:
docker model run hf.co/guildlm/go-test:Q4_K_M
- Lemonade
How to use guildlm/go-test with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull guildlm/go-test:Q4_K_M
Run and chat with the model
lemonade run user.go-test-Q4_K_M
List all available models
lemonade list
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Qwen/Qwen2.5-Coder-7B-Instruct
|
| 4 |
+
base_model_relation: finetune
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
- code
|
| 8 |
+
library_name: mlx
|
| 9 |
+
pipeline_tag: text-generation
|
| 10 |
+
tags:
|
| 11 |
+
- go
|
| 12 |
+
- golang
|
| 13 |
+
- testing
|
| 14 |
+
- table-driven-tests
|
| 15 |
+
- guildlm
|
| 16 |
+
- code-guild
|
| 17 |
+
- mlx
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# GuildLM · go-test
|
| 21 |
+
|
| 22 |
+
**A small, sharp Go *testing* specialist from the GuildLM Code Guild.**
|
| 23 |
+
|
| 24 |
+
`go-test` writes thorough, **table-driven** Go tests with real assertions and meaningful edge cases — the kind of tests that actually fail when the code is wrong. It is one of three specialists in the GuildLM Code Guild ([`go-dev`](https://huggingface.co/guildlm/go-dev) · `go-test` · [`go-review`](https://huggingface.co/guildlm/go-review)) built to work together in a **verification-driven agent loop**.
|
| 25 |
+
|
| 26 |
+
> **Why a dedicated test model?** Across every GuildLM experiment, writing tests is the one job where targeted fine-tuning *clearly* beats the base. On a mutation benchmark — inject a bug, does the generated test catch it? — `go-test` catches **14/18 (78%)** versus **7/18 (39%)** for the untuned base. **It catches twice as many real bugs as the model it's built on.** Test-writing is genuinely where specialization pays. See the [research log, Report #2](https://guildlm.github.io/research/2026-06-28-go-test-mutation.html).
|
| 27 |
+
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
## Why this isn't "just Qwen with a name"
|
| 31 |
+
|
| 32 |
+
`go-test` is a **fused, standalone** model (no separate adapter) with its **own identity** — ask who it is and it answers *GuildLM go-test*. It is an honest Apache-2.0 derivative of [Qwen2.5-Coder-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-7B-Instruct), fine-tuned for one craft: testing Go.
|
| 33 |
+
|
| 34 |
+
## What it's for
|
| 35 |
+
|
| 36 |
+
- Generating `*_test.go` files: table-driven cases, sub-tests, `httptest`, `sync/atomic` for concurrency checks.
|
| 37 |
+
- Covering the edges a tired human skips: empty input, zero values, negatives, inverted bounds, error paths.
|
| 38 |
+
- Acting as the *testing* role inside the [GuildLM Builder](https://github.com/guildlm/builder), so the code that `go-dev` writes is held to a real, executable contract.
|
| 39 |
+
|
| 40 |
+
## Benchmarks
|
| 41 |
+
|
| 42 |
+
Measured locally with the real Go toolchain — tests are scored by whether they **compile, assert, and catch injected mutations**, not by an LLM judge.
|
| 43 |
+
|
| 44 |
+
<!-- BENCH:go-test -->
|
| 45 |
+
| Benchmark | Metric | **go-test** | base 7B |
|
| 46 |
+
|---|---|---|---|
|
| 47 |
+
| crucible `go_test_bench` (18 mutations) | bug-catch@1 | **14/18 · 78%** | 7/18 · 39% |
|
| 48 |
+
|
| 49 |
+
> This is the GuildLM specialist where the fine-tuning win is **real, large, and repeatable** — `go-test` catches 2× the injected bugs of its base. A guard in the [Builder](https://github.com/guildlm/builder) also rejects trivially-passing tests (no assertions), so its output is held to a real bar in the loop.
|
| 50 |
+
|
| 51 |
+
## Quickstart
|
| 52 |
+
|
| 53 |
+
### Apple Silicon (MLX)
|
| 54 |
+
|
| 55 |
+
```bash
|
| 56 |
+
pip install mlx-lm
|
| 57 |
+
python -m mlx_lm generate --model guildlm/go-test \
|
| 58 |
+
--prompt "Write table-driven Go tests for func Clamp(x, lo, hi int) int covering below/inside/above range and inverted bounds." \
|
| 59 |
+
--max-tokens 400
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
### Ollama (GGUF)
|
| 63 |
+
|
| 64 |
+
```bash
|
| 65 |
+
ollama run guildlm/go-test "Write httptest-based tests for a POST /echo JSON endpoint built with newMux()."
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
### Inside the agent loop (recommended)
|
| 69 |
+
|
| 70 |
+
```bash
|
| 71 |
+
python -m mlx_lm server --model guildlm/go-test --port 8081
|
| 72 |
+
guildlm-build --spec specs/myservice.yaml --out ./out \
|
| 73 |
+
--base-url http://localhost:8080/v1 \
|
| 74 |
+
--test-model guildlm/go-test --test-base-url http://localhost:8081/v1 \
|
| 75 |
+
--candidates 3
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
## Prompting
|
| 79 |
+
|
| 80 |
+
Trained with the system prompt:
|
| 81 |
+
|
| 82 |
+
> *You are GuildLM go-test, a Go testing specialist from the GuildLM Code Guild.*
|
| 83 |
+
|
| 84 |
+
Give it a function signature or an implementation and ask for tests. It defaults to table-driven style with explicit `t.Errorf`/`t.Fatalf` assertions.
|
| 85 |
+
|
| 86 |
+
## The Guild
|
| 87 |
+
|
| 88 |
+
| Specialist | Job |
|
| 89 |
+
|---|---|
|
| 90 |
+
| [**go-dev**](https://huggingface.co/guildlm/go-dev) | writes the implementation |
|
| 91 |
+
| [**go-test**](https://huggingface.co/guildlm/go-test) | writes thorough table-driven tests |
|
| 92 |
+
| [**go-review**](https://huggingface.co/guildlm/go-review) | audits for bugs a green build hides |
|
| 93 |
+
|
| 94 |
+
- Agent loop: **https://github.com/guildlm/builder**
|
| 95 |
+
- Research log: **https://guildlm.github.io/research/**
|
| 96 |
+
|
| 97 |
+
## License & attribution
|
| 98 |
+
|
| 99 |
+
Apache-2.0, inherited from [Qwen2.5-Coder-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-7B-Instruct) (© Alibaba Cloud). GuildLM fine-tuning, identity, and packaging under the same license. Trained locally on Apple Silicon with MLX — **total cloud spend: $0**.
|