Kernels
kernels-bot commited on
Commit
052114d
·
verified ·
1 Parent(s): 6e7f784

Uploaded using `kernel-builder`.

Browse files
Files changed (1) hide show
  1. README.md +11 -3
README.md CHANGED
@@ -7,11 +7,19 @@ This is the repository card of kernels-community/liger-kernels that has been pus
7
 
8
  ## How to use
9
 
10
- Usage example not available.
 
 
11
 
12
- ## Available functions
 
 
 
 
13
 
14
- Function list not available.
 
 
15
 
16
  ## Benchmarks
17
 
 
7
 
8
  ## How to use
9
 
10
+ ```python
11
+ # make sure `kernels` is installed: `pip install -U kernels`
12
+ from kernels import get_kernel
13
 
14
+ kernel_module = get_kernel("kernels-community/liger-kernels")
15
+ LigerForCausalLMLoss = kernel_module.LigerForCausalLMLoss
16
+
17
+ LigerForCausalLMLoss(...)
18
+ ```
19
 
20
+ ## Available functions
21
+ - `LigerForCausalLMLoss`
22
+ - `CrossEntropyOutput`
23
 
24
  ## Benchmarks
25