We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This should:
The top-2 most used implementations is subjective. We can take the most downloaded LoRAs on Hugging Face as proxy. For example: [sorted by downloads]:
The text was updated successfully, but these errors were encountered:
Exploration kickstarter code:
from huggingface_hub import hf_hub_download from safetensors import safe_open def load_model(path): tensors = {} with safe_open(path, framework="pt", device="cpu") as f: for key in f.keys(): tensors[key] = f.get_tensor(key) return tensors TESTED_LORAS = [ {"repo": "XLabs-AI/flux-RealismLora", "rel_path": "lora.safetensors"}, {"repo": "ByteDance/Hyper-SD", "rel_path": "Hyper-FLUX.1-dev-16steps-lora.safetensors"}, ] for lora in TESTED_LORAS: ckpt_path = hf_hub_download(repo_id=lora["repo"], filename=lora["rel_path"]) ckpt = load_model(ckpt_path) print(len(ckpt), {k:v.shape for k,v in ckpt.items()})
Sorry, something went wrong.
cc: @raoulritter who expressed interest in this earlier
Additional resource: This issue is a great resource for the challenges of dealing with many source implementations with helpful pointers.
No branches or pull requests
This should:
The top-2 most used implementations is subjective. We can take the most downloaded LoRAs on Hugging Face as proxy. For example: [sorted by downloads]:
The text was updated successfully, but these errors were encountered: