Skip to content

Commit

Permalink
bug : fix Qwen-2 sliding_window config bug (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtejankar authored Jul 1, 2024
1 parent c88fa9e commit ecbe9ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/lorax_server/models/flash_qwen2.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def __init__(

config = Qwen2Config.from_pretrained(model_id, revision=revision, trust_remote_code=trust_remote_code)
config.quantize = quantize
if not config.use_sliding_window:
config.sliding_window = None

torch.distributed.barrier(group=self.process_group)

Expand Down

0 comments on commit ecbe9ea

Please sign in to comment.