monkeypatch.models.kimi_linear.patch_kimi_linear

monkeypatch.models.kimi_linear.patch_kimi_linear

Functions

Name Description
get_patch_file_path Gets the absolute path to a patch file using importlib.resources.files.
patch_kimi Apply all Kimi patches.

get_patch_file_path

monkeypatch.models.kimi_linear.patch_kimi_linear.get_patch_file_path(
    package_dot_path,
    filename,
)

Gets the absolute path to a patch file using importlib.resources.files.

patch_kimi

monkeypatch.models.kimi_linear.patch_kimi_linear.patch_kimi()

Apply all Kimi patches. Must be called BEFORE loading config/tokenizer/model.