fix: small typo adjustments

This commit is contained in:
drbh 2024-09-03 17:36:47 +00:00 committed by Daniël de Kok
parent b4e7601fbe
commit b1026a84cb
2 changed files with 1 additions and 2 deletions

View File

@ -90,7 +90,6 @@ class PositionRotaryEmbedding(nn.Module):
if rope_type == "linear": if rope_type == "linear":
pass pass
elif rope_type == "longrope": elif rope_type == "longrope":
# Phi3LongRoPEScaledRotaryEmbedding
short_factor = torch.tensor( short_factor = torch.tensor(
rope_scaling["short_factor"], dtype=torch.float32, device=device rope_scaling["short_factor"], dtype=torch.float32, device=device
) )

View File

@ -782,7 +782,7 @@ def get_model(
quantize=quantize, quantize=quantize,
speculator=speculator, speculator=speculator,
dtype=dtype, dtype=dtype,
trust_remote_code=True, # trust_remote_code, trust_remote_code=trust_remote_code,
lora_adapter_ids=lora_adapter_ids, lora_adapter_ids=lora_adapter_ids,
) )
else: else: