-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
383 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/turbomind/kernels/attention/codegen/attention_sm70_64_f16.cu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) OpenMMLab. All rights reserved. | ||
|
||
#include "../attention_config.h" | ||
#include "../attention_template.h" | ||
|
||
namespace turbomind { | ||
|
||
using namespace attention; | ||
|
||
template void invokeAttention<typename AttentionConfig<arch::Sm70, half, 64, CacheType::kLinear>::Kernel>( | ||
const AttentionParams<half>& params); | ||
|
||
template void invokeAttention<typename AttentionConfig<arch::Sm70, half, 64, CacheType::kBlock>::Kernel>( | ||
const AttentionParams<half>& params); | ||
|
||
} // namespace turbomind |
17 changes: 17 additions & 0 deletions
17
src/turbomind/kernels/attention/codegen/attention_sm75_64_f16.cu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) OpenMMLab. All rights reserved. | ||
|
||
#include "../attention_config.h" | ||
#include "../attention_template.h" | ||
|
||
namespace turbomind { | ||
|
||
using namespace attention; | ||
|
||
template void invokeAttention<typename AttentionConfig<arch::Sm75, half, 64, CacheType::kLinear>::Kernel>( | ||
const AttentionParams<half>& params); | ||
|
||
// ! register spill | ||
// template void invokeAttention<typename AttentionConfig<arch::Sm75, half, 64, CacheType::kBlock>::Kernel>( | ||
// const AttentionParams<half>& params); | ||
|
||
} // namespace turbomind |
16 changes: 16 additions & 0 deletions
16
src/turbomind/kernels/attention/codegen/attention_sm80_64_bf16.cu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) OpenMMLab. All rights reserved. | ||
|
||
#include "../attention_config.h" | ||
#include "../attention_template.h" | ||
|
||
namespace turbomind { | ||
|
||
using namespace attention; | ||
|
||
template void invokeAttention<typename AttentionConfig<arch::Sm80, nv_bfloat16, 64, CacheType::kLinear>::Kernel>( | ||
const AttentionParams<nv_bfloat16>& params); | ||
|
||
template void invokeAttention<typename AttentionConfig<arch::Sm80, nv_bfloat16, 64, CacheType::kBlock>::Kernel>( | ||
const AttentionParams<nv_bfloat16>& params); | ||
|
||
} // namespace turbomind |
16 changes: 16 additions & 0 deletions
16
src/turbomind/kernels/attention/codegen/attention_sm80_64_f16.cu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) OpenMMLab. All rights reserved. | ||
|
||
#include "../attention_config.h" | ||
#include "../attention_template.h" | ||
|
||
namespace turbomind { | ||
|
||
using namespace attention; | ||
|
||
template void invokeAttention<typename AttentionConfig<arch::Sm80, half, 64, CacheType::kLinear>::Kernel>( | ||
const AttentionParams<half>& params); | ||
|
||
template void invokeAttention<typename AttentionConfig<arch::Sm80, half, 64, CacheType::kBlock>::Kernel>( | ||
const AttentionParams<half>& params); | ||
|
||
} // namespace turbomind |
16 changes: 16 additions & 0 deletions
16
src/turbomind/kernels/attention/codegen/decoding_sm70_64_f16_f16.cu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) OpenMMLab. All rights reserved. | ||
|
||
#include "../decoding_config.h" | ||
#include "../decoding_template.h" | ||
|
||
namespace turbomind { | ||
|
||
using namespace attention; | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm70, half, half, 1, 64>>(const AttentionParams<half>& params); | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm70, half, half, 2, 64>>(const AttentionParams<half>& params); | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm70, half, half, 3, 64>>(const AttentionParams<half>& params); | ||
|
||
} // namespace turbomind |
17 changes: 17 additions & 0 deletions
17
src/turbomind/kernels/attention/codegen/decoding_sm70_64_f16_u4.cu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) OpenMMLab. All rights reserved. | ||
|
||
#include "../attention_params.h" | ||
#include "../decoding_config.h" | ||
#include "../decoding_template.h" | ||
|
||
namespace turbomind { | ||
|
||
using namespace attention; | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm70, half, uint4_t, 1, 64>>(const AttentionParams<half>& params); | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm70, half, uint4_t, 2, 64>>(const AttentionParams<half>& params); | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm70, half, uint4_t, 3, 64>>(const AttentionParams<half>& params); | ||
|
||
} // namespace turbomind |
17 changes: 17 additions & 0 deletions
17
src/turbomind/kernels/attention/codegen/decoding_sm70_64_f16_u8.cu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) OpenMMLab. All rights reserved. | ||
|
||
#include "../attention_params.h" | ||
#include "../decoding_config.h" | ||
#include "../decoding_template.h" | ||
|
||
namespace turbomind { | ||
|
||
using namespace attention; | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm70, half, uint8_t, 1, 64>>(const AttentionParams<half>& params); | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm70, half, uint8_t, 2, 64>>(const AttentionParams<half>& params); | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm70, half, uint8_t, 3, 64>>(const AttentionParams<half>& params); | ||
|
||
} // namespace turbomind |
14 changes: 14 additions & 0 deletions
14
src/turbomind/kernels/attention/codegen/decoding_sm75_64_f16_f16.cu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) OpenMMLab. All rights reserved. | ||
|
||
#include "../decoding_config.h" | ||
#include "../decoding_template.h" | ||
|
||
namespace turbomind { | ||
|
||
using namespace attention; | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm75, half, half, 8, 64>>(const AttentionParams<half>& params); | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm75, half, half, 16, 64>>(const AttentionParams<half>& params); | ||
|
||
} // namespace turbomind |
14 changes: 14 additions & 0 deletions
14
src/turbomind/kernels/attention/codegen/decoding_sm75_64_f16_u4.cu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) OpenMMLab. All rights reserved. | ||
|
||
#include "../decoding_config.h" | ||
#include "../decoding_template.h" | ||
|
||
namespace turbomind { | ||
|
||
using namespace attention; | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm75, half, uint4_t, 8, 64>>(const AttentionParams<half>& params); | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm75, half, uint4_t, 16, 64>>(const AttentionParams<half>& params); | ||
|
||
} // namespace turbomind |
14 changes: 14 additions & 0 deletions
14
src/turbomind/kernels/attention/codegen/decoding_sm75_64_f16_u8.cu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) OpenMMLab. All rights reserved. | ||
|
||
#include "../decoding_config.h" | ||
#include "../decoding_template.h" | ||
|
||
namespace turbomind { | ||
|
||
using namespace attention; | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm75, half, uint8_t, 8, 64>>(const AttentionParams<half>& params); | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm75, half, uint8_t, 16, 64>>(const AttentionParams<half>& params); | ||
|
||
} // namespace turbomind |
22 changes: 22 additions & 0 deletions
22
src/turbomind/kernels/attention/codegen/decoding_sm80_64_bf16_bf16.cu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) OpenMMLab. All rights reserved. | ||
|
||
#include "../decoding_config.h" | ||
#include "../decoding_template.h" | ||
|
||
namespace turbomind { | ||
|
||
using namespace attention; | ||
|
||
template bool | ||
invokeDecoding<Decoding<arch::Sm80, nv_bfloat16, nv_bfloat16, 1, 64>>(const AttentionParams<nv_bfloat16>& params); | ||
|
||
template bool | ||
invokeDecoding<Decoding<arch::Sm80, nv_bfloat16, nv_bfloat16, 2, 64>>(const AttentionParams<nv_bfloat16>& params); | ||
|
||
template bool | ||
invokeDecoding<Decoding<arch::Sm80, nv_bfloat16, nv_bfloat16, 8, 64>>(const AttentionParams<nv_bfloat16>& params); | ||
|
||
template bool | ||
invokeDecoding<Decoding<arch::Sm80, nv_bfloat16, nv_bfloat16, 16, 64>>(const AttentionParams<nv_bfloat16>& params); | ||
|
||
} // namespace turbomind |
14 changes: 14 additions & 0 deletions
14
src/turbomind/kernels/attention/codegen/decoding_sm80_64_bf16_u4.cu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) OpenMMLab. All rights reserved. | ||
|
||
#include "../decoding_config.h" | ||
#include "../decoding_template.h" | ||
|
||
namespace turbomind { | ||
|
||
using namespace attention; | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm80, nv_bfloat16, uint4_t, 8, 64>>(const AttentionParams<nv_bfloat16>&); | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm80, nv_bfloat16, uint4_t, 16, 64>>(const AttentionParams<nv_bfloat16>&); | ||
|
||
} // namespace turbomind |
14 changes: 14 additions & 0 deletions
14
src/turbomind/kernels/attention/codegen/decoding_sm80_64_bf16_u8.cu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) OpenMMLab. All rights reserved. | ||
|
||
#include "../decoding_config.h" | ||
#include "../decoding_template.h" | ||
|
||
namespace turbomind { | ||
|
||
using namespace attention; | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm80, nv_bfloat16, uint8_t, 8, 64>>(const AttentionParams<nv_bfloat16>&); | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm80, nv_bfloat16, uint8_t, 16, 64>>(const AttentionParams<nv_bfloat16>&); | ||
|
||
} // namespace turbomind |
18 changes: 18 additions & 0 deletions
18
src/turbomind/kernels/attention/codegen/decoding_sm80_64_f16_f16.cu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) OpenMMLab. All rights reserved. | ||
|
||
#include "../decoding_config.h" | ||
#include "../decoding_template.h" | ||
|
||
namespace turbomind { | ||
|
||
using namespace attention; | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm80, half, half, 1, 64>>(const AttentionParams<half>& params); | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm80, half, half, 2, 64>>(const AttentionParams<half>& params); | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm80, half, half, 8, 64>>(const AttentionParams<half>& params); | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm80, half, half, 16, 64>>(const AttentionParams<half>& params); | ||
|
||
} // namespace turbomind |
14 changes: 14 additions & 0 deletions
14
src/turbomind/kernels/attention/codegen/decoding_sm80_64_f16_u4.cu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) OpenMMLab. All rights reserved. | ||
|
||
#include "../decoding_config.h" | ||
#include "../decoding_template.h" | ||
|
||
namespace turbomind { | ||
|
||
using namespace attention; | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm80, half, uint4_t, 8, 64>>(const AttentionParams<half>&); | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm80, half, uint4_t, 16, 64>>(const AttentionParams<half>&); | ||
|
||
} // namespace turbomind |
14 changes: 14 additions & 0 deletions
14
src/turbomind/kernels/attention/codegen/decoding_sm80_64_f16_u8.cu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) OpenMMLab. All rights reserved. | ||
|
||
#include "../decoding_config.h" | ||
#include "../decoding_template.h" | ||
|
||
namespace turbomind { | ||
|
||
using namespace attention; | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm80, half, uint8_t, 8, 64>>(const AttentionParams<half>&); | ||
|
||
template bool invokeDecoding<Decoding<arch::Sm80, half, uint8_t, 16, 64>>(const AttentionParams<half>&); | ||
|
||
} // namespace turbomind |
Oops, something went wrong.