mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2026-07-15 15:29:48 +00:00
tested anb fix style issue
This commit is contained in:
@@ -165,7 +165,6 @@ class BaseConsumer:
|
||||
state_dict, src=self.num_producers, device=self.device, group_name="sync_model"
|
||||
)
|
||||
del state_dict
|
||||
print(f"[C{self.rank}]: Sync model before training done")
|
||||
torch.cuda.empty_cache()
|
||||
self.profiler.exit("sync_model")
|
||||
|
||||
|
||||
@@ -381,7 +381,6 @@ class AsyncVLLMInferenceBackend(AsyncInferenceBackend):
|
||||
log_probs = []
|
||||
response_idx = []
|
||||
while len(self.running_requests) >= self.microbatch_size:
|
||||
# print(f"Current running {len(self.running_requests)}/{self.microbatch_size} requests, waiting...")
|
||||
await asyncio.sleep(0.1)
|
||||
self.running_requests.append(request_id) # enqueue
|
||||
# pop the first input_ids and attention_mask
|
||||
|
||||
Reference in New Issue
Block a user