text-generation-inference/server
Nicolas Patry 4e1ca8d7bd Lots of improvements (Still 2 allocators) (#2449)
* Making prefix/flashinfer the default and testing the full release tests.

* Include flashinfer in the docker.

* Using prebuilt.

* Allowing window_left_size (dummy version).

* Disabling flashinfer/prefix caching on odd head_dim

* Disable prefix caching for lora.

* More specific codes.

* Update lock

* Updating integration tests with new values with FI/FD.

Remove paged as a default too, and using FD everywhere.

* Update cargo lock ?

* Upgrade to 1.80 because of bitstream...

* Everywhere 1.80

* Forgot last default place.

* Apply suggestions from code review

Co-authored-by: drbh <david.richard.holtz@gmail.com>

* Updated flake lock

* Tmp

* Upgrade resolution system for less errors in resolution.

* Remove lambda for cleaner function.

* Handling debugger.

* OVerride the env in server tests.

* Is this enough to make it work ?

* This seems to be working.

* Downgrade some logs.

* Fixing the default for vlm.

* Don't enable prefix caching on VLM just yet.

* Change `add_special_tokens` in order to have the correct tokens for chat
input and not (since it's super important with the prefixing now)

* Fixing prefix caching for flashdecoding.

* Update all models.

* Fixed flashinfer version.

* add_special_tokens is internal only

* Fixing seqlen with the new vlms.

* Fixing the issue with `add_special_tokens` not being passed around.

* Fixing the test.

* Removing encoder_decoder (seq2seq).

* Update the chat test.

* Fixing the batching tokenization in flash causal lm.

* Truncating left for radix purposes.

* Oops this doesn't belong here.

* Put back default pure shell.

* Update server tests

- Default to throughput test in k6
- Use TGI_WIGGLE_ROOM to adjust wiggle room

* Only n_heads / process_group.size() are necessary.

* Revert the integrationt tests change (seem linked to head_size
modification).

* Adding error message when assert is violated.

* Fixing the free algorithm to handle times where the common prefix is
smaller.

* Apply suggestions from code review

Co-authored-by: OlivierDehaene <olivier@huggingface.co>

* Update server/text_generation_server/layers/attention/common.py

Co-authored-by: OlivierDehaene <olivier@huggingface.co>

* Fix disabling prefix caching - Fix windowing checks.

* Revert the Cohere tokenizer change (for now using a revision instead).

* Fmt.

---------

Co-authored-by: drbh <david.richard.holtz@gmail.com>
Co-authored-by: OlivierDehaene <olivier@huggingface.co>
2024-09-25 06:13:11 +00:00
..
custom_kernels All integration tests back everywhere (too many failed CI). (#2428) 2024-09-25 06:10:59 +00:00
exllama_kernels MI300 compatibility (#1764) 2024-07-17 05:36:58 +00:00
exllamav2_kernels chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00
tests Lots of improvements (Still 2 allocators) (#2449) 2024-09-25 06:13:11 +00:00
text_generation_server Lots of improvements (Still 2 allocators) (#2449) 2024-09-25 06:13:11 +00:00
.gitignore Impl simple mamba model (#1480) 2024-04-23 11:45:11 +03:00
Makefile Lots of improvements (Still 2 allocators) (#2449) 2024-09-25 06:13:11 +00:00
Makefile-awq chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00
Makefile-eetq Upgrade EETQ (Fixes the cuda graphs). (#1729) 2024-04-25 17:58:27 +03:00
Makefile-exllamav2 Upgrading exl2. (#2415) 2024-09-25 06:07:40 +00:00
Makefile-fbgemm Upgrade fbgemm (#2398) 2024-09-25 06:04:51 +00:00
Makefile-flash-att Hotfixing make install. (#2008) 2024-09-24 03:29:29 +00:00
Makefile-flash-att-v2 Softcapping for gemma2. (#2273) 2024-09-25 05:31:08 +00:00
Makefile-flashinfer Lots of improvements (Still 2 allocators) (#2449) 2024-09-25 06:13:11 +00:00
Makefile-lorax-punica Enable multiple LoRa adapters (#2010) 2024-09-24 03:55:04 +00:00
Makefile-selective-scan chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00
Makefile-vllm Add support for Deepseek V2 (#2224) 2024-09-25 05:27:40 +00:00
poetry.lock Fixing exl2 and other quanize tests again. (#2419) 2024-09-25 06:08:38 +00:00
pyproject.toml Fixing exl2 and other quanize tests again. (#2419) 2024-09-25 06:08:38 +00:00
README.md chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00
requirements_cuda.txt Fixing exl2 and other quanize tests again. (#2419) 2024-09-25 06:08:38 +00:00
requirements_intel.txt Fixing exl2 and other quanize tests again. (#2419) 2024-09-25 06:08:38 +00:00
requirements_rocm.txt Fixing exl2 and other quanize tests again. (#2419) 2024-09-25 06:08:38 +00:00

Text Generation Inference Python gRPC Server

A Python gRPC server for Text Generation Inference

Install

make install

Run

make run-dev