Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Support for prem_1b_chat #116

Merged
merged 3 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion prem_utils/connectors/prem.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
from prem_utils.connectors import utils as connector_utils
from prem_utils.connectors.base import BaseConnector

DEFAULT_MAX_NEW_TOKENS = 1024


class PremConnector(BaseConnector):
def __init__(
Expand Down Expand Up @@ -45,7 +47,7 @@ async def chat_completion(
self,
model: str,
messages: list[dict[str, str]],
max_tokens: int | None = 128,
max_tokens: int | None = DEFAULT_MAX_NEW_TOKENS,
stream: bool = False,
temperature: float = 1,
top_p: float = 0.99,
Expand Down
3 changes: 2 additions & 1 deletion prem_utils/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -1452,10 +1452,11 @@
]
},
{

"tier": "low",
"slug": "prem-1b-chat",
"model_type": "text2text",
"coming_soon": true,
"context_window": 8192,
"group": "slm",
"environment": [
"development"
Expand Down
Loading