03 2025 档案
摘要:选取一个镜像下拉到docker 命令:sudo docker pull nvcr.io/nvidia/tritonserver:23.04-py3 如果用python作为后端推理代码,肯定会用到pytorch,还需要安装torch等依赖包的镜像。可以创建一个Dockerfile,然后在tritons
阅读全文
摘要:import torch import torch.nn as nn from math import sqrt class SelfAttention(nn.Module): def __init__(self, input_dim, dim_q_k, dim_v): self.q = nn.Li
阅读全文

浙公网安备 33010602011771号