Download build/torch-neuron/nki_kernels/__init__.py from aws-neuron/vit-encoder-neuron-kernels: direct link, hf CLI and curl.
- Browser
- Download file 945 Bytes
-
https://huggingface.co/kernels/aws-neuron/vit-encoder-neuron-kernels/resolve/v1/build/torch-neuron/nki_kernels/__init__.py
- Command line
-
hf download hf://aws-neuron/vit-encoder-neuron-kernels@v1/build/torch-neuron/nki_kernels/__init__.py
-
curl -L -o __init__.py https://huggingface.co/kernels/aws-neuron/vit-encoder-neuron-kernels/resolve/v1/build/torch-neuron/nki_kernels/__init__.py
945 Bytes
| """The NKI kernels and their host-side weight packing.""" | |
| from .attention_block import ( | |
| attention_block, | |
| lane_permutation, | |
| pack_out_weights, | |
| pack_qk_bias, | |
| pack_tables, | |
| pack_v_weights, | |
| pack_weights, | |
| ) | |
| from .attention_block_l1 import attention_block_l1 | |
| from .attention_block_l1_ln import attention_block_l1_ln | |
| from .mlp import nki_mlp_k4_xp as mlp | |
| from .mlp import pack_b1 | |
| from .mlp_res_ln import nki_mlp_res_ln as mlp_res_ln | |
| from .res_layernorm import nki_res_layernorm_fold as res_layernorm_fold | |
| from .swiglu_stream import nki_swiglu_stream as swiglu_stream | |
| from .swiglu_stream import nki_swiglu_stream_ln as swiglu_stream_ln | |
| __all__ = [ | |
| "attention_block", "attention_block_l1", "attention_block_l1_ln", "res_layernorm_fold", | |
| "mlp", "mlp_res_ln", "pack_b1", "swiglu_stream", "swiglu_stream_ln", | |
| "pack_weights", "pack_qk_bias", "pack_tables", "pack_v_weights", "pack_out_weights", "lane_permutation", | |
| ] | |