OAI: Add API-based model loading/unloading and auth routes
Models can be loaded and unloaded via the API. Also add authentication to use the API and for administrator tasks. Both types of authorization use different keys. Also fix the unload function to properly free all used vram. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
47343e2f1a
commit
b625bface9
11 changed files with 195 additions and 55 deletions
|
|
@ -1,8 +1,14 @@
|
|||
model_dir: "D:/models"
|
||||
model_name: "this_is_a_exl2_model"
|
||||
max_seq_len: 4096
|
||||
gpu_split: "auto"
|
||||
rope_scale: 1.0
|
||||
rope_alpha: 1.0
|
||||
no_flash_attention: False
|
||||
low_mem: False
|
||||
# Network options
|
||||
network:
|
||||
host: "0.0.0.0"
|
||||
port: 8012
|
||||
# Only used if you want to initially load a model
|
||||
model:
|
||||
model_dir: "D:/models"
|
||||
model_name: "airoboros-mistral2.2-7b-exl2"
|
||||
max_seq_len: 4096
|
||||
gpu_split: "auto"
|
||||
rope_scale: 1.0
|
||||
rope_alpha: 1.0
|
||||
no_flash_attention: False
|
||||
low_mem: False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue