Create model.py

This commit is contained in:
Janson Lau 2025-07-27 23:34:37 +08:00 committed by GitHub
parent b265f3795c
commit 292b8a34d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

10
inference/model.py Normal file
View File

@ -0,0 +1,10 @@
import math
from dataclasses import dataclass
from typing import Tuple, Optional, Literal
import torch
from torch import nn
import torch.nn.functional as F
import torch.distributed as dist
from kernel import act_quant, weight_dequant, fp8_gemm