[torch.compile] expanding support and fix allgather compilation (#9637)

Signed-off-by: youkaichao <youkaichao@gmail.com>
Co-authored-by: youkaichao <youkaichao@gmail.com>
This commit is contained in:
Yongzao
2024-10-24 16:32:15 +08:00
committed by GitHub
parent 295a061fb3
commit ad6f78053e
6 changed files with 16 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ from torch import nn
from transformers import GPTBigCodeConfig
from vllm.attention import Attention, AttentionMetadata
from vllm.compilation.decorators import support_torch_compile
from vllm.config import CacheConfig, LoRAConfig
from vllm.distributed import get_pp_group, get_tensor_model_parallel_world_size
from vllm.model_executor.layers.activation import get_act_fn
@@ -187,6 +188,7 @@ class GPTBigCodeBlock(nn.Module):
return hidden_states
@support_torch_compile
class GPTBigCodeModel(nn.Module):
def __init__(