```python
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.cpp_extension import load_inline

_cpp_source = r"""
#include <torch/extension.h>
torch::Tensor fused_bias_activation_cuda(
    torch::Tensor x, torch::Tensor bias, torch::Tensor addition);
"""

_cuda_source = r"""
#include <torch/extension.h>
#include <c10/cuda/CUDAGuard.h>
#include <c10/cuda/CUDAStream.h>
#include <c10/cuda/CUDAException.h>
#include <cuda_runtime.h>
#include <algorithm>
#include <cstdint>

__device__ __forceinline__ float activate(
    float x, float bias, float addition
) {
    x = x + bias;
    x = x > 0.0f ? x : 0.2f * x;
    x = x + addition;
    x = x < -1.0f ? -1.0f : x;
    x = x > 1.0f ? 1.0f : x;
    return (0.5f * x) *
           (1.0f + erff(x * 0.7071067811865475244f));
}

template<bool CHANNELS_LAST>
__global__ void fused_vector_kernel(
    float4* __restrict__ output,
    const float* __restrict__ bias,
    const float* __restrict__ addition,
    int64_t vectors,
    int64_t spatial,
    int channels
) {
    const int64_t stride = int64_t(blockDim.x) * gridDim.x;
    for (int64_t i = int64_t(blockIdx.x) * blockDim.x + threadIdx.x;
         i < vectors; i += stride) {
        float4 v = output[i];
        if (CHANNELS_LAST) {
            const int c4 = i % (channels / 4);
            const float4 b = reinterpret_cast<const float4*>(bias)[c4];
            const float4 a = reinterpret_cast<const float4*>(addition)[c4];
            v.x = activate(v.x, b.x, a.x);
            v.y = activate(v.y, b.y, a.y);
            v.z = activate(v.z, b.z, a.z);
            v.w = activate(v.w, b.w, a.w);
        } else {
            const int c = ((i * 4) / spatial) % channels;
            const float b = bias[c];
            const float a = addition[c];
            v.x = activate(v.x, b, a);
            v.y = activate(v.y, b, a);
            v.z = activate(v.z, b, a);
            v.w = activate(v.w, b, a);
        }
        output[i] = v;
    }
}

template<bool CHANNELS_LAST>
__global__ void fused_scalar_kernel(
    float* __restrict__ output,
    const float* __restrict__ bias,
    const float* __restrict__ addition,
    int64_t count,
    int64_t spatial,
    int channels
) {
    const int64_t stride = int64_t(blockDim.x) * gridDim.x;
    for (int64_t i = int64_t(blockIdx.x) * blockDim.x + threadIdx.x;
         i < count; i += stride) {
        const int c = CHANNELS_LAST ? i % channels
                                    : (i / spatial) % channels;
        output[i] = activate(output[i], bias[c], addition[c]);
    }
}

torch::Tensor fused_bias_activation_cuda(
    torch::Tensor x, torch::Tensor bias, torch::Tensor addition
) {
    TORCH_CHECK(x.is_cuda() && bias.is_cuda() && addition.is_cuda(),
                "Expected CUDA tensors");
    TORCH_CHECK(x.device() == bias.device() &&
                x.device() == addition.device(), "Device mismatch");
    TORCH_CHECK(x.scalar_type() == at::kFloat &&
                bias.scalar_type() == at::kFloat &&
                addition.scalar_type() == at::kFloat,
                "Expected float32 tensors");
    TORCH_CHECK(x.dim() == 5, "Expected a five-dimensional tensor");
    TORCH_CHECK(bias.is_contiguous() && addition.is_contiguous(),
                "Expected contiguous parameters");
    TORCH_CHECK(bias.numel() == x.size(1) &&
                addition.numel() == x.size(1),
                "Expected one bias and addition value per channel");

    const bool channels_last =
        x.is_contiguous(at::MemoryFormat::ChannelsLast3d);
    TORCH_CHECK(channels_last || x.is_contiguous(),
                "Unsupported output layout");

    const c10::cuda::CUDAGuard guard(x.device());
    const cudaStream_t stream =
        c10::cuda::getCurrentCUDAStream(x.get_device()).stream();

    const int64_t count = x.numel();
    if (count == 0) return x;

    const int channels = static_cast<int>(x.size(1));
    const int64_t spatial = x.size(2) * x.size(3) * x.size(4);
    const bool aligned =
        reinterpret_cast<uintptr_t>(x.data_ptr<float>()) % 16 == 0 &&
        reinterpret_cast<uintptr_t>(bias.data_ptr<float>()) % 16 == 0 &&
        reinterpret_cast<uintptr_t>(addition.data_ptr<float>()) % 16 == 0;
    const bool vectorized =
        aligned && (channels_last ? channels % 4 == 0 : spatial % 4 == 0);

    constexpr int threads = 256;
    const int64_t work = vectorized ? count / 4 : count;
    const int blocks = static_cast<int>(
        std::min<int64_t>((work + threads - 1) / threads, 65535));

    if (vectorized) {
        auto ptr = reinterpret_cast<float4*>(x.data_ptr<float>());
        if (channels_last) {
            fused_vector_kernel<true><<<blocks, threads, 0, stream>>>(
                ptr, bias.data_ptr<float>(), addition.data_ptr<float>(),
                work, spatial, channels);
        } else {
            fused_vector_kernel<false><<<blocks, threads, 0, stream>>>(
                ptr, bias.data_ptr<float>(), addition.data_ptr<float>(),
                work, spatial, channels);
        }
    } else if (channels_last) {
        fused_scalar_kernel<true><<<blocks, threads, 0, stream>>>(
            x.data_ptr<float>(), bias.data_ptr<float>(),
            addition.data_ptr<float>(), count, spatial, channels);
    } else {
        fused_scalar_kernel<false><<<blocks, threads, 0, stream>>>(
            x.data_ptr<float>(), bias.data_ptr<float>(),
            addition.data_ptr<float>(), count, spatial, channels);
    }

    C10_CUDA_KERNEL_LAUNCH_CHECK();
    return x;
}
"""

_fused_ops = load_inline(
    name="conv3d_channels_last_fused_bias_leaky_add_clamp_gelu_v2",
    cpp_sources=_cpp_source,
    cuda_sources=_cuda_source,
    functions=["fused_bias_activation_cuda"],
    extra_cflags=["-O3"],
    extra_cuda_cflags=["-O3", "--fmad=false"],
    verbose=False,
)


class ModelNew(nn.Module):
    def __init__(self, in_channels, out_channels, kernel_size, sum_tensor_shape):
        super().__init__()
        self.conv = nn.Conv3d(in_channels, out_channels, kernel_size)
        self.sum_tensor = nn.Parameter(torch.randn(sum_tensor_shape))

    def forward(self, x):
        use_custom = (
            x.is_cuda
            and x.dtype == torch.float32
            and self.conv.weight.dtype == torch.float32
            and self.conv.bias is not None
            and self.conv.bias.dtype == torch.float32
            and self.sum_tensor.dtype == torch.float32
            and tuple(self.sum_tensor.shape)
            == (self.conv.out_channels, 1, 1, 1)
            and not torch.is_autocast_enabled()
        )

        if use_custom:
            x = x.contiguous(memory_format=torch.channels_last_3d)
            weight = self.conv.weight.contiguous(
                memory_format=torch.channels_last_3d
            )
            x = F.conv3d(
                x,
                weight,
                None,
                self.conv.stride,
                self.conv.padding,
                self.conv.dilation,
                self.conv.groups,
            )
            return _fused_ops.fused_bias_activation_cuda(
                x,
                self.conv.bias.contiguous(),
                self.sum_tensor.contiguous(),
            )

        x = self.conv(x)
        x = F.leaky_relu(x, negative_slope=0.2)
        x = torch.clamp(x + self.sum_tensor, min=-1.0, max=1.0)
        return F.gelu(x)
```