text-generation-inference/server/text_generation_server
drbh 06b638f310 Pr 2374 ci branch (#2378)
* Update __init__.py

Fix issue with NoneType comparison for max_input_tokens and sliding_window

- Add default values for max_input_tokens and sliding_window to handle None cases.
- Ensure the comparison between max_input_tokens and sliding_window is handled correctly to prevent TypeError.
- This change addresses the error: TypeError: '<=' not supported between instances of 'int' and 'NoneType'.

* Update __init__.py

Handle NoneType in sliding_window comparison to fix TypeError in __init__.py by ensuring the comparison logic accounts for NoneType values, preventing errors and improving code robustness.

* fix: syntax/style tweak

---------

Co-authored-by: Praz <prazanth2006@gmail.com>
2024-09-25 05:55:39 +00:00
..
adapters feat: add ruff and resolve issue (#2262) 2024-09-25 05:46:24 +00:00
layers fix: return the out tensor rather then the functions return value (#2361) 2024-09-25 05:55:39 +00:00
models Pr 2374 ci branch (#2378) 2024-09-25 05:55:39 +00:00
pb chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00
utils Handle GPTQ-Marlin loading in GPTQMarlinWeightLoader (#2300) 2024-09-25 05:55:39 +00:00
__init__.py feat(clients): Python client (#103) 2023-03-07 18:52:22 +01:00
cache.py fix(server): decrease memory fragmentation (#557) 2023-07-06 14:28:33 +02:00
cli.py feat: add ruff and resolve issue (#2262) 2024-09-25 05:46:24 +00:00
interceptor.py Aligin the source code with main branch 2.0.4 2024-09-24 03:06:55 +00:00
server.py Pr 2290 ci run (#2329) 2024-09-25 05:55:39 +00:00
tracing.py Add OTLP Service Name Environment Variable (#2076) 2024-09-24 03:51:26 +00:00