Kernels
kernels-bot commited on
Commit
26c013a
·
verified ·
1 Parent(s): f3de2ee

Uploaded using `kernel-builder`.

Browse files
Files changed (1) hide show
  1. README.md +35 -13
README.md CHANGED
@@ -1,26 +1,48 @@
1
  ---
2
- tags:
3
- - kernels
4
- ---
 
 
5
 
 
 
6
 
7
- ## Activation
 
 
8
 
9
- Activation kernels from [vLLM](https://github.com/vllm-project/vllm/blob/main/csrc/activation_kernels.cu).
 
10
 
11
- Kernel source: https://github.com/huggingface/kernels-community/tree/main/activation
 
 
12
 
13
- ### Performance
 
14
 
 
 
 
 
 
 
15
 
16
- <img class="dark:hidden border border-gray-200 dark:border-gray-700 rounded-lg" src="media/benches_light_animation.svg" />
17
- <img class="hidden dark:block border border-gray-200 dark:border-gray-700 rounded-lg" src="media/benches_dark_animation.svg" />
18
 
19
- <img class="dark:hidden border border-gray-200 dark:border-gray-700 rounded-lg" src="media/benches_light_latency.svg" />
20
- <img class="hidden dark:block border border-gray-200 dark:border-gray-700 rounded-lg" src="media/benches_dark_latency.svg" />
21
 
22
- <img class="dark:hidden border border-gray-200 dark:border-gray-700 rounded-lg" src="media/benches_light_throughput.svg" />
23
- <img class="hidden dark:block border border-gray-200 dark:border-gray-700 rounded-lg" src="media/benches_dark_throughput.svg" />
24
 
 
 
 
25
 
 
26
 
 
 
 
1
  ---
2
+ library_name: kernels
3
+ {% if license %}license: {{ license }}
4
+ {% endif %}---
5
+
6
+ This is the repository card of {{ repo_id }} that has been pushed on the Hub. It was built to be used with the [`kernels` library](https://github.com/huggingface/kernels). This card was automatically generated.
7
 
8
+ ## How to use
9
+ {% if functions %}
10
 
11
+ ```python
12
+ # make sure `kernels` is installed: `pip install -U kernels`
13
+ from kernels import get_kernel
14
 
15
+ kernel_module = get_kernel("{{ repo_id }}")
16
+ {{ functions[0] }} = kernel_module.{{ functions[0] }}
17
 
18
+ {{ functions[0] }}(...)
19
+ ```
20
+ {% else %}
21
 
22
+ Usage example not available.
23
+ {% endif %}
24
 
25
+ ## Available functions
26
+ {% if functions %}
27
+ {% for func in functions %}
28
+ - `{{ func }}`
29
+ {% endfor %}
30
+ {% else %}
31
 
32
+ Function list not available.
33
+ {% endif %}
34
 
35
+ ## Benchmarks
36
+ {% if has_benchmark %}
37
 
38
+ Benchmarking script is available for this kernel. Run `kernels benchmark {{ repo_id }}`.
39
+ {% else %}
40
 
41
+ No benchmark available yet.
42
+ {% endif %}
43
+ {% if upstream %}
44
 
45
+ ## Source code
46
 
47
+ Source code of this kernel originally comes from {{ upstream }} and it was repurposed for compatibility with `kernels`.
48
+ {% endif %}