Former-commit-id: 6496a99b7d9a5aa57bfc8b935b274f1481580864
This commit is contained in:
hiyouga 2023-10-19 15:52:24 +08:00
parent 6c8bdeb6e0
commit f6a8069159
3 changed files with 5 additions and 4 deletions

View File

@ -368,8 +368,7 @@ python src/export_model.py \
--template default \
--finetuning_type lora \
--checkpoint_dir path_to_checkpoint \
--export_dir path_to_export \
--fp16
--export_dir path_to_export
```
### API Demo

View File

@ -367,8 +367,7 @@ python src/export_model.py \
--template default \
--finetuning_type lora \
--checkpoint_dir path_to_checkpoint \
--output_dir path_to_export \
--fp16
--export_dir path_to_export
```
### API 服务

View File

@ -240,4 +240,7 @@ def load_model_and_tokenizer(
trainable_params, all_param, 100 * trainable_params / all_param
))
if not is_trainable:
logger.info("This IS expected that the trainable params is 0 if you are using model for inference only.")
return model, tokenizer