mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +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 {
|
||||
Linear,
|
||||
Dynamic,
|
||||
Yarn,
|
||||
}
|
||||
|
||||
impl std::fmt::Display for RopeScaling {
|
||||
@ -160,6 +161,9 @@ impl std::fmt::Display for RopeScaling {
|
||||
RopeScaling::Dynamic => {
|
||||
write!(f, "dynamic")
|
||||
}
|
||||
RopeScaling::Yarn => {
|
||||
write!(f, "yarn")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user