mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
Fix missing rope scaling option for YaRN
This commit is contained in:
parent
0f7d38e774
commit
036a5a02a7
@ -148,6 +148,7 @@ impl std::fmt::Display for Dtype {
|
|||||||
enum RopeScaling {
|
enum RopeScaling {
|
||||||
Linear,
|
Linear,
|
||||||
Dynamic,
|
Dynamic,
|
||||||
|
Yarn,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl std::fmt::Display for RopeScaling {
|
impl std::fmt::Display for RopeScaling {
|
||||||
@ -160,6 +161,9 @@ impl std::fmt::Display for RopeScaling {
|
|||||||
RopeScaling::Dynamic => {
|
RopeScaling::Dynamic => {
|
||||||
write!(f, "dynamic")
|
write!(f, "dynamic")
|
||||||
}
|
}
|
||||||
|
RopeScaling::Yarn => {
|
||||||
|
write!(f, "yarn")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user