mirror of
https://github.com/FlashML-org/FreeToken.git
synced 2026-11-24 03:35:47 +08:00
* feat: add simple ROCm GPU support for RDNA3 (gfx1100-1103) - Add hip_compat.h shim mapping CUDA runtime API to HIP equivalents - Update pinned_tensor.cpp to compile under both nvcc and hipcc - Add ROCm detection in arch.py (is_rocm, get_rocm_gfx_arch, is_gfx11xx_family) - Guard NVIDIA arch checks to return None on ROCm - Skip nvcc version check in _toolchain.py when on ROCm - Add ROCm build path in setup.py (ROCM_HOME, amdhip64, --offload-arch) - Add _hip_cflags() in kernel/utils.py for JIT compilation on ROCm - Add is_rocm() and driver_hip_version() in backend.py - Add rocm-smi fallback in __main__.py for clangd generation - Add TODO(ROCm) for NCCL->RCCL, flashinfer/sgl_kernel ROCm builds, Triton autotune RDNA3 tuning, PDL equivalent, hiprtc JIT cache - Add AMD ROCm classifier in pyproject.toml * fix(rocm): fall back for single-bank fast index copy * test(rocm): cover fast index copy fallback * test(rocm): use explicit fast copy module import * fix(rocm): complete RDNA3 runtime path * fix(rocm): preserve CPU MoE implementation * build(rocm): support RDNA4 discovery and modular SDKs * fix(rocm): complete modular SDK runtime support * test(rocm): harden foundation platform contracts * fix(rocm): pin jit target and split install guide * perf(kernel): restore ROCm non-temporal index copy --------- Co-authored-by: bouclem <bouclement2012@gmail.com> Co-authored-by: Yuu <206304251+nekomario28@users.noreply.github.com> Co-authored-by: LZ-QWQ <lz1830837889@163.com>
64 lines
1.3 KiB
Python
64 lines
1.3 KiB
Python
from .arch import (
|
|
is_arch_supported,
|
|
is_rocm,
|
|
get_rocm_gfx_arch,
|
|
is_sm90_family,
|
|
is_sm90_supported,
|
|
is_sm100_family,
|
|
is_sm100_supported,
|
|
)
|
|
from .hf import (
|
|
cached_load_hf_config,
|
|
download_hf_weight,
|
|
load_eos_token_ids,
|
|
load_generation_sampling,
|
|
load_tokenizer,
|
|
load_toolcall_anchor_id,
|
|
)
|
|
from .logger import init_logger
|
|
from .misc import UNSET, Unset, align_ceil, align_down, call_if_main, div_ceil, div_even, mem_GB
|
|
from .mp import (
|
|
ZmqAsyncPullQueue,
|
|
ZmqAsyncPushQueue,
|
|
ZmqPubQueue,
|
|
ZmqPullQueue,
|
|
ZmqPushQueue,
|
|
ZmqSubQueue,
|
|
)
|
|
from .registry import Registry
|
|
from .torch_utils import nvtx_annotate, torch_dtype
|
|
|
|
__all__ = [
|
|
"cached_load_hf_config",
|
|
"download_hf_weight",
|
|
"load_eos_token_ids",
|
|
"load_generation_sampling",
|
|
"load_tokenizer",
|
|
"load_toolcall_anchor_id",
|
|
"init_logger",
|
|
"is_arch_supported",
|
|
"is_rocm",
|
|
"get_rocm_gfx_arch",
|
|
"is_sm90_family",
|
|
"is_sm90_supported",
|
|
"is_sm100_family",
|
|
"is_sm100_supported",
|
|
"call_if_main",
|
|
"div_even",
|
|
"div_ceil",
|
|
"align_ceil",
|
|
"align_down",
|
|
"mem_GB",
|
|
"UNSET",
|
|
"Unset",
|
|
"torch_dtype",
|
|
"nvtx_annotate",
|
|
"Registry",
|
|
"ZmqPushQueue",
|
|
"ZmqPullQueue",
|
|
"ZmqPubQueue",
|
|
"ZmqSubQueue",
|
|
"ZmqAsyncPushQueue",
|
|
"ZmqAsyncPullQueue",
|
|
]
|