Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
perfect ut
Browse files Browse the repository at this point in the history
  • Loading branch information
zhewang1-intc committed Jan 18, 2024
1 parent e2eec50 commit 757d136
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion bestla/bestla/bestla_prologue_b.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ class WeightKBlockNInteger {
}

void setDoubleQuantCorrection(utils::avector<float>* dq_buf, StorageWeight* ptr) {
// TODO(zhe): parallel data_cpy.
if (ptr->SDtype() == BTLA_DTYPE::DQ8_BNB) {
auto packw_dqbuf_ptr = ptr->DQPtr<float>();
memcpy(packw_dqbuf_ptr, dq_buf->data(), dq_buf->size() * sizeof(float));
Expand Down
2 changes: 2 additions & 0 deletions bestla/bestla/bestla_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ inline const char* bestla_dtype_str(BTLA_DTYPE dtype) {
return "fp8_e5m2";
case BTLA_DTYPE::F8_E3M4:
return "fp8_e3m4";
case BTLA_DTYPE::F8_E8M0:
return "fp8_e8m0";
case BTLA_DTYPE::S8:
return "signed_int8";
case BTLA_DTYPE::U8:
Expand Down
2 changes: 1 addition & 1 deletion bestla/bestla/ut/bestla_ut.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static int8_t cache[CacheSize];
#define FP16_ERR 0.001f
#define BF16_ERR 0.02f
#define INT8_ERR 0.2f
#define F8_ERR 1.4f
#define F8_ERR 1.5f
#define INT4_ERR 3.f
#define FP4_ERR 3.f

Expand Down

0 comments on commit 757d136

Please sign in to comment.