add API demo from #1

Former-commit-id: c955edcef168da44257c5b50d7bc59266d909782
This commit is contained in:
hiyouga
2023-06-05 21:32:18 +08:00
parent 8fd9ef924d
commit ac6f50dedf
5 changed files with 191 additions and 178 deletions

View File

@@ -1,6 +1,6 @@
# coding=utf-8
# Implements stream chat in command line for fine-tuned models.
# Usage: python cli_demo.py --checkpoint_dir path_to_checkpoint
# Usage: python cli_demo.py --model_name_or_path path_to_model --checkpoint_dir path_to_checkpoint
from utils import (