text-generation-inference/server/text_generation_server/models
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
..
custom_modeling Fix the prefix for OPT model in opt_modelling.py #2370 (CI RUN) (#2371) 2024-09-25 05:55:39 +00:00
__init__.py Pr 2374 ci branch (#2378) 2024-09-25 05:55:39 +00:00
bloom.py Refactor dead code - Removing all flash_xxx.py files. (#2166) 2024-09-25 05:20:28 +00:00
causal_lm.py feat: add ruff and resolve issue (#2262) 2024-09-25 05:46:24 +00:00
flash_causal_lm.py Pr 2290 ci run (#2329) 2024-09-25 05:55:39 +00:00
galactica.py feat: add ruff and resolve issue (#2262) 2024-09-25 05:46:24 +00:00
globals.py Pr 2290 ci run (#2329) 2024-09-25 05:55:39 +00:00
idefics_causal_lm.py feat: add ruff and resolve issue (#2262) 2024-09-25 05:46:24 +00:00
idefics.py enable HuggingFaceM4/idefics-9b in intel gpu (#2338) 2024-09-25 05:55:39 +00:00
mamba.py feat: add ruff and resolve issue (#2262) 2024-09-25 05:46:24 +00:00
model.py feat: add ruff and resolve issue (#2262) 2024-09-25 05:46:24 +00:00
pali_gemma.py feat: add ruff and resolve issue (#2262) 2024-09-25 05:46:24 +00:00
seq2seq_lm.py feat: add ruff and resolve issue (#2262) 2024-09-25 05:46:24 +00:00
types.py feat: add ruff and resolve issue (#2262) 2024-09-25 05:46:24 +00:00
vlm_causal_lm.py fix crash in multi-modal (#2245) 2024-09-25 05:39:58 +00:00