Guest User

attention check

a guest
Dec 11th, 2025
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. import sys
  2. try:
  3. import torch, torchvision, torchaudio
  4. except ImportError:
  5. print("Warning: Torch/Vision/Audio not fully installed yet.")
  6.  
  7. print("Python:", sys.version)
  8. if 'torch' in sys.modules:
  9. print("Torch:", torch.__version__)
  10. print("CUDA available:", torch.cuda.is_available())
  11. print("Torch CUDA version:", torch.version.cuda)
  12.  
  13. try:
  14. import triton
  15. print("Triton:", triton.__version__)
  16. except:
  17. print("Triton: Not installed")
  18.  
  19. try:
  20. import flash_attn
  21. print("Flash-Attn: Installed")
  22. except:
  23. print("Flash-Attn: Not installed")
  24.  
  25. try:
  26. import sageattention
  27. print("SageAttention: Installed")
  28. except:
  29. print("SageAttention: Not installed")
  30.  
  31.  
Advertisement
Add Comment
Please, Sign In to add comment