-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathserver_test_curl.sh
23 lines (19 loc) · 1.58 KB
/
server_test_curl.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Run on the client-side.
# get results-0
curl -X POST -H 'Content-Type: application/json' http://localhost:30327/chat -d '{"prompt": "Hello, World!", "max_length": 128, "seed":950327}'
curl -X POST -H 'Content-Type: application/json' http://localhost:30327/chat -d '{"prompt": "Hello, World!", "max_length": 128, "seed":950328}'
# train-1
curl -X POST -H 'Content-Type: application/json' http://localhost:30327/train -d '{"from": 0, "to": 10}'
# get results-1
curl -X POST -H 'Content-Type: application/json' http://localhost:30327/chat -d '{"prompt": "Hello, World!", "max_length": 128, "seed":950327}'
curl -X POST -H 'Content-Type: application/json' http://localhost:30327/chat -d '{"prompt": "Hello, World!", "max_length": 128, "seed":950328}'
# train-2
curl -X POST -H 'Content-Type: application/json' http://localhost:30327/train -d '{"from": 10, "to": 20, "base":0}'
# get results-2
curl -X POST -H 'Content-Type: application/json' http://localhost:30327/chat -d '{"prompt": "Hello, World!", "max_length": 128, "seed":950327}'
curl -X POST -H 'Content-Type: application/json' http://localhost:30327/chat -d '{"prompt": "Hello, World!", "max_length": 128, "seed":950328}'
# train-3
curl -X POST -H 'Content-Type: application/json' http://localhost:30327/train -d '{"from": 20, "to": 30, "base":1}'
# get results-3
curl -X POST -H 'Content-Type: application/json' http://localhost:30327/chat -d '{"prompt": "Hello, World!", "max_length": 128, "seed":950327}'
curl -X POST -H 'Content-Type: application/json' http://localhost:30327/chat -d '{"prompt": "Hello, World!", "max_length": 128, "seed":950328}'