|
| 1 | +# Example: Quantization Validation Suite |
| 2 | +# |
| 3 | +# A balanced set of benchmarks for validating quantized model quality. |
| 4 | +# Copy this file and customize for your needs. |
| 5 | +# |
| 6 | +# Includes: |
| 7 | +# - MMLU-Pro (knowledge, completions) |
| 8 | +# - GPQA Diamond (reasoning, chat, 5 repeats) |
| 9 | +# - LiveCodeBench v6 (code, chat, 3 repeats) |
| 10 | +# - IFBench (instruction following, chat, 8 repeats) |
| 11 | +# |
| 12 | +# Usage: |
| 13 | +# nel run --config recipes/examples/example_eval.yaml \ |
| 14 | +# -o deployment.checkpoint_path=/path/to/quantized/checkpoint \ |
| 15 | +# -o deployment.served_model_name=my-model-nvfp4 \ |
| 16 | +# -o execution.hostname=<slurm_host> \ |
| 17 | +# -o execution.account=<slurm_account> \ |
| 18 | +# -o execution.output_dir=/path/to/output |
| 19 | +# |
| 20 | +# For quantized checkpoints, also add the quantization flag: |
| 21 | +# -o 'deployment.extra_args=--max-model-len 32768 --trust-remote-code --quantization modelopt_fp4' |
| 22 | +# |
| 23 | +# Run a single task: |
| 24 | +# nel run --config ... -t ns_gpqa |
| 25 | +# |
| 26 | +# Smoke test (2 samples): |
| 27 | +# nel run --config ... -o ++evaluation.nemo_evaluator_config.config.params.limit_samples=2 |
| 28 | +defaults: |
| 29 | + - execution: slurm/default |
| 30 | + - deployment: vllm |
| 31 | + - _self_ |
| 32 | +execution: |
| 33 | + hostname: ??? |
| 34 | + username: ${oc.env:USER} |
| 35 | + account: ??? |
| 36 | + output_dir: ??? |
| 37 | + walltime: "04:00:00" |
| 38 | + mounts: |
| 39 | + mount_home: false |
| 40 | +deployment: |
| 41 | + env_vars: |
| 42 | + HF_TOKEN: host:HF_TOKEN |
| 43 | + checkpoint_path: ??? |
| 44 | + hf_model_handle: |
| 45 | + served_model_name: ??? |
| 46 | + tensor_parallel_size: 1 |
| 47 | + data_parallel_size: 1 |
| 48 | + # For models with custom code, add: --trust-remote-code |
| 49 | + extra_args: --max-model-len 32768 |
| 50 | +evaluation: |
| 51 | + env_vars: |
| 52 | + HF_TOKEN: host:HF_TOKEN |
| 53 | + nemo_evaluator_config: |
| 54 | + config: |
| 55 | + params: |
| 56 | + request_timeout: 3600 |
| 57 | + max_retries: 10 |
| 58 | + parallelism: 16 |
| 59 | + target: |
| 60 | + api_endpoint: |
| 61 | + api_key_name: DUMMY_API_KEY |
| 62 | + tasks: |
| 63 | + # Knowledge (completions endpoint, short) |
| 64 | + - name: adlr_mmlu_pro_5_shot_base |
| 65 | + |
| 66 | + # Reasoning (chat endpoint, 5 repeats, short) |
| 67 | + - name: ns_gpqa |
| 68 | + nemo_evaluator_config: |
| 69 | + config: |
| 70 | + params: |
| 71 | + extra: |
| 72 | + args: ++prompt_config=eval/aai/mcq-4choices |
| 73 | + num_repeats: 5 |
| 74 | + target: |
| 75 | + api_endpoint: |
| 76 | + adapter_config: |
| 77 | + params_to_remove: |
| 78 | + - max_new_tokens |
| 79 | + - max_completion_tokens |
| 80 | + |
| 81 | + # Code (chat endpoint, 3 repeats, medium) |
| 82 | + - name: ns_livecodebench |
| 83 | + nemo_evaluator_config: |
| 84 | + config: |
| 85 | + params: |
| 86 | + extra: |
| 87 | + dataset_split: test_v6_2408_2505 |
| 88 | + num_repeats: 3 |
| 89 | + target: |
| 90 | + api_endpoint: |
| 91 | + adapter_config: |
| 92 | + params_to_remove: |
| 93 | + - max_new_tokens |
| 94 | + - max_completion_tokens |
| 95 | + |
| 96 | + # Instruction following (chat endpoint, 8 repeats, super short) |
| 97 | + - name: ns_ifbench |
| 98 | + nemo_evaluator_config: |
| 99 | + config: |
| 100 | + params: |
| 101 | + extra: |
| 102 | + num_repeats: 8 |
| 103 | + target: |
| 104 | + api_endpoint: |
| 105 | + adapter_config: |
| 106 | + params_to_remove: |
| 107 | + - max_new_tokens |
| 108 | + - max_completion_tokens |
0 commit comments