DylanJHJ's picture
download
raw
472 Bytes
import torch
import json
import re
import os
import string
import time
import gc
def cleanup_vllm(llm):
del llm.model
del llm
gc.collect()
torch.cuda.empty_cache()
torch.cuda.reset_peak_memory_stats()
torch.distributed.destroy_process_group()
return 'vllm engine has been cleaned up'
def is_ampere_gpu():
if torch.cuda.is_available():
major, minor = torch.cuda.get_device_capability()
return major == 8
return False

Xet Storage Details

Size:
472 Bytes
·
Xet hash:
ad777045476b34ef701c27b88a49b29b3a9c515d1d22c500fe6c5a2e9178afb7

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.