Download torch-ext/torch_binding.h from flashrt/fp8-gemm: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/flashrt/fp8-gemm/resolve/main/torch-ext/torch_binding.h
- Command line
-
hf download hf://flashrt/fp8-gemm/torch-ext/torch_binding.h
-
curl -L -o torch_binding.h https://huggingface.co/flashrt/fp8-gemm/resolve/main/torch-ext/torch_binding.h
1.37 kB
| // SPDX-License-Identifier: Apache-2.0 | |
| void fp8_linear_bf16( | |
| torch::Tensor const& input, | |
| torch::Tensor const& weight, | |
| double alpha, | |
| int64_t variant, | |
| torch::Tensor& out); | |
| void fp8_linear_residual_bf16( | |
| torch::Tensor const& input, | |
| torch::Tensor const& weight, | |
| double alpha, | |
| int64_t variant, | |
| torch::Tensor& residual); | |
| void fp8_linear_bias_bf16( | |
| torch::Tensor const& input, | |
| torch::Tensor const& weight, | |
| torch::Tensor const& bias, | |
| double alpha, | |
| torch::Tensor& out); | |
| void fp8_linear_bias_residual_bf16( | |
| torch::Tensor const& input, | |
| torch::Tensor const& weight, | |
| torch::Tensor const& bias, | |
| double alpha, | |
| torch::Tensor& residual); | |
| void fp8_linear_bias_gelu_bf16( | |
| torch::Tensor const& input, | |
| torch::Tensor const& weight, | |
| torch::Tensor const& bias, | |
| double alpha, | |
| torch::Tensor& out); | |
| void fp8_blockwise_linear_bf16( | |
| torch::Tensor const& input, | |
| torch::Tensor const& weight, | |
| torch::Tensor const& input_scale, | |
| torch::Tensor const& weight_scale, | |
| torch::Tensor& out); | |
| void fp8_blockwise_swiglu_quantize_fp8( | |
| torch::Tensor const& input, | |
| torch::Tensor const& gate_up_weight, | |
| torch::Tensor const& input_scale, | |
| torch::Tensor const& gate_up_weight_scale, | |
| torch::Tensor& output, | |
| torch::Tensor& output_scale); | |