FelixChan9527/PerfGuard

This is the official code for the paper PerfGuard: A Performance-Aware Agent for Visual Content Generation, which has been accepted to ICLR 2026.

5

stars

4

commits

Python

primary language

Oct 30, 2025

updated

README

PerfGuard of ICLR2026

This is the official code for PerfGuard in ICLR 2026

PerfGuard

Environment Setup

  1. Install Conda Environment
conda create -n PerfGuard python=3.10
conda activate PerfGuard
  1. Install MetaGPT

  2. Please go to the following GitHub repository to install the necessary tool dependencies.

https://github.com/HaozheZhao/UltraEdit
https://github.com/HuiZhang0812/CreatiLayout
https://github.com/stepfun-ai/Step1X-Edit
https://github.com/weichow23/AnySD
https://github.com/bytedance/DreamO
https://github.com/Xiaojiu-z/EasyControl
https://github.com/tencent-ailab/IP-Adapter
  1. Modify the relevant code to avoid environment conflicts.
# Insert the following code into './Step1X_Edit/inference.py'
import sys
sys.path.append("Step1X_Edit")
# Insert the following code into  './AnySD/anysd/src/model.py'
import sys
sys.path.append("AnySD")
  1. Install the remaining dependencies
pip install -r requirement.txt
  1. Download the planner checkpoint zip file and unzip it.
link: https://pan.baidu.com/s/1DyK9rZeTebdwAKfl_pl6DQ?pwd=ziy2 passward: ziy2 
  1. Deploy LLM locally using vLLM
export VLLM_USE_MODELSCOPE=True 
vllm serve Qwen/Qwen3-14B   --port 8001
vllm serve your_planner_checkpoint  --port 8002
  1. Modify the LLM config file under ./config

Run the program

python run.py

Contributors

Mars-345

4 commits

FelixChan9527/PerfGuard

This is the official code for the paper PerfGuard: A Performance-Aware Agent for Visual Content Generation, which has been accepted to ICLR 2026.

5

stars

4

commits

Python

primary language

Oct 30, 2025

updated

README

PerfGuard of ICLR2026

This is the official code for PerfGuard in ICLR 2026

PerfGuard

Environment Setup

  1. Install Conda Environment
conda create -n PerfGuard python=3.10
conda activate PerfGuard
  1. Install MetaGPT

  2. Please go to the following GitHub repository to install the necessary tool dependencies.

https://github.com/HaozheZhao/UltraEdit
https://github.com/HuiZhang0812/CreatiLayout
https://github.com/stepfun-ai/Step1X-Edit
https://github.com/weichow23/AnySD
https://github.com/bytedance/DreamO
https://github.com/Xiaojiu-z/EasyControl
https://github.com/tencent-ailab/IP-Adapter
  1. Modify the relevant code to avoid environment conflicts.
# Insert the following code into './Step1X_Edit/inference.py'
import sys
sys.path.append("Step1X_Edit")
# Insert the following code into  './AnySD/anysd/src/model.py'
import sys
sys.path.append("AnySD")
  1. Install the remaining dependencies
pip install -r requirement.txt
  1. Download the planner checkpoint zip file and unzip it.
link: https://pan.baidu.com/s/1DyK9rZeTebdwAKfl_pl6DQ?pwd=ziy2 passward: ziy2 
  1. Deploy LLM locally using vLLM
export VLLM_USE_MODELSCOPE=True 
vllm serve Qwen/Qwen3-14B   --port 8001
vllm serve your_planner_checkpoint  --port 8002
  1. Modify the LLM config file under ./config

Run the program

python run.py

Contributors

Mars-345

4 commits

Languages

Python

100.0%