README.md 775 字节
Newer Older
F
felixhjh 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
# Fit a line prediction example

([简体中文](./README_CN.md)|English)

## Get data

```shell
sh get_data.sh
```



## RPC service

### Start server

```shell
python3 -m paddle_serving_server.serve --model uci_housing_model --thread 10 --port 9393
```

## Client prediction

### RPC Client
The `paddlepaddle` package is used in `test_client.py`, and you may need to download the corresponding package(`pip3 install paddlepaddle`).

``` shell
python3 test_client.py uci_housing_client/serving_client_conf.prototxt
```

### Http Client

``` shell
python3 test_httpclient.py uci_housing_client/serving_client_conf.prototxt
```


## Benchmark
``` shell
bash benchmark.sh uci_housing_model uci_housing_client
```
The log file of benchmark named `profile_log_uci_housing_model`