Skip to content

v0.8.1

Choose a tag to compare

@github-actions github-actions released this 23 Jul 12:47
· 514 commits to main since this release

New features

Kernel version bounds

get_kernel adds a version argument, which you can use to fetch the latest version compatible with the given version specifier:

activation = kernels.get_kernel("kernels-community/activation", version=">=0.0.3,<0.1")

Version bounds are now also supported when registering layers:

kernel_layer_mapping = {
    "SiluAndMul": {
        "cuda": LayerRepository(
            repo_id="kernels-community/activation",
            version=">=0.0.3,<0.1",
            layer_name="SiluAndMul",
        )
    }
}

Kernel layer locking

Layers can now also use version locks from kernels.lock by using LockedLayerRepository:

kernel_layer_mapping = {
    "SiluAndMul": {
        "cuda": LockedLayerRepository(
            repo_id="kernels-community/activation",
            layer_name="SiluAndMul",
        )
    }
}

See the kernel locking documentation for more information.

What's Changed

New Contributors

Full Changelog: v0.8.0...v0.8.1