MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / _parse_args

Function _parse_args

DeepSpeedExample/megatron/global_vars.py:76–84  ·  view source on GitHub ↗

Parse entire arguments.

(extra_args_provider=None, defaults={},
                ignore_unknown_args=False)

Source from the content-addressed store, hash-verified

74
75
76def _parse_args(extra_args_provider=None, defaults={},
77 ignore_unknown_args=False):
78 """Parse entire arguments."""
79 global _GLOBAL_ARGS
80 _ensure_var_is_not_initialized(_GLOBAL_ARGS, 'args')
81 _GLOBAL_ARGS = parse_args(extra_args_provider=extra_args_provider,
82 defaults=defaults,
83 ignore_unknown_args=ignore_unknown_args)
84 return _GLOBAL_ARGS
85
86
87def _build_tokenizer(args):

Callers 2

mainFunction · 0.90
set_global_variablesFunction · 0.85

Calls 2

parse_argsFunction · 0.70

Tested by

no test coverage detected