Rate This Document
Findability
Accuracy
Completeness
Readability

Development Verification

Run the following command to perform the verification.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
python3 - <<'PY'
import sglang 
import sgl_kernel 
import torch  

print("sglang_version=" + getattr(sglang, "__version__", "unknown")) 
print("sgl_kernel_import=ok") 
print("torch_cuda=" + str(torch.version.cuda)) 
print("cuda_built=" + str(torch.backends.cuda.is_built())) 
print("cuda_available=" + str(torch.cuda.is_available())) 
assert getattr(sglang, "__version__", "") == "0.5.10"
assert torch.backends.cuda.is_built() 
assert torch.cuda.is_available() 
PY

The expected output is as follows.

1
2
3
4
5
sglang_version=0.5.10 
sgl_kernel_import=ok 
torch_cuda=13.0 
cuda_built=True 
cuda_available=True