mats-sql-bundle / code /db_execution /run_api_mats.sh
thanhdath's picture
Push code: scripts, slurm sbatch, recipes, utils (v3 + selector series)
778d47d verified
Raw
History Blame Contribute Delete
573 Bytes
#!/bin/bash
# Launch the SQL execution API for mats-sql-tist (port 8003).
cd "$(dirname "$0")"
export BIRD_DEV_DB_ROOT=/home/datht/mats-sql-tist/data/sft_data_collections/bird/dev/dev_databases
export BIRD_TRAIN_DB_ROOT=/home/datht/mats-sql-tist/data/sft_data_collections/bird/train/train_databases
export SPIDER_DB_ROOT=/home/datht/mats-sql-tist/data/sft_data_collections/spider/database
export MAX_CONCURRENT=64
export DEFAULT_TIMEOUT_MS=15000
export MAX_ROWS=10000
/home/datht/anaconda3/envs/mats/bin/python -m uvicorn api:app --host 127.0.0.1 --port 8003 --workers 1