How to use from
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 edoggy/poc-coder-7b-v1:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf edoggy/poc-coder-7b-v1:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf edoggy/poc-coder-7b-v1:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf edoggy/poc-coder-7b-v1:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf edoggy/poc-coder-7b-v1:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama cli -hf edoggy/poc-coder-7b-v1:Q4_K_M
Use Docker
docker model run hf.co/edoggy/poc-coder-7b-v1:Q4_K_M
Quick Links

poc-coder-7b-v1

Describe a smart-contract bug, give it the project's test setup, and it writes a Foundry test that tries to prove the bug. Runs locally with Ollama, so your code stays private.

It writes drafts. Expect to finish and verify the test yourself.

Quick start

You need Ollama and Foundry.

pipx install huggingface_hub    # or: pip install -U huggingface_hub (inside a venv)
hf download edoggy/poc-coder-7b-v1 --local-dir ~/poc-v1
cd ~/poc-v1
ollama create poc-7b-v1 -f Modelfile

Then, from your Foundry project root, with your prompt in prompt.txt:

ollama run --nowordwrap poc-7b-v1 "$(cat prompt.txt)" | sed '/^```/d' > test/PoC_1.t.sol
forge test --match-path test/PoC_1.t.sol -vvv

Results

Tested on 37 bugs from 15 projects the model never saw during training. Each model worked alone, and every passing test was read by hand.

model proved progress (0-5) compile errors
Qwen2.5-Coder-7B (base) 0 0.95 11
v1 0 0.78 18

v1 compiles less often than its base model. An earlier version of this card reported "1 of 22 proved" on an older, smaller test set; on the set above that pass did not hold up when read, so we report 0.

Limits

  • Foundry projects only. It proves bugs you describe; it doesn't find them.
  • Check your bounty platform's rules on AI-assisted work.

Trained (LoRA on Qwen2.5-Coder-7B-Instruct) on 58 PoCs from 47 projects, from public Code4rena and Sherlock reports. Credit to the wardens who found the bugs.

Downloads last month
315
GGUF
Model size
8B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for edoggy/poc-coder-7b-v1

Base model

Qwen/Qwen2.5-7B
Quantized
(276)
this model