(
model: str,
checkpoint: str,
params: str,
output_dir: Optional[str] = ".",
extra_opts: Optional[str] = "",
)
| 158 | |
| 159 | |
| 160 | def build_model( |
| 161 | model: str, |
| 162 | checkpoint: str, |
| 163 | params: str, |
| 164 | output_dir: Optional[str] = ".", |
| 165 | extra_opts: Optional[str] = "", |
| 166 | ) -> str: |
| 167 | argString = f"--model {model} --checkpoint {checkpoint} --params {params} {extra_opts} --output-dir {output_dir}" |
| 168 | parser = build_args_parser() |
| 169 | args = parser.parse_args(shlex.split(argString)) |
| 170 | llm_config = LlmConfig.from_args(args) |
| 171 | return export_llama(llm_config) |
| 172 | |
| 173 | |
| 174 | def parse_list_of_ints(s): |
nothing calls this directly
no test coverage detected