MCPcopy Create free account
hub / github.com/deepseek-ai/DeepSpec / validate_args

Function validate_args

scripts/data/generate_train_data.py:38–50  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

36
37
38def validate_args(args):
39 if not 0.0 <= args.temperature <= 1.0:
40 raise ValueError("temperature must be between 0.0 and 1.0")
41 if args.top_p is not None and not 0.0 <= args.top_p <= 1.0:
42 raise ValueError("top-p must be between 0.0 and 1.0")
43 if args.top_k is not None and args.top_k <= 0:
44 raise ValueError("top-k must be greater than 0")
45 if args.min_p is not None and not 0.0 <= args.min_p <= 1.0:
46 raise ValueError("min-p must be between 0.0 and 1.0")
47 if args.max_tokens <= 0:
48 raise ValueError("max-tokens must be greater than 0")
49 if args.concurrency <= 0:
50 raise ValueError("concurrency must be greater than 0")
51
52
53def get_random_reasoning_effort():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected