You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Process 0 terminated with the following error:
Traceback (most recent call last):
File "/code/home/.local/lib/python3.10/site-packages/torch/multiprocessing/spawn.py", line 75, in _wrap
fn(i, *args)
File "/code/ColossalAI/examples/inference/benchmark_llama.py", line 154, in hybrid_inference
benchmark_inference(args)
File "/code/ColossalAI/examples/inference/benchmark_llama.py", line 140, in benchmark_inference
engine.generate(data)
File "/code/home/.local/lib/python3.10/site-packages/colossalai/inference/engine/engine.py", line 142, in generate
out, timestamp = self.schedule.generate_step(self.model, iter([input_list]))
File "/code/home/.local/lib/python3.10/site-packages/colossalai/pipeline/schedule/generate.py", line 260, in generate_step
return self.generate_step_one_stage(model, data_iter)
File "/code/home/.local/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/code/home/.local/lib/python3.10/site-packages/colossalai/pipeline/schedule/generate.py", line 292, in generate_step_one_stage
action()
File "/code/home/.local/lib/python3.10/site-packages/colossalai/pipeline/schedule/generate.py", line 149, in _load_stage_action
output_dict = model_forward(model, inputs_dict, interval_inputs)
File "/code/home/.local/lib/python3.10/site-packages/colossalai/pipeline/schedule/_utils.py", line 120, in model_forward
return model(**data, **internal_inputs)
File "/code/home/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/code/home/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
TypeError: LlamaInferenceForwards.llama_causal_lm_forward() got an unexpected keyword argument 'shard_config'
Is there an existing issue for this bug?
🐛 Describe the bug
Got
TypeError: LlamaInferenceForwards.llama_causal_lm_forward() got an unexpected keyword argument 'shard_config'
when executingThe model in the path is executable with pytorch.
Environment
ngc: pytorch/pytorch:2.3.0-cuda12.1-cudnn8-devel
pytorch: 2.3
The text was updated successfully, but these errors were encountered: