Merge pull request #644 from hiyouga/fix-quantization_bit

fix quantization bit is ""
This commit is contained in:
hoshi-hiyouga 2023-08-23 10:45:45 +08:00 committed by GitHub
commit c562307476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ class Runner:
overwrite_cache=True, overwrite_cache=True,
checkpoint_dir=checkpoint_dir, checkpoint_dir=checkpoint_dir,
finetuning_type=finetuning_type, finetuning_type=finetuning_type,
quantization_bit=int(quantization_bit) if quantization_bit != "None" else None, quantization_bit=int(quantization_bit) if quantization_bit and quantization_bit != "None" else None,
template=template, template=template,
system_prompt=system_prompt, system_prompt=system_prompt,
dataset_dir=dataset_dir, dataset_dir=dataset_dir,
@ -196,7 +196,7 @@ class Runner:
predict_with_generate=True, predict_with_generate=True,
checkpoint_dir=checkpoint_dir, checkpoint_dir=checkpoint_dir,
finetuning_type=finetuning_type, finetuning_type=finetuning_type,
quantization_bit=int(quantization_bit) if quantization_bit != "None" else None, quantization_bit=int(quantization_bit) if quantization_bit and quantization_bit != "None" else None,
template=template, template=template,
system_prompt=system_prompt, system_prompt=system_prompt,
dataset_dir=dataset_dir, dataset_dir=dataset_dir,