From a408c5cd8e3ac8de70615263e8620264a2c5c48f Mon Sep 17 00:00:00 2001 From: Ed Addario Date: Tue, 10 Mar 2026 18:43:58 +0000 Subject: [PATCH] Restore comment and cleanup struct def --- include/llama.h | 8 ++++---- tools/quantize/quantize.cpp | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/llama.h b/include/llama.h index 19226028f4..8a1f231f0c 100644 --- a/include/llama.h +++ b/include/llama.h @@ -379,16 +379,16 @@ extern "C" { size_t n_samplers; }; - typedef struct llama_model_tensor_override { + struct llama_model_tensor_override { const char * pattern; enum ggml_type type; - } llama_model_tensor_override; + }; - typedef struct llama_imatrix_data { + struct llama_imatrix_data { const char * name; const float * data; size_t size; - } llama_imatrix_data; + }; // model quantization parameters typedef struct llama_model_quantize_params { diff --git a/tools/quantize/quantize.cpp b/tools/quantize/quantize.cpp index 1e02b30658..eb2d70d02a 100644 --- a/tools/quantize/quantize.cpp +++ b/tools/quantize/quantize.cpp @@ -15,6 +15,7 @@ #include #include +// result of parsing --tensor-type option // changes to this struct must also be reflected in src/llama-quant.cpp struct tensor_type_option { std::string name;