update readme

Former-commit-id: d4eaee262a64e716ce475dc4eb18d8d9697d8dd8
This commit is contained in:
hiyouga
2024-04-22 17:09:17 +08:00
parent f6a53d83c8
commit 1d2e372a8e
3 changed files with 9 additions and 2 deletions

View File

@@ -94,6 +94,9 @@ def _check_extra_dependencies(
if finetuning_args.use_badam:
require_version("badam", "To fix: pip install badam")
if finetuning_args.plot_loss:
require_version("matplotlib", "To fix: pip install matplotlib")
if training_args is not None and training_args.predict_with_generate:
require_version("jieba", "To fix: pip install jieba")
require_version("nltk", "To fix: pip install nltk")