Skip to content

Commit

Permalink
Add Solar Pro model (#3198)
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanmai authored Dec 5, 2024
1 parent c0b2901 commit 2e16cf2
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/helm/clients/upstage_client.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from helm.clients.openai_client import OpenAIClient
from helm.common.cache import CacheConfig
from helm.tokenizers.tokenizer import Tokenizer


class UpstageChatClient(OpenAIClient):
"""Sends request to a Upstage model using a OpenAI-compatible Chat API."""

def __init__(
self,
tokenizer: Tokenizer,
tokenizer_name: str,
cache_config: CacheConfig,
api_key: str,
):
super().__init__(
tokenizer=tokenizer,
tokenizer_name=tokenizer_name,
cache_config=cache_config,
api_key=api_key,
org_id=None,
base_url="https://api.upstage.ai/v1/solar",
)
8 changes: 8 additions & 0 deletions src/helm/config/model_deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2751,6 +2751,14 @@ model_deployments:
client_spec:
class_name: "helm.clients.reka_client.RekaClient"

# Upstage
- name: upstage/solar-pro-241126
model_name: upstage/solar-pro-241126
tokenizer_name: upstage/solar-pro-preview-instruct
max_sequence_length: 32768
client_spec:
class_name: "helm.clients.upstage_client.UpstageChatClient"

# Diva Llama
- name: huggingface/diva-llama
model_name: stanford/diva-llama
Expand Down
9 changes: 9 additions & 0 deletions src/helm/config/model_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3146,6 +3146,15 @@ models:
release_date: 2024-09-11
tags: [TEXT_MODEL_TAG, LIMITED_FUNCTIONALITY_TEXT_MODEL_TAG]

- name: upstage/solar-pro-241126
display_name: Solar Pro
display_name: Solar Pro
description: Solar Pro is a LLM designed for instruction-following and processing structured formats like HTML and Markdown. It supports English, Korean, and Japanese and has domain expertise in Finance, Healthcare, and Legal. ([blog](https://www.upstage.ai/blog/press/solar-pro-aws)).
creator_organization_name: Upstage
access: limited
num_parameters: 22000000000
release_date: 2024-11-26
tags: [TEXT_MODEL_TAG, LIMITED_FUNCTIONALITY_TEXT_MODEL_TAG]

# Writer
- name: writer/palmyra-base
Expand Down

0 comments on commit 2e16cf2

Please sign in to comment.