Download build/torch-neuron/__init__.py from aws-neuron/vjepa2-neuron-kernels: direct link, hf CLI and curl.
- Browser
- Download file 780 Bytes
-
https://huggingface.co/kernels/aws-neuron/vjepa2-neuron-kernels/resolve/main/build/torch-neuron/__init__.py
- Command line
-
hf download hf://aws-neuron/vjepa2-neuron-kernels/build/torch-neuron/__init__.py
-
curl -L -o __init__.py https://huggingface.co/kernels/aws-neuron/vjepa2-neuron-kernels/resolve/main/build/torch-neuron/__init__.py
780 Bytes
| """V-JEPA2 ViT-L encoder NKI kernels for AWS Trainium2 (trn2). | |
| Public API: | |
| NeuronVJEPA2Encoder -- KernelConfig-mappable layer ("VJEPA2Encoder" -> this) | |
| res_layernorm_fold, attention_block, mlp -- the three kernel entry points | |
| pack_* / build_rope_tables / lane_permutation -- host-side weight packing | |
| """ | |
| from .layers import NeuronVJEPA2Encoder | |
| from .nki_kernels import ( | |
| attention_block, | |
| build_rope_tables, | |
| lane_permutation, | |
| mlp, | |
| pack_out_weights, | |
| pack_tables, | |
| pack_v_weights, | |
| pack_weights, | |
| res_layernorm_fold, | |
| ) | |
| __all__ = [ | |
| "NeuronVJEPA2Encoder", | |
| "res_layernorm_fold", "attention_block", "mlp", | |
| "pack_weights", "pack_tables", "pack_v_weights", "pack_out_weights", | |
| "lane_permutation", "build_rope_tables", | |
| ] | |