Skip to content

How to Run or Debug OneDiff

Xiaoyu Xu edited this page Aug 1, 2024 · 3 revisions

How to Run

https://github.com/siliconflow/onediff/tree/main/onediff_diffusers_extensions/examples/sd1.5

How to Debug

Get onediff environment info

python -m onediff.utils.collect_env

Or

wget https://raw.githubusercontent.com/siliconflow/onediff/main/src/onediff/utils/collect_env.py
python collect_env.py

onediff version format

version format:[current_version].dev[commit count since last tag]+g[git commit id].d[date] example:

OneDiff version: 1.1.1.dev63+gb1246aaf.d20240726
OneDiffX version: 1.1.1.dev63+gb1246aaf.d20240726

Enable ONEDIFF_DEBUG

export ONEDIFF_DEBUG=1

This will enable the debug info of:

  • code transform process of oneflow_compile;
  • graph build process of nn.Graph in oneflow_compile;

Enable ONEFLOW_DEBUG_MODE

export ONEFLOW_DEBUG_MODE=1

This will enable the debug info of:

  • detailed graph build process of nn.Graph in oneflow_compile;