Skip to content

Commit

Permalink
Add fallback to draft_rope_scale to 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DocShotgun authored Dec 6, 2023
1 parent 39f7a2a commit 3f2fcbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def progress(loaded_modules: int, total_modules: int, loading_draft: bool)
self.draft_config.model_dir = str(draft_model_path.resolve())
self.draft_config.prepare()

if "draft_rope_scale" in kwargs: self.draft_config.scale_pos_emb = kwargs["draft_rope_scale"]
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.max_seq_len = self.config.max_seq_len

Expand Down

0 comments on commit 3f2fcbc

Please sign in to comment.