[Bug fix] [PP] fix wrong dtype for quantified model (#12247)
Signed-off-by: Xuchun Shang <xuchun.shang@gmail.com>
This commit is contained in:
@@ -323,11 +323,11 @@ class CudaGraphRunner:
|
||||
self.pp_proxy_tensors = {
|
||||
"hidden_states": torch.zeros(
|
||||
(self.max_bs, self.model_runner.model_config.hidden_size),
|
||||
dtype=torch.bfloat16,
|
||||
dtype=self.model_runner.model_config.dtype,
|
||||
),
|
||||
"residual": torch.zeros(
|
||||
(self.max_bs, self.model_runner.model_config.hidden_size),
|
||||
dtype=torch.bfloat16,
|
||||
dtype=self.model_runner.model_config.dtype,
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user