mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-09 12:59:43 +00:00
refactor: The first refactored version for sdk release (#907)
Co-authored-by: chengfangyin2 <chengfangyin3@jd.com>
This commit is contained in:
@@ -32,10 +32,10 @@ Optionally, you can also specify the gpu ID to use before the starting command,
|
||||
|
||||
````shell
|
||||
# Specify 1 gpu
|
||||
CUDA_VISIBLE_DEVICES=0 python3 pilot/server/dbgpt_server.py
|
||||
CUDA_VISIBLE_DEVICES=0 python3 dbgpt/app/dbgpt_server.py
|
||||
|
||||
# Specify 4 gpus
|
||||
CUDA_VISIBLE_DEVICES=3,4,5,6 python3 pilot/server/dbgpt_server.py
|
||||
CUDA_VISIBLE_DEVICES=3,4,5,6 python3 dbgpt/app/dbgpt_server.py
|
||||
````
|
||||
|
||||
You can modify the setting `MAX_GPU_MEMORY=xxGib` in `.env` file to configure the maximum memory used by each GPU.
|
||||
|
@@ -373,7 +373,7 @@ bash ./scripts/examples/load_examples.sh
|
||||
## Run service
|
||||
The DB-GPT service is packaged into a server, and the entire DB-GPT service can be started through the following command.
|
||||
```python
|
||||
python pilot/server/dbgpt_server.py
|
||||
python dbgpt/app/dbgpt_server.py
|
||||
```
|
||||
|
||||
## Visit website
|
||||
|
@@ -152,7 +152,7 @@ bash ./scripts/examples/load_examples.sh
|
||||
## Run service
|
||||
|
||||
```python
|
||||
python pilot/server/dbgpt_server.py
|
||||
python dbgpt/app/dbgpt_server.py
|
||||
```
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user