mirror of
https://github.com/deepseek-ai/DeepSeek-V3.git
synced 2025-07-05 16:01:35 -04:00
Merge a8b6b9184d
into f6e34dd267
This commit is contained in:
commit
50bf01cba8
@ -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
|
from typing import Tuple
|
||||||
|
|
||||||
import torch
|
try:
|
||||||
import triton
|
import torch
|
||||||
import triton.language as tl
|
except ImportError:
|
||||||
from triton import Config
|
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
|
@triton.jit
|
||||||
|
Loading…
Reference in New Issue
Block a user