Makefile 877 Bytes
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 .

Nicolas Patry's avatar
Nicolas Patry committed
10
11
12
13
14
15
16
install: install-server install-router install-launcher

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

router-dev:
	cd router && cargo run
Olivier Dehaene's avatar
v0.1.0  
Olivier Dehaene committed
17

18
19
20
21
integration-tests: install-router install-launcher
	cargo test

python-tests:
22
	cd server && HF_HUB_ENABLE_HF_TRANSFER=1 pytest tests
23

Olivier Dehaene's avatar
v0.1.0  
Olivier Dehaene committed
24
run-bloom-560m:
25
	text-generation-launcher --model-id bigscience/bloom-560m --num-shard 2
Olivier Dehaene's avatar
v0.1.0  
Olivier Dehaene committed
26

27
run-bloom-560m-quantize:
28
	text-generation-launcher --model-id bigscience/bloom-560m --num-shard 2 --quantize
29
30

download-bloom:
31
	text-generation-server download-weights bigscience/bloom
32

Olivier Dehaene's avatar
v0.1.0  
Olivier Dehaene committed
33
run-bloom:
34
	text-generation-launcher --model-id bigscience/bloom --num-shard 8
35
36

run-bloom-quantize:
37
	text-generation-launcher --model-id bigscience/bloom --num-shard 8 --quantize