-
Notifications
You must be signed in to change notification settings - Fork 12k
Refactor lora adapter support #8332
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
Merged
Merged
Changes from 38 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
67c5e14
lora: load to devide buft
ngxson e9d7b6c
add patch tensor function
ngxson 4e28ad4
correct tensor patch
ngxson 1b4ffba
llama_lora_adapter_apply
ngxson b88ce0f
correct ggml_backend_tensor_copy
ngxson f6d090d
add llm_build_mm
ngxson a1666aa
Merge branch 'master' into xsn/fix_lora
ngxson 30faf1f
fix auto merge
ngxson 79e2982
update based on review comments
ngxson 847135a
add convert script
ngxson 712fecb
no more transpose A
ngxson 84288ff
add f16 convert
ngxson 41ced24
Merge branch 'master' into xsn/fix_lora
ngxson 0e16188
add metadata check
ngxson 6c617e2
add sanity check
ngxson 7a83f20
fix ftype
ngxson d52455f
add requirements
ngxson 802565c
fix requirements
ngxson 95b3eb0
fix outfile
ngxson 03d24ca
Merge pull request #8 from ngxson/xsn/fix_lora_convert
ngxson ee2b35c
conversion: only allow selected models
ngxson 713665d
fix types
ngxson f15167a
cuda : do not use dmmv if the tensor does not have enough cols
slaren 9841fbd
llama : lora fixes
slaren 4fe0861
Merge pull request #9 from ggerganov/sl/fix_fix_lora
ngxson 1faf7e5
do not disable mmap with lora
ngxson e68344c
Merge branch 'master' into xsn/fix_lora
ngxson 916e959
llm_build_lora_mm_id
ngxson 9d96328
convert_lora : MoE LoRA conversion support
compilade 8956543
convert_hf : simplify modify_tensors for InternLM2
compilade 87301bd
llama : use llm_build_lora_mm in most model graphs
compilade 703573f
Merge branch 'master' into xsn/fix_lora
ngxson 42415a4
auto scale
ngxson 5b18118
Revert "auto scale"
ngxson f68d092
remove redundant params
ngxson b704448
Merge branch 'master' into xsn/fix_lora
ngxson 9175f4b
Apply suggestions from code review
ngxson 0ba23ba
change kv metadata
ngxson b1c4069
move add_type to __init__
ngxson 4d9ac0f
Merge branch 'master' into xsn/fix_lora
ngxson d09382f
convert_hf : move add_type to main()
compilade 383b6bc
Merge branch 'master' into xsn/fix_lora
ngxson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.