Installation & Setup
1. Install Dependencies
First, install the required Python packages:
pip install -r requirements.txt
2. Configure Environment Variables
Set up your API credentials by exporting the following environment variables:
export ANTHROPIC_BASE_URL=""export ANTHROPIC_API_KEY=""
3. Start the Server
Launch the AgentCity server using uvicorn:
uvicorn server:app --host 0.0.0.0 --port 8000
Verify Migration
To verify that the models have been successfully migrated and are working correctly:
- Download LibCity datasets: Download the required datasets and place them in the
/Bigscity-LibCity/raw_datadirectory. - Run a model: Execute the following command to test a migrated model:
python run_model.py --task traffic_state_pred --model model_name --dataset dataset_name - Replace placeholders:
model_name: One of the migrated models (e.g., PatchSTG, LSTGAN, MLCAFormer)dataset_name: Your target dataset name
- Check results: After execution, check the output for evaluation metrics and verify the model is running correctly.
Example: python run_model.py --task traffic_state_pred --model PatchSTG --dataset METR_LA
Next Steps
Now that you have AgentCity set up, you can:
- Explore the LeaderBoard to see performance metrics of migrated models
- Experiment with different models and datasets
- Contribute new model migrations to the project
- Tune hyperparameters to improve model performance