Fix missing rope scaling option for YaRN

This commit is contained in:
calycekr 2024-06-17 21:52:52 +09:00 committed by GitHub
parent 0f7d38e774
commit 036a5a02a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")
}
} }
} }
} }