enh: min_p

This commit is contained in:
Timothy J. Baek 2024-08-02 18:11:20 +02:00
parent 13b757d847
commit 8fcb5cee66

View File

@ -857,6 +857,12 @@ async def generate_chat_completion(
):
payload["options"]["top_p"] = model_info.params.get("top_p", None)
if (
model_info.params.get("min_p", None)
and payload["options"].get("min_p") is None
):
payload["options"]["min_p"] = model_info.params.get("min_p", None)
if (
model_info.params.get("use_mmap", None)
and payload["options"].get("use_mmap") is None