GraphCanon updated 2w · GitHub synced 2w
Decision brief
MGDebugger offers hierarchical debugging for various levels of code granularity, emphasizing efficient error resolution and improved debug accuracy.
Good fit when
- When you need to perform granular analysis on complex codes, progressing from subfunctions to the whole system to ensure precise error detection and correction.
- If your application requires high accuracy in bug fixing, MGDebugger has achieved a reported 100% success rate on benchmark tests like HumanEval with certain models like DeepSeek-R1.
Avoid when
- Avoid using MGDebugger if you operate primarily on Mac systems and do not require support for quantized models (as some essential dependencies are unsupported on MacOS).
- If your model does not align well with the DeepSeek-Coder-V2-Lite-Instruct or similar models, since the effectiveness of MGDebugger might vary without support for those particular frameworks.
- Pricing:
- freemium - MGDebugger is free to use under MIT license but may require users to manage model hosting costs and dependencies.
- Requirements:
- Min 4 GB RAM; Requires Python version 3.8 or later; vLLM version 0.6.0 or later must be installed for model inference
Observed Jul 17, 2026 · Source: enrich:decision_facts
Verify the decision
Maintenance and security
Full trust report- Maintenance
- Dormant (395d since push)
- As of 2w
- Provenance
- Not a fork · Personal account
- As of 2w
- Security (OSV)
- 111 low (111 low)
- As of 1mo
Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.
Install
pip install MGDebugger PyPISimilar tools
Same-category neighbours. No typed graph edges are catalogued for this tool yet.
Evidence and technical details
Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.
Overview
MGDebugger is a hierarchical debugging method designed to resolve errors at various levels of granularity in large language models.
Capability facts
- Languages
- python
Source: github.language · Aug 5, 2026
Categories
Compatibility
Sourced claims from the README excerpt - not unsourced marketing copy.
Source: README excerpt (regex_v1, Aug 5, 2026)
- **Python**: Version 3.8 or later.Source link
Tags
README
MGDebugger: Multi-Granularity LLM Debugger
For paper "From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debugging".
🔥Update: MGDebugger achieves 100% accuracy on HumanEval with the DeepSeek-R1 model in our latest experiments! Results have been uploaded in /supplementary/dsr1_results.jsonl
Table of Contents
- MGDebugger: Multi-Granularity LLM Debugger
- Table of Contents
- Introduction
- Getting Started
- Prerequisites
- Configuring the vLLM Server
- Usage
- Running the Demo
- Running Experiments
- Log Management
- Performance
- Contributing
Introduction
MGDebugger is a hierarchical LLM code debugging method designed to isolate, identify, and resolve errors at various levels of granularity. Using a hierarchical bottom-up debugging approach, MGDebugger systematically progresses from individual subfunctions to the overall system, enabling precise error detection and correction.
With MGDebugger, developers can efficiently debug complex codes and functions by performing granular analysis, reducing debugging time, and improving the success rate of resolving complex issues.
MGDebugger System Architecture Overview
Subfunction Debugging Module
Getting Started
Prerequisites
Before running MGDebugger, ensure your environment meets the following requirements:
-
Python: Version 3.8 or later.
-
vLLM: Version 0.6.0 or later. Required for model loading and inference. You can follow the official installation guide to set it up.
-
Additional dependencies: Install all necessary Python packages using the following command:
There are some packages not supported on Mac such as auto_gptq and autoawq, you can remove these requirements if you won't need them to load quantized models.
pip install -r requirements.txt
Configuring the vLLM Server
To launch the vLLM server with the DeepSeek-Coder-V2-Lite-Instruct model, execute the following command:
python -m vllm.entrypoints.openai.api_server \
--model deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct \
--trust-remote-code \
--dtype auto \
--api-key token-abc123s \
--port 18889
This will initialize the model and start the server on port 18889.
Usage
All the codes for our main experiments are in the src folder.
Running the Demo
We've prepared a demo code snippet to showcase MGDebugger's debugging capabilities. You can run the demo by executing the following command after starting the vLLM server:
python demo.py
Running Experiments
Once the vLLM server is up and running, start MGDebugger by executing:
python main.py
Tip: You can modify the
MODELandinput_seedsparameters in theconfig.pyfile to test different models and input configurations.
Log Management
MGDebugger automatically stores all debugging and error logs in the output_data directory. You can review these logs to gain deeper insights into debugging details and performance analysis.
Performance
The table below highlights the performance of different methods compared to the baseline (No-Debugging) on the HumanEval and MBPP datasets using the DeepSeek-Coder-V2-Lite model.
| Method | HumanEval Acc. (%) | Δ Acc. (%) |
For agents
This page has a .md twin and JSON over the API.