Archived
server: adapters on /v1/models, load/unload_lora_adapter, and a hold that keeps an adapter loaded while a request uses it
This commit is contained in:
1 parent
ba406ace1b
commit
383544f073
8 files changed
+146
-15
No files matched your search
@@ -18,6 +18,8 @@ namespace server {
|
||||
|
||||
struct Server::Generation {
|
||||
std::shared_ptr<Sink> sink;
|
||||
/* The runtime LoRA adapter this choice runs with, held so it cannot be unloaded under it. */
|
||||
std::shared_ptr<void> lora_hold;
|
||||
std::unique_ptr<IDetokenizer> detok;
|
||||
std::unique_ptr<ReplyStream> delta; /* chat streaming only, in the request's API shape */
|
||||
uint64_t id = 0;
|
||||
|
||||
Reference in new issue
Block a user