Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
|
Download baseline/README.md from adyen/DABstep: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/spaces/adyen/DABstep/resolve/main/baseline/README.md
- Command line
-
hf download hf://spaces/adyen/DABstep/baseline/README.md
-
curl -L -o README.md https://huggingface.co/spaces/adyen/DABstep/resolve/main/baseline/README.md
1.04 kB
| Python version: 3.10 | |
| 1. Setup environment | |
| ``` | |
| export MODEL_ID=openai/o3-mini | |
| export API_KEY=<your_api_key> | |
| python3.10 -m venv venv | |
| source venv/bin/activate | |
| pip3.10 install -r baseline/requirements.txt | |
| ``` | |
| 2. Launch trace collector | |
| ``` | |
| python -m phoenix.server.main serve & | |
| ``` | |
| 3. Launch baseline | |
| ``` | |
| # Runs 10 tasks from dev split | |
| python baseline/run.py --model-id $MODEL_ID --api-key $API_KEY --max-tasks 10 --split dev --concurrency 1 | |
| # Run all tasks from the dev split | |
| python baseline/run.py --model-id $MODEL_ID --api-key $API_KEY --max-tasks -1 --split dev --concurrency 1 | |
| # Run against 10 tasks from the full benchmark (default) split | |
| python baseline/run.py --model-id $MODEL_ID --api-key $API_KEY --max-tasks 10 --split default --concurrency 1 | |
| # Run 10 tasks in parallel | |
| python baseline/run.py --model-id $MODEL_ID --api-key $API_KEY --max-tasks 10 --split default --concurrency 10 | |
| # Run specific task ids | |
| python baseline/run.py --model-id $MODEL_ID --api-key $API_KEY --tasks-ids 49 5 1273 --split default --concurrency 3 | |
| ``` |