Commit ·
273acf8
1
Parent(s): 0a99dfc
Fix dynamic_shapes kwargs to match inputs structure for AOT compilation
Browse files500 unmodified lines501502503504505506507500 unmodified lines'inputs_embeds': None,'use_cache': None,'cache_position': {1: seq_dim} if 'cache_position' in call.kwargs or 'position_ids' in call.kwargs else None,'kwargs': None}exported = torch.export.export(500 unmodified lines501502503504505506507500 unmodified lines'inputs_embeds': None,'use_cache': None,'cache_position': {1: seq_dim} if 'cache_position' in call.kwargs or 'position_ids' in call.kwargs else None,'kwargs': {k: None for k in call.kwargs if k not in ['input_ids', 'attention_mask', 'inputs_embeds', 'use_cache', 'cache_position', 'position_ids']}}exported = torch.export.export(
app.py+1-1