remove trailing whitespace
This commit is contained in:
parent
0ede0f4434
commit
b91e3dd2ee
1 changed files with 2 additions and 2 deletions
|
@ -221,7 +221,7 @@ static struct lora_data * load_lora(struct lora_info * info) {
|
||||||
result->ctx = NULL;
|
result->ctx = NULL;
|
||||||
result->lora_r = 1;
|
result->lora_r = 1;
|
||||||
result->lora_alpha = 1;
|
result->lora_alpha = 1;
|
||||||
|
|
||||||
struct llama_file file(info->filename.c_str(), "rb");
|
struct llama_file file(info->filename.c_str(), "rb");
|
||||||
if (file.fp == NULL) {
|
if (file.fp == NULL) {
|
||||||
return result;
|
return result;
|
||||||
|
@ -403,7 +403,7 @@ static void export_lora(struct export_lora_params * params) {
|
||||||
for (int i=0; i < n_tensors; ++i) {
|
for (int i=0; i < n_tensors; ++i) {
|
||||||
const char * name = gguf_get_tensor_name(gguf_in, i);
|
const char * name = gguf_get_tensor_name(gguf_in, i);
|
||||||
struct ggml_tensor * tensor = ggml_get_tensor(ctx_in, name);
|
struct ggml_tensor * tensor = ggml_get_tensor(ctx_in, name);
|
||||||
|
|
||||||
// read tensor data
|
// read tensor data
|
||||||
data.resize(ggml_nbytes(tensor));
|
data.resize(ggml_nbytes(tensor));
|
||||||
tensor->data = data.data();
|
tensor->data = data.data();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue