MCPcopy Create free account
hub / github.com/csunny/algorithm / precomputer_freqs_cis

Function precomputer_freqs_cis

moe/model_config.py:104–132  ·  view source on GitHub ↗

Precompute the cos and sin of the frequencies for RoPE.

(
        dim: int,
        end: int = int(32 * 1024),
        rope_base: float = 1e6,
        rope_scaling: Optional[dict] = None,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__init__Method · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected