From ae41366d01b777c905c247f9b056434331afe4cb Mon Sep 17 00:00:00 2001 From: Jiacheng Huang Date: Sun, 9 Aug 2026 09:01:04 +0800 Subject: [PATCH] refactor(ops): name Infinilm replacements --- src/base/conv_infinilm.h | 7 +++---- src/base/paged_attention_infinilm.h | 7 +++---- src/base/paged_attention_prefill_infinilm.h | 7 +++---- src/base/paged_caching_infinilm.h | 9 ++++----- src/base/rearrange_infinilm.h | 8 +++----- src/base/top_k_top_p_sample_infinilm.h | 7 +++---- src/base/zeros_infinilm.h | 9 ++++----- 7 files changed, 23 insertions(+), 31 deletions(-) diff --git a/src/base/conv_infinilm.h b/src/base/conv_infinilm.h index 349f6b5d9..d93d36d74 100644 --- a/src/base/conv_infinilm.h +++ b/src/base/conv_infinilm.h @@ -10,10 +10,9 @@ namespace infini::ops { -/// \deprecated Migrate to an open-source-aligned operator when available. This -/// interface will be removed in a future release. -class [[deprecated( - "Migrate to an open-source-aligned operator when available.")]] ConvInfinilm +/// \deprecated Use `Convolution`. This interface will be removed in a future +/// release. +class [[deprecated("Use `Convolution` instead.")]] ConvInfinilm : public Operator { public: ConvInfinilm(const Tensor input, const Tensor weight, diff --git a/src/base/paged_attention_infinilm.h b/src/base/paged_attention_infinilm.h index 87624edec..254649d62 100644 --- a/src/base/paged_attention_infinilm.h +++ b/src/base/paged_attention_infinilm.h @@ -11,10 +11,9 @@ namespace infini::ops { -/// \deprecated Migrate to an open-source-aligned operator when available. This -/// interface will be removed in a future release. -class [[deprecated( - "Migrate to an open-source-aligned operator when available.")]] +/// \deprecated Use `FlashAttnWithKvcache`. This interface will be removed in a +/// future release. +class [[deprecated("Use `FlashAttnWithKvcache` instead.")]] PagedAttentionInfinilm : public Operator { public: PagedAttentionInfinilm(const Tensor q, const Tensor k_cache, diff --git a/src/base/paged_attention_prefill_infinilm.h b/src/base/paged_attention_prefill_infinilm.h index 42feab47f..59f783f53 100644 --- a/src/base/paged_attention_prefill_infinilm.h +++ b/src/base/paged_attention_prefill_infinilm.h @@ -11,10 +11,9 @@ namespace infini::ops { -/// \deprecated Migrate to an open-source-aligned operator when available. This -/// interface will be removed in a future release. -class [[deprecated( - "Migrate to an open-source-aligned operator when available.")]] +/// \deprecated Use `FlashAttnVarlenFunc`. This interface will be removed in a +/// future release. +class [[deprecated("Use `FlashAttnVarlenFunc` instead.")]] PagedAttentionPrefillInfinilm : public Operator { public: PagedAttentionPrefillInfinilm(const Tensor q, const Tensor k_cache, diff --git a/src/base/paged_caching_infinilm.h b/src/base/paged_caching_infinilm.h index 43d60b6e1..eb2d8e18b 100644 --- a/src/base/paged_caching_infinilm.h +++ b/src/base/paged_caching_infinilm.h @@ -10,11 +10,10 @@ namespace infini::ops { -/// \deprecated Migrate to an open-source-aligned operator when available. This -/// interface will be removed in a future release. -class [[deprecated( - "Migrate to an open-source-aligned operator when available.")]] -PagedCachingInfinilm : public Operator { +/// \deprecated Use `ReshapeAndCacheFlash`. This interface will be removed in a +/// future release. +class [[deprecated("Use `ReshapeAndCacheFlash` instead.")]] PagedCachingInfinilm + : public Operator { public: PagedCachingInfinilm(const Tensor k, const Tensor v, const Tensor slot_mapping, Tensor k_cache, diff --git a/src/base/rearrange_infinilm.h b/src/base/rearrange_infinilm.h index e151a5e82..d39c28b98 100644 --- a/src/base/rearrange_infinilm.h +++ b/src/base/rearrange_infinilm.h @@ -7,11 +7,9 @@ namespace infini::ops { -/// \deprecated Migrate to an open-source-aligned operator when available. This -/// interface will be removed in a future release. -class [[deprecated( - "Migrate to an open-source-aligned operator when available.")]] -RearrangeInfinilm : public Operator { +/// \deprecated Use `Copy`. This interface will be removed in a future release. +class [[deprecated("Use `Copy` instead.")]] RearrangeInfinilm + : public Operator { public: RearrangeInfinilm(const Tensor input, Tensor out) : input_shape_{input.shape()}, diff --git a/src/base/top_k_top_p_sample_infinilm.h b/src/base/top_k_top_p_sample_infinilm.h index 66ec49281..2057c7c37 100644 --- a/src/base/top_k_top_p_sample_infinilm.h +++ b/src/base/top_k_top_p_sample_infinilm.h @@ -11,10 +11,9 @@ namespace infini::ops { -/// \deprecated Migrate to an open-source-aligned operator when available. This -/// interface will be removed in a future release. -class [[deprecated( - "Migrate to an open-source-aligned operator when available.")]] +/// \deprecated Use `TopKTopPSamplingFromLogits`. This interface will be removed +/// in a future release. +class [[deprecated("Use `TopKTopPSamplingFromLogits` instead.")]] TopKTopPSampleInfinilm : public Operator { public: TopKTopPSampleInfinilm(const Tensor logits, std::optional k, diff --git a/src/base/zeros_infinilm.h b/src/base/zeros_infinilm.h index e2f3a24e0..f8002afbd 100644 --- a/src/base/zeros_infinilm.h +++ b/src/base/zeros_infinilm.h @@ -7,11 +7,10 @@ namespace infini::ops { -/// \deprecated Migrate to an open-source-aligned operator when available. This -/// interface will be removed in a future release. -class [[deprecated( - "Migrate to an open-source-aligned operator when available.")]] -ZerosInfinilm : public Operator { +/// \deprecated Use `Fill` with a value of zero. This interface will be removed +/// in a future release. +class [[deprecated("Use `Fill` with a value of zero instead.")]] ZerosInfinilm + : public Operator { public: ZerosInfinilm(const Tensor input, Tensor out) : input_shape_{input.shape()},