MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX2 / add_code_generation_args

Function add_code_generation_args

demo/run_demo.py:81–146  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

79
80
81def add_code_generation_args(parser):
82 group = parser.add_argument_group(title="CodeGeeX2 DEMO")
83 group.add_argument(
84 "--model-path",
85 type=str,
86 default="THUDM/codegeex2-6b",
87 )
88 group.add_argument(
89 "--example-path",
90 type=str,
91 default=None,
92 )
93 group.add_argument(
94 "--quantize",
95 type=int,
96 default=None,
97 )
98 group.add_argument(
99 "--chatglm-cpp",
100 action="store_true",
101 )
102 group.add_argument(
103 "--fastllm",
104 action="store_true",
105 )
106 group.add_argument(
107 "--n-gpus",
108 type=int,
109 default=1,
110 )
111 group.add_argument(
112 "--gpu",
113 type=int,
114 default=0,
115 )
116 group.add_argument(
117 "--cpu",
118 action="store_true",
119 )
120 group.add_argument(
121 "--listen",
122 type=str,
123 default="127.0.0.1",
124 )
125 group.add_argument(
126 "--port",
127 type=int,
128 default=7860,
129 )
130 group.add_argument(
131 "--username",
132 type=str,
133 default=None,
134 )
135 group.add_argument(
136 "--password",
137 type=str,
138 default=None,

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected