Skip to content

Commit fecc472

Browse files
committed
Fix typos in variable names
1 parent e92db00 commit fecc472

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/llama-quant.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ static std::unordered_map<std::string, ggml_type> target_bpw_type(
11651165
// Evaluate candidates
11661166
std::vector<candidate_types> eval_candidates(compatible_candidates.size());
11671167
std::vector<uint8_t> quantized_buffer(max_row_sz * total_sampled_rows);
1168-
std::vector<float> dequantised_buffer(f32_sample.size());
1168+
std::vector<float> dequantized_buffer(f32_sample.size());
11691169
const float * slice_lambda = lambdas.empty() ? nullptr : lambdas.data();
11701170
int n_eval_threads = std::max(1, std::min<int>(nthread, (int)compatible_candidates.size()));
11711171
std::atomic<size_t> cidx{0};
@@ -1175,7 +1175,7 @@ static std::unordered_map<std::string, ggml_type> target_bpw_type(
11751175
eval_workers.emplace_back([&] {
11761176
// thread-local scratch
11771177
std::vector<uint8_t> tl_quantized_buffer(quantized_buffer.size());
1178-
std::vector<float> tl_dequantised_buffer(dequantised_buffer.size());
1178+
std::vector<float> tl_dequantized_buffer(dequantized_buffer.size());
11791179
for (;;) {
11801180
const size_t i = cidx.fetch_add(1, std::memory_order_relaxed);
11811181
if (i >= compatible_candidates.size()) { break; }
@@ -1184,7 +1184,7 @@ static std::unordered_map<std::string, ggml_type> target_bpw_type(
11841184
const auto bpw = (float)tensor_bpw(tensor, tensor_types);
11851185
const size_t bytes = tensor_bytes(tensor, tensor_types);
11861186
const auto err = estimate_error(tensor, tensor_types, f32_sample, rows_sample, values, activations,
1187-
tl_quantized_buffer, tl_dequantised_buffer, tensor_lambda, slice_lambda);
1187+
tl_quantized_buffer, tl_dequantized_buffer, tensor_lambda, slice_lambda);
11881188
eval_candidates[i] = candidate_types{ tensor_types, bpw, bytes, err };
11891189
}
11901190
});

0 commit comments

Comments
 (0)