KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
TrajLLM
★ 13
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
jdk24u
:
https://openjdk.org/projects/jdk-updates last released 2025-07-15
gpu-home-server
:
building minimalistic GPU server for homelab
PratikRaval123
:
No description available.
nancy_pelosi_json_data
:
No description available.
Mega-nz-download-bot
:
Very simple mega.nz download bot
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
TrajLLM
?
Download (.md)
# TrajLLM - A LLM-Empowered Agent-Based Human Mobility Simulation Framework [](https://doi.org/10.5281/zenodo.14885828) ## 📜 Description This is the repository for **TrajLLM**. The framework leverages LLMs in realistic human mobility data generation. It consists 4 modules: **persona**, **activity**, **destination** and **memory**. For demonstration purpose, [Foursquare check-in dataset from Tokyo](https://www.kaggle.com/datasets/chetanism/foursquare-nyc-and-tokyo-checkin-dataset) is being used as the underlying POI dataset. <p align="center"> <img src="img/pipeline.png"> <br> <em>Figure 1: The overall pipeline for TrajLLM.</em> </p> ## 🏅 Key Features - `gen_persona.py`: Generate personas and corresponding daily activity lists according to real-world population statistics. - `simulate.py`: Simulate daily routines based on generated personas - `mem_module.py`: - `app.py`: This is the frontend design for demonstration purpose. ## 🍳 Usage Once enter the openai api key in `./helper/utils.py` and `./mem_module`, the following commands can be used to get started. ### Persona generation (pre-process) ``` Usage: python gen_persona.py [options] Options: -n, --number <int> Set amount of personas to generate, default=1, which generate 5 personas -p, --persona Generate personas without activity list or any loc info -a, --activity Only generate activity list for existing personas -u, --p_update Only update loc info of home, workplace and/or school for existing personas -l, --llm <model> Specify the model type to use: 'llama' or 'gpt', default='gpt' ``` The generated personas and daily activity lists will be stored in `./res/personas.json` and `./res/activities.json`. Example usage: ```bash python gen_persona.py -n 10 # which generate 50 personas with their daily activitiy lists ``` ### Trajectory Simulation ``` Usage: python simulate.py [options] Options: -d, --date <dd-mm-yyyy> Set the simulation start date -n, --number <int> Number of days to simulate -m, --model <dest_model> Set the destination selection model to be 'physical', 'physicl_mix'(involve topk stratge) or 'llm', default='physical_mix' -l, --llm <model> Specify the model type to use: 'llama' or 'gpt', default='gpt' ``` The generated trajectories will be stored as `./res/routine_dd-mm-yyyy_<persona index>.json`. Example usage: ```bash python simulate.py -d 17-11-2024 ``` ## 🚀 Demonstration You can explore the visualisation of our simulated mobility system through an interactive demo: 🔗 https://trajllm.onrender.com