MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / is_fp8_supported_gpu

Function is_fp8_supported_gpu

app/utils/model_utils.py:137–143  ·  view source on GitHub ↗

检查GPU是否支持fp8

()

Source from the content-addressed store, hash-verified

135
136
137def is_fp8_supported_gpu():
138 """检查GPU是否支持fp8"""
139 if not torch.cuda.is_available():
140 return False
141 compute_capability = torch.cuda.get_device_capability(0)
142 major, minor = compute_capability
143 return (major == 8 and minor == 9) or (major >= 9)
144
145
146def is_sm_greater_than_90():

Callers 8

build_video_pageFunction · 0.90
sort_model_choicesFunction · 0.90
detect_quant_schemeFunction · 0.90
build_image_pageFunction · 0.90

Calls 1

is_availableMethod · 0.45

Tested by

no test coverage detected