()
| 195 | |
| 196 | |
| 197 | def _parse_args(): |
| 198 | parser = argparse.ArgumentParser(add_help=False) |
| 199 | parser.add_argument( |
| 200 | "--create-pr", |
| 201 | action="store_true", |
| 202 | help="If the repo already exists, open a PR instead of skipping.", |
| 203 | ) |
| 204 | args, _ = parser.parse_known_args() |
| 205 | return args |
| 206 | |
| 207 | |
| 208 | def push_to_hub(model, tokenizer, generation_config, prefix=None, suffix=None, create_pr=None): |
no outgoing calls
no test coverage detected
searching dependent graphs…