Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 更新 demo,支持运行 moss-moon-003-sft-plugin 模型 #332

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions moss_api_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@

parser = argparse.ArgumentParser()
parser.add_argument("--model_name", default="fnlp/moss-moon-003-sft-int4",
choices=["fnlp/moss-moon-003-sft",
"fnlp/moss-moon-003-sft-int8",
choices=["fnlp/moss-moon-003-sft",
"fnlp/moss-moon-003-sft-plugin",
"fnlp/moss-moon-003-sft-int8",
"fnlp/moss-moon-003-sft-int4"], type=str)
parser.add_argument("--gpu", default="0", type=str)
args = parser.parse_args()
Expand Down
3 changes: 2 additions & 1 deletion moss_cli_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

parser = argparse.ArgumentParser()
parser.add_argument("--model_name", default="fnlp/moss-moon-003-sft-int4",
choices=["fnlp/moss-moon-003-sft",
choices=["fnlp/moss-moon-003-sft",
"fnlp/moss-moon-003-sft-plugin",
"fnlp/moss-moon-003-sft-int8",
"fnlp/moss-moon-003-sft-int4"], type=str)
parser.add_argument("--gpu", default="0", type=str)
Expand Down
3 changes: 2 additions & 1 deletion moss_cli_demo_jittor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

parser = argparse.ArgumentParser()
parser.add_argument("--model_name", default="fnlp/moss-moon-003-sft",
choices=["fnlp/moss-moon-003-sft",
choices=["fnlp/moss-moon-003-sft",
"fnlp/moss-moon-003-sft-plugin",
"fnlp/moss-moon-003-sft-int8",
"fnlp/moss-moon-003-sft-int4"], type=str)
parser.add_argument("--generate", default="sample",
Expand Down
5 changes: 3 additions & 2 deletions moss_web_demo_gradio.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@

parser = argparse.ArgumentParser()
parser.add_argument("--model_name", default="fnlp/moss-moon-003-sft-int4",
choices=["fnlp/moss-moon-003-sft",
"fnlp/moss-moon-003-sft-int8",
choices=["fnlp/moss-moon-003-sft",
"fnlp/moss-moon-003-sft-plugin",
"fnlp/moss-moon-003-sft-int8",
"fnlp/moss-moon-003-sft-int4"], type=str)
parser.add_argument("--gpu", default="0", type=str)
args = parser.parse_args()
Expand Down
5 changes: 3 additions & 2 deletions moss_web_demo_streamlit.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@

parser = argparse.ArgumentParser()
parser.add_argument("--model_name", default="fnlp/moss-moon-003-sft-int4",
choices=["fnlp/moss-moon-003-sft",
"fnlp/moss-moon-003-sft-int8",
choices=["fnlp/moss-moon-003-sft",
"fnlp/moss-moon-003-sft-plugin",
"fnlp/moss-moon-003-sft-int8",
"fnlp/moss-moon-003-sft-int4"], type=str)
parser.add_argument("--gpu", default="0", type=str)
args = parser.parse_args()
Expand Down