From 7db144c288405de998f2b3e4db3c8c237fbbe43b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 00:19:44 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0) - [github.com/codespell-project/codespell: v2.2.6 → v2.3.0](https://github.com/codespell-project/codespell/compare/v2.2.6...v2.3.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5fd59bd11..0ea2c29f0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: debug-statements - id: file-contents-sorter @@ -38,7 +38,7 @@ repos: )$ - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell args: From a4874c887071774f76d3f2cf46b9a0cd934ac034 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 00:20:34 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- CODE_OF_CONDUCT.md | 2 +- bestla/bestla/kernel_jit.h | 4 ++-- neural_speed/core/ne_layers.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 58dba18db..2e7fbf7d6 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -5,7 +5,7 @@ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender -identity and expression, level of experience, education, socio-economic status, +identity and expression, level of experience, education, socioeconomic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation. diff --git a/bestla/bestla/kernel_jit.h b/bestla/bestla/kernel_jit.h index 3347f272f..b9c6ad7ac 100644 --- a/bestla/bestla/kernel_jit.h +++ b/bestla/bestla/kernel_jit.h @@ -1566,8 +1566,8 @@ class PaddingTransInterleaveCvt : protected xbyak::JitAvx512f { // Complex number matrix(interleaved) - vector(as diagonal matrix) multiplication; Typically used for // shift-RoPE // -// vector: fp16 values; view every adjacent 2 values on colunm as a complex num -// src: bf16 ⌈row/row_pack⌉ x n_tile x row_pack; view every adjacent 2 values on colunm as a complex num +// vector: fp16 values; view every adjacent 2 values on column as a complex num +// src: bf16 ⌈row/row_pack⌉ x n_tile x row_pack; view every adjacent 2 values on column as a complex num // dst: same as src class CScaleInterleavedBF16FP16 : protected xbyak::JitAvx512_fp16 { public: diff --git a/neural_speed/core/ne_layers.c b/neural_speed/core/ne_layers.c index 278ec50c7..73889971e 100644 --- a/neural_speed/core/ne_layers.c +++ b/neural_speed/core/ne_layers.c @@ -685,7 +685,7 @@ static inline bool ne_are_same_shape(const struct ne_tensor* t0, const struct ne return (t0->ne[0] == t1->ne[0]) && (t0->ne[1] == t1->ne[1]) && (t0->ne[2] == t1->ne[2]) && (t0->ne[3] == t1->ne[3]); } -// check if t1 can be represented as a repeatition of t0 +// check if t1 can be represented as a repetition of t0 static inline bool ne_can_repeat(const struct ne_tensor* t0, const struct ne_tensor* t1) { static_assert(NE_MAX_DIMS == 4, "NE_MAX_DIMS is not 4 - update this function");