mirror of
https://github.com/deepseek-ai/DeepSeek-V3.git
synced 2025-07-04 23:41:37 -04:00
Update kernel.py
This commit is contained in:
parent
4cc6253d5c
commit
a8b6b9184d
@ -1,9 +1,21 @@
|
||||
import sys
|
||||
import platform
|
||||
if platform.system() == "Windows":
|
||||
sys.exit("Triton is not supported on Windows. Please use Linux or a Linux-based Docker container.")
|
||||
|
||||
from typing import Tuple
|
||||
|
||||
import torch
|
||||
import triton
|
||||
import triton.language as tl
|
||||
from triton import Config
|
||||
try:
|
||||
import torch
|
||||
except ImportError:
|
||||
sys.exit("PyTorch is required for this project. Please install torch >=2.1.0.")
|
||||
|
||||
try:
|
||||
import triton
|
||||
import triton.language as tl
|
||||
from triton import Config
|
||||
except ImportError:
|
||||
sys.exit("Triton is required for this project. Please install it on a supported Linux system with CUDA.")
|
||||
|
||||
|
||||
@triton.jit
|
||||
|
Loading…
Reference in New Issue
Block a user