MCPcopy
hub / github.com/huggingface/trl / _parse_args

Function _parse_args

scripts/generate_tiny_models/_common.py:197–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195
196
197def _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
208def push_to_hub(model, tokenizer, generation_config, prefix=None, suffix=None, create_pr=None):

Callers 1

push_to_hubFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…