text-generation-inference/.github/workflows
David Corvoysier c00add9c03
Add Neuron backend (#3033)
* feat: add neuron backend

* feat(neuron): add server standalone installation

* feat(neuron): add server and integration tests

* fix(neuron): increase ulimit when building image

The base image used to compile the rust components seems to have a low
ulimit for opened files, which leads to errors during compilation.

* test(neuron): merge integration tests and fixtures

* test: add --neuron option

* review: do not use latest tag

* review: remove ureq pinned version

* review: --privileged should be the exception

* feat: add neuron case to build ci

* fix(neuron): export models from container in test fixtures

The neuron tests require models to have been previously exported and
cached on the hub. This is done automatically by the neuron.model
fixture the first time the tests are ran for a specific version.
This fixture used to export the models using optimum-neuron directly,
but this package is not necessarily present on the system.
Instead, it is now done through the neuron TGI itself, since it
contains all the tools required to export the models.
Note that since the CI runs docker in docker (dind) it does not seem
possible to share a volume between the CI container and the container
used to export the model.
For that reason, a specific image with a modified entrypoint is built
on-the-fly when a model export is required.

* refactor: remove sagemaker entry-point

The SageMaker image is built differently anyway.

* fix(neuron): avoid using Levenshtein

* test(neuron): use smaller llama model

* feat(neuron): avoid installing CUDA in image

* test(neuron): no error anymore when requesting too many tokens

* ci: doing a precompilation step (with a different token).

* test(neuron): avoid using image sha when exporting models

We now manually evaluate the apparent hash of the neuron backend by
combining the hash of the neuron backend directory and Dockerfile.
This new hash is used to identify exported neuron models instead of the
image sha.
This has two benefits:
- it changes less frequently (only hwen the neuron backend changes),
  which means less neuron models being pushed to the hub,
- it can be evaluated locally, meaning that running the tests once
  locally will export the models before the CI uses them.

* test(neuron): added a small script to prune test models

---------

Co-authored-by: drbh <david.richard.holtz@gmail.com>
Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
2025-02-24 09:10:05 +01:00
..
autodocs.yaml Rebase TRT-llm (#2331) 2024-07-31 10:33:10 +02:00
build_documentation.yaml New runner. Manual squash. (#2110) 2024-06-24 18:08:34 +02:00
build_pr_documentation.yaml doc: Add metrics documentation and add a 'Reference' section (#2230) 2024-08-16 19:43:30 +02:00
build.yaml Add Neuron backend (#3033) 2025-02-24 09:10:05 +01:00
ci_build.yaml Add Neuron backend (#3033) 2025-02-24 09:10:05 +01:00
client-tests.yaml Removing IPEX_AVAIL. (#2115) 2024-06-25 13:20:57 +02:00
integration_tests.yaml Removing IPEX_AVAIL. (#2115) 2024-06-25 13:20:57 +02:00
load_test.yaml feat: Add automatic nightly benchmarks (#2591) 2024-11-21 17:11:42 +00:00
nix_cache.yaml nix: build and cache impure devshells (#2765) 2024-11-20 20:56:11 +01:00
nix_tests.yaml Stream options. (#2533) 2024-09-19 20:50:37 +02:00
stale.yaml New runner. Manual squash. (#2110) 2024-06-24 18:08:34 +02:00
tests.yaml Use kernels from the kernel hub (#2988) 2025-02-10 19:19:25 +01:00
trufflehog.yaml feat: Add the parsing of HF_HUB_USER_AGENT_ORIGIN environment variable for telemetry (#3027) 2025-02-19 21:09:12 +01:00
upload_pr_documentation.yaml New runner. Manual squash. (#2110) 2024-06-24 18:08:34 +02:00