//clika-runtime/io.clika.runtime/RopeScaling
RopeScaling
[common]
enum RopeScaling : Enum<RopeScaling>
RoPE frequency-scaling family (long-context extension). Every family also folds an OPTIONAL 1-D [rotary_dim/2]``freq_factors per-band divisor table into its frequencies (absent ⇒ no division); the 2-D [2, rotary_dim/2] short/long-row form belongs to the LongRoPE families alone, which REQUIRE a table in one of the two shapes.
Entries
| NONE | [common] NONE inv_freq = theta^(-2i/d) |
| LINEAR | [common] LINEAR position interpolation: angle uses pos / scale |
| NTK | [common] NTK static NTK-aware base scaling |
| DYNAMIC_NTK | [common] DYNAMIC_NTK NTK with a runtime sequence-length trigger |
| YARN | [common] YARN wavelength-ramp interpolation (beta_fast/beta_slow) |
| LLAMA3 | [common] LLAMA3 Llama-3.1 piecewise inv_freq smoothing |
| LONG_ROPE | [common] LONG_ROPE per-dim short/long factors; row + attention factor keyed on the BUILT cache length vs original_max_pos |
| PROPORTIONAL | [common] PROPORTIONAL zero-tail: first ⌊scale·d/2⌋ bands carry real frequencies (exponent over the full d), the rest are zero (identity rotation) |
| LONG_ROPE_SHORT | [common] LONG_ROPE_SHORT LongRoPE, SHORT row pinned statically (row 0); attention factor from the config ratio ( scale), never the built length |
| LONG_ROPE_LONG | [common] LONG_ROPE_LONG LongRoPE, LONG row pinned statically (row 1); attention factor from the config ratio ( scale) |
Types
| Name | Summary |
|---|---|
| Companion | [common] object Companion |
Properties
| Name | Summary |
|---|---|
| code | [common] val code: Int |
| name | [common] val name: String |
| ordinal | [common] val ordinal: Int |
Functions
| Name | Summary |
|---|---|
| valueOf | [common] fun valueOf(value: String): RopeScaling Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) |
| values | [common] fun values(): Array<RopeScaling> Returns an array containing the constants of this enum type, in the order they're declared. |