# gpt **Repository Path**: qinxue080/gpt ## Basic Information - **Project Name**: gpt - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-25 - **Last Updated**: 2024-05-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Source Code Deployment ## Environmental requirements | Startup Mode | CPU * MEM | GPU | Remark | | :----------: | :-------: | :--: | :----------------------------------------------------: | | Proxy model | 4C * 8G | None | Proxy model does not rely on GPU | | Local model | 8C * 32G | 24G | It is best to start locally with a GPU of 24G or above | ### Miniconda environment installation - The default database uses SQLite, so there is no need to install a database in the default startup mode. If you need to use other databases, you can read the [advanced tutorials](/docs/application_manual/advanced_tutorial) below. We recommend installing the Python virtual environment through the conda virtual environment. For the installation of Miniconda environment, please refer to the [Miniconda installation tutorial](https://docs.conda.io/projects/miniconda/en/latest/). :::tip Create a Python virtual environment ::: ```python python >= 3.10 conda create -n dbgpt_env python=3.10 conda activate dbgpt_env # it will take some minutes pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple ".[default]" pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple ".[openai]" pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple ".[vstore]" wget https://github.com/explosion/spacy-models/releases/download/zh_core_web_sm-3.5.0/zh_core_web_sm-3.5.0-py3-none-any.whl -O /tmp/zh_core_web_sm-3.5.0-py3-none-any.whl pip3 install /tmp/zh_core_web_sm-3.5.0-py3-none-any.whl -i https://pypi.tuna.tsinghua.edu.cn/simple ``` ## Test data (optional) The project has a part of test data built-in by default, which can be loaded into the local database for testing through the following command - **Linux** ```python bash ./scripts/examples/load_examples.sh ``` - **Windows** ```python .\scripts\examples\load_examples.bat ``` ## Run service The service is packaged into a server, and the entire service can be started through the following command. ```python python dbgpt/app/dbgpt_server.py ``` :::info NOTE ### Run service If you are running version v0.4.3 or earlier, please start with the following command: ```python python pilot/server/dbgpt_server.py ``` ::: ## Visit website Open the browser and visit [`http://localhost:5000`](http://localhost:5000)