mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-01 01:06:00 +00:00
[Hotfix] Fix bugs in testing continuous batching (#5270)
* fix bug * fix bugs * fix bugs * fix bugs and add padding * add funcs and fix bugs * fix typos * fix bugs * add func
This commit is contained in:
@@ -95,11 +95,10 @@ def benchmark_inference(args):
|
||||
|
||||
if args.dtype == "fp16":
|
||||
model = model.half()
|
||||
elif args.dtype == "bf16":
|
||||
elif args.dtype == "fp16":
|
||||
model = model.to(torch.bfloat16)
|
||||
|
||||
# mbsz = args.mbsz
|
||||
mbsz = args.batch_size
|
||||
mbsz = args.mbsz
|
||||
if args.mode == "caiinference":
|
||||
inference_config = InferenceConfig(
|
||||
dtype=args.dtype,
|
||||
|
Reference in New Issue
Block a user