Skip to content

Commit

Permalink
docs: put xagentgen docker into tool-server-network (OpenBMB#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlpbin authored Dec 4, 2023
1 parent b832b9b commit 040d18d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions XAgentGen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ You can low down the memory requirement by changing the `MAX_JOBS` in the docker
## Run the docker image
Start the docker image by:
```shell
docker run -it -p 13520:13520 -v /host/model/path:/model:rw --gpus all --ipc=host xagentteam/xagentgen:latest python app.py --model-path /model --port 13520
docker run -it -p 13520:13520 --network tool-server-network -v /host/model/path:/model:rw --gpus all --ipc=host xagentteam/xagentgen:latest python app.py --model-path /model --port 13520
```
**Note:** Change the `/host/model/path` to the path of your model directory. The service should be listening on port `13520`.

Expand All @@ -47,5 +47,3 @@ Run XAgent with customized model by:
python run.py --task "find all the prime numbers <=100" --config-file "assets/xagentllama.yml"
```



0 comments on commit 040d18d

Please sign in to comment.