Skip to content

Commit

Permalink
Merge branch 'main' into add-text2sql
Browse files Browse the repository at this point in the history
  • Loading branch information
perlitz authored Jan 22, 2025
2 parents 236d332 + 6a99cc8 commit d0b2201
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/unitxt/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -2898,6 +2898,7 @@ def get_return_object(self, responses, return_meta_data):
"rits",
"azure",
"vertex-ai",
"replicate",
]


Expand Down Expand Up @@ -3026,6 +3027,28 @@ class CrossProviderInferenceEngine(InferenceEngine, StandardAPIParamsMixin):
"llama-3-1-70b-instruct": "vertex_ai/meta/llama-3.1-70b-instruct-maas",
"llama-3-1-405b-instruct": "vertex_ai/meta/llama-3.1-405b-instruct-maas",
},
"replicate": {
"granite-20b-code-instruct-8k": "replicate/ibm-granite/granite-20b-code-instruct-8k",
"granite-3-2b-instruct": "replicate/ibm-granite/granite-3.0-2b-instruct",
"granite-3-8b-instruct": "replicate/ibm-granite/granite-3.0-8b-instruct",
"granite-3-1-2b-instruct": "replicate/ibm-granite/granite-3.1-2b-instruct",
"granite-3-1-8b-instruct": "replicate/ibm-granite/granite-3.1-8b-instruct",
"granite-8b-code-instruct-128k": "replicate/ibm-granite/granite-8b-code-instruct-128k",
"llama-2-13b": "replicate/meta/llama-2-13b",
"llama-2-13b-chat": "replicate/meta/llama-2-13b-chat",
"llama-2-70b": "replicate/meta/llama-2-70b",
"llama-2-70b-chat": "replicate/meta/llama-2-70b-chat",
"llama-2-7b": "replicate/meta/llama-2-7b",
"llama-2-7b-chat": "replicate/meta/llama-2-7b-chat",
"llama-3-1-405b-instruct": "replicate/meta/meta-llama-3.1-405b-instruct",
"llama-3-70b": "replicate/meta/meta-llama-3-70b",
"llama-3-70b-instruct": "replicate/meta/meta-llama-3-70b-instruct",
"llama-3-8b": "replicate/meta/meta-llama-3-8b",
"llama-3-8b-instruct": "replicate/meta/meta-llama-3-8b-instruct",
"mistral-7b-instruct-v0.2": "replicate/mistralai/mistral-7b-instruct-v0.2",
"mistral-7b-v0.1": "replicate/mistralai/mistral-7b-v0.1",
"mixtral-8x7b-instruct-v0.1": "replicate/mistralai/mixtral-8x7b-instruct-v0.1",
},
}

_provider_to_base_class = {
Expand All @@ -3039,6 +3062,7 @@ class CrossProviderInferenceEngine(InferenceEngine, StandardAPIParamsMixin):
"rits": RITSInferenceEngine,
"azure": LiteLLMInferenceEngine,
"vertex-ai": LiteLLMInferenceEngine,
"replicate": LiteLLMInferenceEngine,
}

_provider_param_renaming = {
Expand Down

0 comments on commit d0b2201

Please sign in to comment.