Makefile 1 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
24
integration-tests: install-router install-launcher
	cargo test

python-tests:
25
	cd server && HF_HUB_ENABLE_HF_TRANSFER=1 pytest tests
26

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

30
run-bloom-560m-quantize:
31
	text-generation-launcher --model-id bigscience/bloom-560m --num-shard 2 --quantize --port 8080
32
33

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

Olivier Dehaene's avatar
v0.1.0  
Olivier Dehaene committed
36
run-bloom:
37
	text-generation-launcher --model-id bigscience/bloom --num-shard 8 --port 8080
38
39

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