mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
fix: small typo adjustments
This commit is contained in:
parent
b4e7601fbe
commit
b1026a84cb
@ -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
|
||||||
)
|
)
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user