From 8e7876ff160a7155e3aa0aeb224366300afbb6f1 Mon Sep 17 00:00:00 2001 From: Pierce Kelaita Date: Thu, 2 May 2024 00:58:32 -0700 Subject: [PATCH] add full provider names --- README.md | 32 ++++++++++++++++---------------- l2m2/model_info.py | 6 ++++++ scripts/create_model_table.py | 7 ++++--- 3 files changed, 26 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index cd1658f..3a4d9cd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # L2M2: A Simple Python LLM Manager 💬👍 -[![Tests](https://github.com/pkelaita/l2m2/actions/workflows/tests.yml/badge.svg?timestamp=1714634875)](https://github.com/pkelaita/l2m2/actions/workflows/tests.yml) [![PyPI version](https://badge.fury.io/py/l2m2.svg?timestamp=1714634875)](https://badge.fury.io/py/l2m2) +[![Tests](https://github.com/pkelaita/l2m2/actions/workflows/tests.yml/badge.svg?timestamp=1714636672)](https://github.com/pkelaita/l2m2/actions/workflows/tests.yml) [![PyPI version](https://badge.fury.io/py/l2m2.svg?timestamp=1714636672)](https://badge.fury.io/py/l2m2) **L2M2** ("LLM Manager" → "LLMM" → "L2M2") is a very simple LLM manager for Python that exposes lots of models through a unified API. This is useful for evaluation, demos, and other apps that need to easily be model-agnostic. @@ -14,21 +14,21 @@ L2M2 currently supports the following models: -| Model Name | Provider(s) | Model Version(s) | -| ------------------ | ---------------------------------------------------------------------- | -------------------------------------------------- | -| `gpt-4-turbo` | [`openai`](https://openai.com/product) | `gpt-4-turbo-2024-04-09` | -| `gpt-4-turbo-0125` | [`openai`](https://openai.com/product) | `gpt-4-0125-preview` | -| `gemini-1.5-pro` | [`google`](https://ai.google.dev/) | `gemini-1.5-pro-latest` | -| `gemini-1.0-pro` | [`google`](https://ai.google.dev/) | `gemini-1.0-pro-latest` | -| `claude-3-opus` | [`anthropic`](https://www.anthropic.com/api) | `claude-3-opus-20240229` | -| `claude-3-sonnet` | [`anthropic`](https://www.anthropic.com/api) | `claude-3-sonnet-20240229` | -| `claude-3-haiku` | [`anthropic`](https://www.anthropic.com/api) | `claude-3-haiku-20240307` | -| `command-r` | [`cohere`](https://docs.cohere.com/) | `command-r` | -| `command-r-plus` | [`cohere`](https://docs.cohere.com/) | `command-r-plus` | -| `mixtral-8x7b` | [`groq`](https://wow.groq.com/) | `mixtral-8x7b-32768` | -| `gemma-7b` | [`groq`](https://wow.groq.com/) | `gemma-7b-it` | -| `llama3-8b` | [`groq`](https://wow.groq.com/), [`replicate`](https://replicate.com/) | `llama3-8b-8192`, `meta/meta-llama-3-8b-instruct` | -| `llama3-70b` | [`groq`](https://wow.groq.com/), [`replicate`](https://replicate.com/) | `llama3-70b-8192`, `meta/meta-llama-3-8b-instruct` | +| Model Name | Provider(s) | Model Version(s) | +| ------------------ | ------------------------------------------------------------------ | -------------------------------------------------- | +| `gpt-4-turbo` | [OpenAI](https://openai.com/product) | `gpt-4-turbo-2024-04-09` | +| `gpt-4-turbo-0125` | [OpenAI](https://openai.com/product) | `gpt-4-0125-preview` | +| `gemini-1.5-pro` | [Google](https://ai.google.dev/) | `gemini-1.5-pro-latest` | +| `gemini-1.0-pro` | [Google](https://ai.google.dev/) | `gemini-1.0-pro-latest` | +| `claude-3-opus` | [Anthropic](https://www.anthropic.com/api) | `claude-3-opus-20240229` | +| `claude-3-sonnet` | [Anthropic](https://www.anthropic.com/api) | `claude-3-sonnet-20240229` | +| `claude-3-haiku` | [Anthropic](https://www.anthropic.com/api) | `claude-3-haiku-20240307` | +| `command-r` | [Cohere](https://docs.cohere.com/) | `command-r` | +| `command-r-plus` | [Cohere](https://docs.cohere.com/) | `command-r-plus` | +| `mixtral-8x7b` | [Groq](https://wow.groq.com/) | `mixtral-8x7b-32768` | +| `gemma-7b` | [Groq](https://wow.groq.com/) | `gemma-7b-it` | +| `llama3-8b` | [Groq](https://wow.groq.com/), [Replicate](https://replicate.com/) | `llama3-8b-8192`, `meta/meta-llama-3-8b-instruct` | +| `llama3-70b` | [Groq](https://wow.groq.com/), [Replicate](https://replicate.com/) | `llama3-70b-8192`, `meta/meta-llama-3-8b-instruct` | You can also call any language model from the above providers that L2M2 doesn't officially support, without guarantees of well-defined behavior. diff --git a/l2m2/model_info.py b/l2m2/model_info.py index 56d094f..47735ed 100644 --- a/l2m2/model_info.py +++ b/l2m2/model_info.py @@ -7,21 +7,27 @@ PROVIDER_INFO = { "openai": { + "name": "OpenAI", "homepage": "https://openai.com/product", }, "google": { + "name": "Google", "homepage": "https://ai.google.dev/", }, "anthropic": { + "name": "Anthropic", "homepage": "https://www.anthropic.com/api", }, "cohere": { + "name": "Cohere", "homepage": "https://docs.cohere.com/", }, "groq": { + "name": "Groq", "homepage": "https://wow.groq.com/", }, "replicate": { + "name": "Replicate", "homepage": "https://replicate.com/", }, } diff --git a/scripts/create_model_table.py b/scripts/create_model_table.py index a5ea0dc..be358c8 100644 --- a/scripts/create_model_table.py +++ b/scripts/create_model_table.py @@ -11,9 +11,10 @@ rows = "" -def get_provider_link(provider_name): - provider_homepage = PROVIDER_INFO[provider_name]["homepage"] - return f"[`{provider_name}`]({provider_homepage})" +def get_provider_link(provider_key): + provider_name = PROVIDER_INFO[provider_key]["name"] + provider_homepage = PROVIDER_INFO[provider_key]["homepage"] + return f"[{provider_name}]({provider_homepage})" def make_row(model_name):