mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-22 22:02:51 +08:00
set version
Former-commit-id: 35c2da3eba064e16b21c20a4cde3355173d5d9fd
This commit is contained in:
parent
4966bd7911
commit
9697c3e970
@ -7,4 +7,4 @@ from llmtuner.train import export_model, run_exp
|
|||||||
from llmtuner.webui import create_ui, create_web_demo
|
from llmtuner.webui import create_ui, create_web_demo
|
||||||
|
|
||||||
|
|
||||||
__version__ = "0.3.1"
|
__version__ = "0.3.2"
|
||||||
|
@ -34,7 +34,10 @@ class WebChatModel(ChatModel):
|
|||||||
try:
|
try:
|
||||||
with open("demo_config.json", "r", encoding="utf-8") as f:
|
with open("demo_config.json", "r", encoding="utf-8") as f:
|
||||||
args = json.load(f)
|
args = json.load(f)
|
||||||
|
assert args.get("model_name_or_path", None) and args.get("template", None)
|
||||||
super().__init__(args)
|
super().__init__(args)
|
||||||
|
except AssertionError:
|
||||||
|
print("Please provided model name and template in `demo_config.json`.")
|
||||||
except:
|
except:
|
||||||
print("Cannot find `demo_config.json` at current directory.")
|
print("Cannot find `demo_config.json` at current directory.")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user