Run examples#
Step 1, clone the repository from GitHub.
$ git clone https://github.com/Optima-CityU/LLM4AD
Step 2, make sure you have installed all requirements (Please refer to Installation).
Step 3, find the corresponding python script and execute the script. The script started with the word “fake” refers to LLM-free examples, as the Sampler randomly select a function from the database to imitate a sampling process. If you have prepared an LLM API, Please goto Step 4 and Step 5.
$ cd examples/online_bin_packing/
$ python fake_randsample.py
Step 4, fill your api_endpoint and api_key in randsample.py.
api_endpoint: str = '' # the ip of your API provider, no "https://", such as "api.bltcy.top".
api_key: str = '' # your API key which may start with "sk-......"
Note
The api_endpoint has no “https://”, e.g., “api.bltcy.top”.
Note
The API key may start with “sk-“.
Step 5, run the script.
$ python randsample.py