Comfy-Org / Comfy-Org/ComfyUI

Support OFTv2 Adapter

Open
#10,695 0 comments 12 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Feature Idea

ComfyUI already supports OFT. OFTv2 is better, lighter, and faster:
https://spherelab.ai/oftv2/

It's included in PEFT library:
https://github.com/huggingface/peft/tree/main/src/peft/tuners/oft

And this PR in OneTrainer is waiting for support on the inference side:
https://github.com/Nerogar/OneTrainer/pull/1073/

### Existing Solutions

Here's an implementation for ComfyUI that worked for me & others:
[oftv2.py](https://github.com/user-attachments/files/23443109/oftv2.py)

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.