| 36 | |
| 37 | |
| 38 | def 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 | |
| 53 | def get_random_reasoning_effort(): |