Makefile 1.11 KB
Newer Older
Olivier Dehaene's avatar
v0.1.0  
Olivier Dehaene committed
1
install-server:
Nicolas Patry's avatar
Nicolas Patry committed
2
	cd server && make install
Olivier Dehaene's avatar
v0.1.0  
Olivier Dehaene committed
3
4
5
6
7
8
9

install-router:
	cd router && cargo install --path .

install-launcher:
	cd launcher && cargo install --path .

10
11
12
install-benchmark:
	cd benchmark && cargo install --path .

Nicolas Patry's avatar
Nicolas Patry committed
13
14
15
16
17
18
install: install-server install-router install-launcher

server-dev:
	cd server && make run-dev

router-dev:
19
	cd router && cargo run -- --port 8080
Olivier Dehaene's avatar
v0.1.0  
Olivier Dehaene committed
20

21
22
23
integration-tests: install-router install-launcher
	cargo test

24
25
26
27
28
29
30
python-server-tests:
	HF_HUB_ENABLE_HF_TRANSFER=1 pytest server/tests

python-client-tests:
	pytest clients/python/tests

python-tests: python-server-tests python-client-tests
31

Olivier Dehaene's avatar
v0.1.0  
Olivier Dehaene committed
32
run-bloom-560m:
33
	text-generation-launcher --model-id bigscience/bloom-560m --num-shard 2 --port 8080
Olivier Dehaene's avatar
v0.1.0  
Olivier Dehaene committed
34

35
run-bloom-560m-quantize:
36
	text-generation-launcher --model-id bigscience/bloom-560m --num-shard 2 --quantize --port 8080
37
38

download-bloom:
OlivierDehaene's avatar
OlivierDehaene committed
39
	HF_HUB_ENABLE_HF_TRANSFER=1 text-generation-server download-weights bigscience/bloom
40

Olivier Dehaene's avatar
v0.1.0  
Olivier Dehaene committed
41
run-bloom:
42
	text-generation-launcher --model-id bigscience/bloom --num-shard 8 --port 8080
43
44

run-bloom-quantize:
45
	text-generation-launcher --model-id bigscience/bloom --num-shard 8 --quantize --port 8080