From 61bab9d0e3d7a2b4000d9004c6785cd97f7ae896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E8=88=AA=E5=AE=87?= <3364451258@qq.com> Date: Fri, 12 Jun 2026 21:55:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20build=5Fenv.sh=20=E7=AE=80=E5=8C=96?= =?UTF-8?q?=E4=B8=BA=E7=BA=AF=E5=87=80=E7=89=88=E6=9C=AC=EF=BC=88=E9=81=BF?= =?UTF-8?q?=E5=85=8D=20CUDA=20=E9=A2=84=E7=83=AD=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 代码/code/build_env.sh | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/代码/code/build_env.sh b/代码/code/build_env.sh index 5ade4cd..74fff2d 100644 --- a/代码/code/build_env.sh +++ b/代码/code/build_env.sh @@ -1,17 +1,2 @@ #!/bin/bash -set -e - -# 预热 torch inductor,避免推理时编译 -python -c " -import torch - -@torch.compile(mode='reduce-overhead') -def _warmup(x): - return x * 2 - -x = torch.randn(100, 100, device='cuda') -_warmup(x) -print('Inductor cache ready') -" - echo "build env success"