mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
Model: Add params to current model endpoint
Grabs the current model rope params, max seq len, and the draft model if applicable. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
4
model.py
4
model.py
@@ -129,8 +129,8 @@ class ModelContainer:
|
||||
alpha = 1 if ratio <= 1.0 else -0.13436 + 0.80541 * ratio + 0.28833 * ratio ** 2
|
||||
return alpha
|
||||
|
||||
def get_model_path(self):
|
||||
model_path = pathlib.Path(self.config.model_dir)
|
||||
def get_model_path(self, is_draft: bool = False):
|
||||
model_path = pathlib.Path(self.draft_config.model_dir if is_draft else self.config.model_dir)
|
||||
return model_path
|
||||
|
||||
def load(self, progress_callback = None):
|
||||
|
||||
Reference in New Issue
Block a user