mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
Model: Fix fetching of draft args
Mistakenly fetched these from parent kwargs instead of the scoped draft_config var. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
6
model.py
6
model.py
@@ -110,9 +110,9 @@ class ModelContainer:
|
||||
|
||||
self.draft_config.model_dir = str(draft_model_path.resolve())
|
||||
self.draft_config.prepare()
|
||||
|
||||
self.draft_config.scale_pos_emb = kwargs.get("draft_rope_scale") or 1.0
|
||||
self.draft_config.scale_alpha_value = kwargs.get("draft_rope_alpha") or self.calculate_rope_alpha(self.draft_config.max_seq_len)
|
||||
|
||||
self.draft_config.scale_pos_emb = draft_config.get("draft_rope_scale") or 1.0
|
||||
self.draft_config.scale_alpha_value = draft_config.get("draft_rope_alpha") or self.calculate_rope_alpha(self.draft_config.max_seq_len)
|
||||
self.draft_config.max_seq_len = self.config.max_seq_len
|
||||
|
||||
if "chunk_size" in kwargs:
|
||||
|
||||
Reference in New Issue
Block a user