Skip to content
New issue

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

Lora: fix rank 1 loras #575

Merged
merged 2 commits into from
Feb 5, 2025
Merged

Lora: fix rank 1 loras #575

merged 2 commits into from
Feb 5, 2025

Conversation

stduhpf
Copy link
Contributor

@stduhpf stduhpf commented Jan 20, 2025

Fixes #573
This assumes LoRA tensors will always have a pair number of dims, which I believe should always be the case for supported models?

Another idea I had to fix it was to check the rank using the penultimate dim of the lora_up tensor, if this implementation cause issues, I will try that instead.

@leejet leejet merged commit e500d95 into leejet:master Feb 5, 2025
9 checks passed
@leejet
Copy link
Owner

leejet commented Feb 5, 2025

Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error ggml with SDXL + LoRA : GGML_ASSERT(ggml_can_mul_mat(a, b)) failed
2 participants