Commit
·
2e6f82c
1
Parent(s):
1587fa5
Update modeling_qwen.py
Browse files- modeling_qwen.py +2 -0
modeling_qwen.py
CHANGED
@@ -537,6 +537,8 @@ class QWenModel(QWenPreTrainedModel):
|
|
537 |
images.append(bytes(image).decode('utf-8'))
|
538 |
|
539 |
images = self.visual.encode(images)
|
|
|
|
|
540 |
|
541 |
return images
|
542 |
|
|
|
537 |
images.append(bytes(image).decode('utf-8'))
|
538 |
|
539 |
images = self.visual.encode(images)
|
540 |
+
|
541 |
+
torch.cuda.empty_cache()
|
542 |
|
543 |
return images
|
544 |
|