-
Notifications
You must be signed in to change notification settings - Fork 226
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
Add remove adapters for LLMpipeline #1852
base: master
Are you sure you want to change the base?
Add remove adapters for LLMpipeline #1852
Conversation
remove adapters
remove adapters
remove adapters
remove adapters
remove adapters
remove adapters
remove adapters
remove adapters
remove adapters
remove adapters
remove adapters
remove adapters
remove adapters
remove adapters
remove adapters
remove adapters
remove adapters
remove adapters
I had used mmap for adapter content and eliminate 'romove_adapters'. The user need to encrypt the lora adapter, so I added new API to read the lora adapter from the buffer. |
src/cpp/src/lora_adapter.cpp
Outdated
"Tensor shape ", ov::shape_size(shape), " for tensor \"", name, "\" from Safetensors file \"", filename, "\" doesn't match the expected tensor size ", | ||
"Tensor shape ", ov::shape_size(shape), " for tensor \"", name, "\" from Safetensors file \"", "safetensor", "\" doesn't match the expected tensor size ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't lose a better diagnostics for a file due to the code unification. Most users will still use adapters from files, so this message becomes less useful for them.
src/cpp/src/lora_adapter.cpp
Outdated
} | ||
|
||
// Reads a safetensor and creates a constantmap from the memory. | ||
ConstantMap read_safetensors(const ov::Tensor& safetensor) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this function? It it whole duplication of safetensors_init(safetensor)
. We can move second one to public section in this case
tickets: CVS-160984