deepspeed.init_inference() 返回一个类型为 InferenceEngine 的推理引擎。
deepspeed.init_inference()
InferenceEngine
for step, batch in enumerate(data_loader): #forward() method loss = engine(batch)