GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing opencompass.readthedocs.io — Quick Start — OpenCompass 0.5.5 documentation Quick Start¶This page demonstrates two entry points with the same model and dataset. A configuration file is recommended because it preserves and reuses evaluation settings and supports version control and reproducibility, while the CLI is convenient for a quick trial. The example evaluates First complete Installation and Environment Setup and enter the OpenCompass repository root. Then open For a temporary local test, pass the key directly in the model configuration: from opencompass.models import OpenAISDKResponse models = [ dict( type=OpenAISDKResponse, abbr='gpt-6-astra-response', path='gpt-6-astra', key='your-api-key', # Keep the remaining parameters unchanged. ) ] Prefer storing the key in a custom environment variable. For example, first set export OPENCOMPASS_API_KEY="your-api-key" Then read that environment variable in the model configuration: import os from opencompass.models import OpenAISDKResponse models = [ dict( type=OpenAISDKResponse, abbr='gpt-6-astra-response', path='gpt-6-astra', key=os.getenv('OPENCOMPASS_API_KEY'), # Keep the remaining parameters unchanged. ) ] This example does not require a local GPU, but the current environment and account credentials must be able to access the corresponding API service. The first run may also download the dataset from the network. Path 1: Use a Configuration File¶The repository already provides a # quick_start_eval.py from mmengine.config import read_base with read_base(): from opencompass.configs.datasets.demo.demo_gsm8k_chat_gen import \ gsm8k_datasets from opencompass.configs.models.openai.gpt_6_astra import \ models as gpt6_astra_models datasets = gsm8k_datasets models = gpt6_astra_models First use opencompass quick_start_eval.py --dry-run After verifying the configuration, run the complete workflow: opencompass quick_start_eval.py \ --work-dir outputs/quick_start_config \ --debug
Path 2: Use the CLI Directly¶The same evaluation can be run without creating a configuration file. Obtain configuration filenames, without the opencompass \ --models gpt_6_astra \ --datasets demo_gsm8k_chat_gen \ --work-dir outputs/quick_start_cli \ --debug To find configuration names, run: python tools/list_configs.py gpt_6_astra gsm8k The CLI is suitable for quick validation, but not for evaluations requiring fine-grained control. Prefer a configuration file when combining multiple models and datasets, changing model concurrency or specific request parameters, or customizing the execution strategy. Viewing Results¶Every run creates a timestamp directory under
If execution fails, first inspect the terminal output or logs in the timestamp directory, then see FAQ under “Other Documentation.” After completing this page, read Workflow and Core Concepts, then learn a reproducible configuration workflow in Running a Complete Evaluation from a Configuration. |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |