• Stars
    star
    622
  • Rank 69,387 (Top 2 %)
  • Language
    Python
  • Created over 1 year ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

OneDiff: A drop-in acceleration lib for ComfyUI, HF diffusers, Stable Diffusion web UI, and other diffusion models.

PyPI version Docker image build

OneFlow diffusers

OneFlow backend support for diffusers

Getting started

Please refer to this wiki

Quick demo

python3 -m pip install "torch" "transformers==4.27.1" "diffusers[torch]==0.15.1"
python3 -m pip uninstall accelerate -y
python3 -m pip install -U onediff
python3 -m onediff.demo

More about OneFlow

OneFlow's main repo

Development

Option 1: Fresh clone and dev install

git clone https://github.com/Oneflow-Inc/diffusers.git onediff
cd onediff
python3 -m pip install "torch" "transformers==4.27.1" "diffusers[torch]==0.15.1"
python3 -m pip uninstall accelerate -y
python3 -m pip install -e .

Option 2: Setup if you were using the the oneflow-fork branch before

  1. uninstall transformers and diffusers
python3 -m pip uninstall transformers -y
python3 -m pip uninstall diffusers -y
  1. install transformers and diffusers
python3 -m pip install "torch" "transformers==4.27.1" "diffusers[torch]==0.15.1"
python3 -m pip uninstall accelerate -y
  1. delete the main first:
git branch -D main
git fetch
git checkout main
python3 -m pip install -e .

More examples

There is a directory for examples

Release

  • run examples to check it works

    python3 examples/text_to_image.py
    python3 examples/text_to_image_dpmsolver.py
  • bump version in these files:

    setup.py
    src/onediff/__init__.py
    
  • build wheel

    rm -rf dist
    python3 setup.py bdist_wheel
    
  • upload to pypi

    twine upload dist/*

More Repositories

1

oneflow

OneFlow is a deep learning framework designed to be user-friendly, scalable and efficient.
C++
5,647
star
2

libai

LiBai(李白): A Toolbox for Large-Scale Distributed Parallel Training
Python
376
star
3

DLPerf

DeepLearning Framework Performance Profiling Toolkit
Python
267
star
4

one-yolov5

A more efficient yolov5 with oneflow backend 🎉🎉🎉
Python
208
star
5

OneFlow-Benchmark

OneFlow models for benchmarking.
Python
104
star
6

models

Models and examples built with OneFlow
Python
92
star
7

vision

Datasets, Transforms and Models specific to Computer Vision
Python
83
star
8

oneflow-documentation

oneflow documentation
HTML
67
star
9

one-glm

A more efficient GLM implementation!
Python
54
star
10

oneflow_convert

OneFlow->ONNX
Python
41
star
11

oneflow-xrt

C++
22
star
12

serving

OneFlow Serving
C++
19
star
13

oneflow-yolo-doc

https://start.oneflow.org/oneflow-yolo-doc
HTML
18
star
14

oneflow-lite

C++
18
star
15

one-fx

A toolkit for developers to simplify the transformation of nn.Module instances. It's now corresponding to Pytorch.fx.
Python
13
star
16

oneflow_face

Python
12
star
17

conda-env

Shell
12
star
18

flow-OpCounter

Count the FLOPs & Params of your OneFlow model.
Python
11
star
19

oneflow_vision_model

Python
10
star
20

diffusion-benchmark

Python
10
star
21

occl

C++
8
star
22

one-codegeex

Python
7
star
23

faster-chatglm-6b

Python
6
star
24

oneflow-api-cn

Chinese Documents of OneFlow API
Python
6
star
25

oneflow-mlu

C++
6
star
26

oneflow-hip

C++
6
star
27

OneAutoTest

Auto-Test System
Shell
5
star
28

Oneflow-Model-Compression

Python
5
star
29

community

Stores documents used by the OneFlow developer community
5
star
30

oneflow_yolov3

Python
4
star
31

diffusers

Python
4
star
32

trt_flash_attention

C++
3
star
33

get-oneflow

Build or fetch pre-build outputs of OneFlow in GitHub Actions
TypeScript
3
star
34

CoModels

Python
3
star
35

text

Data loaders and abstractions for text and NLP
Python
3
star
36

oneflow_imaginaire

Implementation of NVlabs imaginaire models in Oneflow
Python
3
star
37

utensor

C++
2
star
38

comm_network

C
2
star
39

code_film

Python
1
star
40

lesson_projects

Python
1
star
41

oneflow-insiders

Repo to collect issues of OneFlow early adopters
1
star
42

oneflow-mlu-models

Python
1
star
43

manylinux-builder

TypeScript
1
star
44

Zhusuan-Oneflow

Zhusuan with backend Oneflow
Python
1
star