Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 863 Bytes

installation.md

File metadata and controls

31 lines (26 loc) · 863 Bytes

Installation Instructions

a. Create a conda virtual environment and activate it.

conda create -n codegraph python=3.8
conda activate codegraph

b. Install reuired pacakges following the GraphQA requirements.

pip install tensorflow absl-py networkx numpy tqdm openai

c. Clone CodeGraph.

git clone https://github.com/HKUST-KnowComp/CodeGraph.git

Set Up API Credentials

Set Environment Variables:

  • For GPT-3.5 model:
export AZURE_API_KEY='your_azure_api_key'
export AZURE_ENDPOINT='your_azure_endpoint'
  • For Other Models (e.g, Llama, Mistral)
export DEEPINFRA_API_KEY='your_deepinfra_api_key'
export DEEPINFRA_BASE_URL='https://api.deepinfra.com/v1/openai'