[Model] Adds Phi-3 support (#4298)

This commit is contained in:
Caio Mendes
2024-04-25 03:06:57 +00:00
committed by GitHub
parent a395a638c2
commit 96e90fdeb3
6 changed files with 149 additions and 9 deletions
+1 -1
View File
@@ -1056,7 +1056,7 @@ def _get_and_verify_max_len(
derived_max_model_len = default_max_len
rope_scaling = getattr(hf_config, "rope_scaling", None)
if rope_scaling is not None:
if rope_scaling is not None and rope_scaling["type"] != "su":
assert "factor" in rope_scaling
scaling_factor = rope_scaling["factor"]
if rope_scaling["type"] == "yarn":