Makefile 1.44 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
install-integration-tests:
	cd integration-tests && pip install -r requirements.txt
6
	cd clients/python && pip install .
7

Olivier Dehaene's avatar
v0.1.0  
Olivier Dehaene committed
8
9
10
11
12
13
install-router:
	cd router && cargo install --path .

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

14
15
16
install-benchmark:
	cd benchmark && cargo install --path .

Nicolas Patry's avatar
Nicolas Patry committed
17
18
19
20
21
22
install: install-server install-router install-launcher

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

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

25
rust-tests: install-router install-launcher
26
27
	cargo test

28
29
30
31
32
33
integration-tests: install-integration-tests
	pytest -s -vv -m "not private" integration-tests

update-integration-tests: install-integration-tests
	pytest -s -vv --snapshot-update integration-tests

34
python-server-tests:
35
	HF_HUB_ENABLE_HF_TRANSFER=1 pytest -s -vv -m "not private" server/tests
36
37
38
39
40

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

python-tests: python-server-tests python-client-tests
41

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

45
run-bloom-560m-quantize:
46
	text-generation-launcher --model-id bigscience/bloom-560m --num-shard 2 --quantize --port 8080
47
48

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

Olivier Dehaene's avatar
v0.1.0  
Olivier Dehaene committed
51
run-bloom:
52
	text-generation-launcher --model-id bigscience/bloom --num-shard 8 --port 8080
53
54

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