Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
text-generation-inference
Commits
9946165e
Unverified
Commit
9946165e
authored
Feb 16, 2024
by
OlivierDehaene
Committed by
GitHub
Feb 16, 2024
Browse files
chore: add pre-commit (#1569)
parent
142cdabe
Changes
78
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
34 additions
and
36 deletions
+34
-36
server/Makefile-flash-att
server/Makefile-flash-att
+1
-1
server/Makefile-selective-scan
server/Makefile-selective-scan
+3
-3
server/README.md
server/README.md
+1
-1
server/custom_kernels/custom_kernels/fused_bloom_attention_cuda.cu
...stom_kernels/custom_kernels/fused_bloom_attention_cuda.cu
+1
-1
server/exllama_kernels/exllama_kernels/cuda_func/column_remap.cuh
...xllama_kernels/exllama_kernels/cuda_func/column_remap.cuh
+1
-1
server/exllama_kernels/exllama_kernels/cuda_func/q4_matrix.cuh
...r/exllama_kernels/exllama_kernels/cuda_func/q4_matrix.cuh
+1
-1
server/exllama_kernels/exllama_kernels/hip_compat.cuh
server/exllama_kernels/exllama_kernels/hip_compat.cuh
+1
-1
server/exllamav2_kernels/exllamav2_kernels/cuda/matrix_view.cuh
.../exllamav2_kernels/exllamav2_kernels/cuda/matrix_view.cuh
+1
-1
server/exllamav2_kernels/exllamav2_kernels/cuda/q_gemm.cuh
server/exllamav2_kernels/exllamav2_kernels/cuda/q_gemm.cuh
+1
-1
server/exllamav2_kernels/exllamav2_kernels/cuda/quant/qdq_2.cuh
.../exllamav2_kernels/exllamav2_kernels/cuda/quant/qdq_2.cuh
+1
-1
server/exllamav2_kernels/exllamav2_kernels/cuda/quant/qdq_4.cuh
.../exllamav2_kernels/exllamav2_kernels/cuda/quant/qdq_4.cuh
+1
-1
server/exllamav2_kernels/exllamav2_kernels/cuda/quant/qdq_5.cuh
.../exllamav2_kernels/exllamav2_kernels/cuda/quant/qdq_5.cuh
+1
-1
server/exllamav2_kernels/exllamav2_kernels/cuda/quant/qdq_6.cuh
.../exllamav2_kernels/exllamav2_kernels/cuda/quant/qdq_6.cuh
+0
-2
server/exllamav2_kernels/exllamav2_kernels/cuda/quant/qdq_8.cuh
.../exllamav2_kernels/exllamav2_kernels/cuda/quant/qdq_8.cuh
+1
-1
server/exllamav2_kernels/exllamav2_kernels/cuda/util.cuh
server/exllamav2_kernels/exllamav2_kernels/cuda/util.cuh
+1
-1
server/text_generation_server/models/custom_modeling/flash_llama_modeling.py
...ion_server/models/custom_modeling/flash_llama_modeling.py
+3
-3
server/text_generation_server/models/custom_modeling/flash_mistral_modeling.py
...n_server/models/custom_modeling/flash_mistral_modeling.py
+3
-3
server/text_generation_server/models/custom_modeling/flash_mixtral_modeling.py
...n_server/models/custom_modeling/flash_mixtral_modeling.py
+6
-6
server/text_generation_server/models/custom_modeling/flash_neox_modeling.py
...tion_server/models/custom_modeling/flash_neox_modeling.py
+3
-3
server/text_generation_server/models/custom_modeling/flash_phi_modeling.py
...ation_server/models/custom_modeling/flash_phi_modeling.py
+3
-3
No files found.
server/Makefile-flash-att
View file @
9946165e
server/Makefile-selective-scan
View file @
9946165e
server/README.md
View file @
9946165e
server/custom_kernels/custom_kernels/fused_bloom_attention_cuda.cu
View file @
9946165e
server/exllama_kernels/exllama_kernels/cuda_func/column_remap.cuh
View file @
9946165e
server/exllama_kernels/exllama_kernels/cuda_func/q4_matrix.cuh
View file @
9946165e
server/exllama_kernels/exllama_kernels/hip_compat.cuh
View file @
9946165e
server/exllamav2_kernels/exllamav2_kernels/cuda/matrix_view.cuh
View file @
9946165e
server/exllamav2_kernels/exllamav2_kernels/cuda/q_gemm.cuh
View file @
9946165e
server/exllamav2_kernels/exllamav2_kernels/cuda/quant/qdq_2.cuh
View file @
9946165e
server/exllamav2_kernels/exllamav2_kernels/cuda/quant/qdq_4.cuh
View file @
9946165e
server/exllamav2_kernels/exllamav2_kernels/cuda/quant/qdq_5.cuh
View file @
9946165e
server/exllamav2_kernels/exllamav2_kernels/cuda/quant/qdq_6.cuh
View file @
9946165e
...
@@ -40,5 +40,3 @@ __forceinline__ __device__ void dequant_6bit_16
...
@@ -40,5 +40,3 @@ __forceinline__ __device__ void dequant_6bit_16
#endif
#endif
#endif
#endif
server/exllamav2_kernels/exllamav2_kernels/cuda/quant/qdq_8.cuh
View file @
9946165e
server/exllamav2_kernels/exllamav2_kernels/cuda/util.cuh
View file @
9946165e
server/text_generation_server/models/custom_modeling/flash_llama_modeling.py
View file @
9946165e
...
@@ -251,9 +251,9 @@ class LlamaMLP(nn.Module):
...
@@ -251,9 +251,9 @@ class LlamaMLP(nn.Module):
if
"gelu"
not
in
act
if
"gelu"
not
in
act
else
lambda
x
:
torch
.
nn
.
functional
.
gelu
(
else
lambda
x
:
torch
.
nn
.
functional
.
gelu
(
x
,
x
,
approximate
=
"tanh"
approximate
=
(
if
act
in
[
"gelu_fast"
,
"gelu_pytorch_tanh"
]
"tanh"
if
act
in
[
"gelu_fast"
,
"gelu_pytorch_tanh"
]
else
"none"
else
"none"
,
)
,
)
)
)
)
# Fuse gate and up proj
# Fuse gate and up proj
...
...
server/text_generation_server/models/custom_modeling/flash_mistral_modeling.py
View file @
9946165e
...
@@ -255,9 +255,9 @@ class MistralMLP(nn.Module):
...
@@ -255,9 +255,9 @@ class MistralMLP(nn.Module):
if
"gelu"
not
in
act
if
"gelu"
not
in
act
else
lambda
x
:
torch
.
nn
.
functional
.
gelu
(
else
lambda
x
:
torch
.
nn
.
functional
.
gelu
(
x
,
x
,
approximate
=
"tanh"
approximate
=
(
if
act
in
[
"gelu_fast"
,
"gelu_pytorch_tanh"
]
"tanh"
if
act
in
[
"gelu_fast"
,
"gelu_pytorch_tanh"
]
else
"none"
else
"none"
,
)
,
)
)
)
)
# Fuse gate and up proj
# Fuse gate and up proj
...
...
server/text_generation_server/models/custom_modeling/flash_mixtral_modeling.py
View file @
9946165e
...
@@ -344,9 +344,9 @@ class BlockSparseMoE(nn.Module):
...
@@ -344,9 +344,9 @@ class BlockSparseMoE(nn.Module):
if
"gelu"
in
act
:
if
"gelu"
in
act
:
self
.
act
=
lambda
x
:
torch
.
nn
.
functional
.
gelu
(
self
.
act
=
lambda
x
:
torch
.
nn
.
functional
.
gelu
(
x
,
x
,
approximate
=
"tanh"
approximate
=
(
if
act
in
[
"gelu_fast"
,
"gelu_pytorch_tanh"
]
"tanh"
if
act
in
[
"gelu_fast"
,
"gelu_pytorch_tanh"
]
else
"none"
else
"none"
,
)
,
)
)
elif
"silu"
in
act
:
elif
"silu"
in
act
:
self
.
act
=
torch
.
nn
.
functional
.
silu
self
.
act
=
torch
.
nn
.
functional
.
silu
...
@@ -600,9 +600,9 @@ class DenseMoE(nn.Module):
...
@@ -600,9 +600,9 @@ class DenseMoE(nn.Module):
if
"gelu"
in
act
:
if
"gelu"
in
act
:
self
.
act
=
lambda
x
:
torch
.
nn
.
functional
.
gelu
(
self
.
act
=
lambda
x
:
torch
.
nn
.
functional
.
gelu
(
x
,
x
,
approximate
=
"tanh"
approximate
=
(
if
act
in
[
"gelu_fast"
,
"gelu_pytorch_tanh"
]
"tanh"
if
act
in
[
"gelu_fast"
,
"gelu_pytorch_tanh"
]
else
"none"
else
"none"
,
)
,
)
)
elif
"silu"
in
act
:
elif
"silu"
in
act
:
self
.
act
=
torch
.
nn
.
functional
.
silu
self
.
act
=
torch
.
nn
.
functional
.
silu
...
...
server/text_generation_server/models/custom_modeling/flash_neox_modeling.py
View file @
9946165e
...
@@ -187,9 +187,9 @@ class FlashMLP(nn.Module):
...
@@ -187,9 +187,9 @@ class FlashMLP(nn.Module):
if
"gelu"
not
in
act
if
"gelu"
not
in
act
else
lambda
x
:
torch
.
nn
.
functional
.
gelu
(
else
lambda
x
:
torch
.
nn
.
functional
.
gelu
(
x
,
x
,
approximate
=
"tanh"
approximate
=
(
if
act
in
[
"gelu_fast"
,
"gelu_pytorch_tanh"
]
"tanh"
if
act
in
[
"gelu_fast"
,
"gelu_pytorch_tanh"
]
else
"none"
else
"none"
,
)
,
)
)
)
)
...
...
server/text_generation_server/models/custom_modeling/flash_phi_modeling.py
View file @
9946165e
...
@@ -225,9 +225,9 @@ class PhiMLP(nn.Module):
...
@@ -225,9 +225,9 @@ class PhiMLP(nn.Module):
if
"gelu"
not
in
act
if
"gelu"
not
in
act
else
lambda
x
:
torch
.
nn
.
functional
.
gelu
(
else
lambda
x
:
torch
.
nn
.
functional
.
gelu
(
x
,
x
,
approximate
=
"tanh"
approximate
=
(
if
act
in
[
"gelu_fast"
,
"gelu_pytorch_tanh"
]
"tanh"
if
act
in
[
"gelu_fast"
,
"gelu_pytorch_tanh"
]
else
"none"
else
"none"
,
)
,
)
)
)
)
...
...
Prev
1
2
3
4
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment