From 81089726ecf95c3bfe79c8eec4271c62bf8c4533 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 2 Aug 2024 11:12:27 -0700 Subject: [PATCH] support for granite models --- core/llm/llms/Ollama.ts | 4 ++ docs/static/schemas/config.json | 48 ++++++++++++++- .../src/main/resources/config_schema.json | 48 ++++++++++++++- extensions/vscode/continue_rc_schema.json | 55 +++++++++++++++++- gui/public/logos/ibm.png | Bin 0 -> 9543 bytes gui/src/pages/AddNewModel/configs/models.ts | 38 ++++++++++++ 6 files changed, 187 insertions(+), 6 deletions(-) create mode 100644 gui/public/logos/ibm.png diff --git a/core/llm/llms/Ollama.ts b/core/llm/llms/Ollama.ts index fe2eb6d6a..fe5ab7f55 100644 --- a/core/llm/llms/Ollama.ts +++ b/core/llm/llms/Ollama.ts @@ -106,6 +106,10 @@ class Ollama extends BaseLLM { "starcoder-3b": "starcoder:3b", "starcoder2-3b": "starcoder2:3b", "stable-code-3b": "stable-code:3b", + "granite-code-3b": "granite-code:3b", + "granite-code-8b": "granite-code:8b", + "granite-code-20b": "granite-code:20b", + "granite-code-34b": "granite-code:34b", }[this.model] ?? this.model ); } diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 7367e0ce2..107c72be3 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -187,7 +187,8 @@ "cloudflare", "deepseek", "azure", - "msty" + "msty", + "watsonx" ], "markdownEnumDescriptions": [ "### OpenAI\nUse gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/openai)", @@ -211,7 +212,8 @@ "### Cloudflare Workers AI\n\n[Reference](https://developers.cloudflare.com/workers-ai/)", "### Deepseek\n Deepseek's API provides the best pricing for their state-of-the-art Deepseek Coder models. To get started, obtain an API key from [their console](https://platform.deepseek.com/api_keys)", "### Azure OpenAI\n Azure OpenAI lets you securely run OpenAI's models on Azure. To get started, follow the steps [here](https://docs.continue.dev/reference/Model%20Providers/azure)", - "### Msty\nMsty is the simplest way to get started with online or local LLMs on all desktop platforms - Windows, Mac, and Linux. No fussing around, one-click and you are up and running. To get started, follow these steps:\n1. Download from [Msty.app](https://msty.app/), open the application, and click 'Setup Local AI'.\n2. Go to the Local AI Module page and download a model of your choice.\n3. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://continue.dev/docs/reference/Model%20Providers/Msty)" + "### Msty\nMsty is the simplest way to get started with online or local LLMs on all desktop platforms - Windows, Mac, and Linux. No fussing around, one-click and you are up and running. To get started, follow these steps:\n1. Download from [Msty.app](https://msty.app/), open the application, and click 'Setup Local AI'.\n2. Go to the Local AI Module page and download a model of your choice.\n3. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://continue.dev/docs/reference/Model%20Providers/Msty)", + "### WatsonX\nWatsonx, developed by IBM, offers a variety of pre-trained AI foundation models that can be used for natural language processing (NLP), computer vision, and speech recognition tasks." ], "type": "string" }, @@ -1185,6 +1187,48 @@ } } } + }, + { + "if": { + "properties": { + "provider": { + "enum": ["watsonx"] + } + }, + "required": ["provider"] + }, + "then": { + "properties": { + "watsonxUrl": { + "type": "string" + }, + "watsonxApiKey": { + "type": "string" + }, + "watsonxZenApiKeyBase64": { + "type": "string" + }, + "watsonxUsername": { + "type": "string" + }, + "watsonxPassword": { + "type": "string" + }, + "watsonxProjectId": { + "type": "string" + }, + "model": { + "enum": [ + "ibm/granite-13b-chat-v2", + "ibm/granite-13b-instruct-v2", + "mistralai/mistral-large", + "meta-llama/llama-3-8b-instruct", + "meta-llama/llama-3-70b-instruct" + ] + } + }, + "required": ["watsonxUrl", "watsonxProjectId"] + } } ] }, diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 7367e0ce2..107c72be3 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -187,7 +187,8 @@ "cloudflare", "deepseek", "azure", - "msty" + "msty", + "watsonx" ], "markdownEnumDescriptions": [ "### OpenAI\nUse gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/openai)", @@ -211,7 +212,8 @@ "### Cloudflare Workers AI\n\n[Reference](https://developers.cloudflare.com/workers-ai/)", "### Deepseek\n Deepseek's API provides the best pricing for their state-of-the-art Deepseek Coder models. To get started, obtain an API key from [their console](https://platform.deepseek.com/api_keys)", "### Azure OpenAI\n Azure OpenAI lets you securely run OpenAI's models on Azure. To get started, follow the steps [here](https://docs.continue.dev/reference/Model%20Providers/azure)", - "### Msty\nMsty is the simplest way to get started with online or local LLMs on all desktop platforms - Windows, Mac, and Linux. No fussing around, one-click and you are up and running. To get started, follow these steps:\n1. Download from [Msty.app](https://msty.app/), open the application, and click 'Setup Local AI'.\n2. Go to the Local AI Module page and download a model of your choice.\n3. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://continue.dev/docs/reference/Model%20Providers/Msty)" + "### Msty\nMsty is the simplest way to get started with online or local LLMs on all desktop platforms - Windows, Mac, and Linux. No fussing around, one-click and you are up and running. To get started, follow these steps:\n1. Download from [Msty.app](https://msty.app/), open the application, and click 'Setup Local AI'.\n2. Go to the Local AI Module page and download a model of your choice.\n3. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://continue.dev/docs/reference/Model%20Providers/Msty)", + "### WatsonX\nWatsonx, developed by IBM, offers a variety of pre-trained AI foundation models that can be used for natural language processing (NLP), computer vision, and speech recognition tasks." ], "type": "string" }, @@ -1185,6 +1187,48 @@ } } } + }, + { + "if": { + "properties": { + "provider": { + "enum": ["watsonx"] + } + }, + "required": ["provider"] + }, + "then": { + "properties": { + "watsonxUrl": { + "type": "string" + }, + "watsonxApiKey": { + "type": "string" + }, + "watsonxZenApiKeyBase64": { + "type": "string" + }, + "watsonxUsername": { + "type": "string" + }, + "watsonxPassword": { + "type": "string" + }, + "watsonxProjectId": { + "type": "string" + }, + "model": { + "enum": [ + "ibm/granite-13b-chat-v2", + "ibm/granite-13b-instruct-v2", + "mistralai/mistral-large", + "meta-llama/llama-3-8b-instruct", + "meta-llama/llama-3-70b-instruct" + ] + } + }, + "required": ["watsonxUrl", "watsonxProjectId"] + } } ] }, diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index b6be9d37c..2260fa82f 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -190,7 +190,8 @@ "cloudflare", "deepseek", "azure", - "msty" + "msty", + "watsonx" ], "markdownEnumDescriptions": [ "### OpenAI\nUse gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/openai)", @@ -214,7 +215,8 @@ "### Cloudflare Workers AI\n\n[Reference](https://developers.cloudflare.com/workers-ai/)", "### Deepseek\n Deepseek's API provides the best pricing for their state-of-the-art Deepseek Coder models. To get started, obtain an API key from [their console](https://platform.deepseek.com/api_keys)", "### Azure OpenAI\n Azure OpenAI lets you securely run OpenAI's models on Azure. To get started, follow the steps [here](https://docs.continue.dev/reference/Model%20Providers/azure)", - "### Msty\nMsty is the simplest way to get started with online or local LLMs on all desktop platforms - Windows, Mac, and Linux. No fussing around, one-click and you are up and running. To get started, follow these steps:\n1. Download from [Msty.app](https://msty.app/), open the application, and click 'Setup Local AI'.\n2. Go to the Local AI Module page and download a model of your choice.\n3. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://continue.dev/docs/reference/Model%20Providers/Msty)" + "### Msty\nMsty is the simplest way to get started with online or local LLMs on all desktop platforms - Windows, Mac, and Linux. No fussing around, one-click and you are up and running. To get started, follow these steps:\n1. Download from [Msty.app](https://msty.app/), open the application, and click 'Setup Local AI'.\n2. Go to the Local AI Module page and download a model of your choice.\n3. Once the model has finished downloading, you can start asking questions through Continue.\n> [Reference](https://continue.dev/docs/reference/Model%20Providers/Msty)", + "### WatsonX\nWatsonx, developed by IBM, offers a variety of pre-trained AI foundation models that can be used for natural language processing (NLP), computer vision, and speech recognition tasks." ], "type": "string" }, @@ -1312,6 +1314,55 @@ } } } + }, + { + "if": { + "properties": { + "provider": { + "enum": [ + "watsonx" + ] + } + }, + "required": [ + "provider" + ] + }, + "then": { + "properties": { + "watsonxUrl": { + "type": "string" + }, + "watsonxApiKey": { + "type": "string" + }, + "watsonxZenApiKeyBase64": { + "type": "string" + }, + "watsonxUsername": { + "type": "string" + }, + "watsonxPassword": { + "type": "string" + }, + "watsonxProjectId": { + "type": "string" + }, + "model": { + "enum": [ + "ibm/granite-13b-chat-v2", + "ibm/granite-13b-instruct-v2", + "mistralai/mistral-large", + "meta-llama/llama-3-8b-instruct", + "meta-llama/llama-3-70b-instruct" + ] + } + }, + "required": [ + "watsonxUrl", + "watsonxProjectId" + ] + } } ] }, diff --git a/gui/public/logos/ibm.png b/gui/public/logos/ibm.png new file mode 100644 index 0000000000000000000000000000000000000000..be88ec2edbe33cc630d9833f861d565d4b4d8865 GIT binary patch literal 9543 zcmeHMcT`i^w+^6U8KW~gqYeadybx&#O-kriZbDHYbflN46d{PA+lCoI&>MPJ2q+>V zAQ-x$VyGIVH7Cnu-Ht+` zcEW}y%upy1Nfb)hdg~VOB=zz&Kk&23)4dXl9H;1xuq)kvCAN zZ{Shn7ZfT`5rvv?LZJxBDAYc`^vbi^U|@?2>GTQk3qJhgRT1E4o1dXg01Abc7kq{I zX*0XQLs2Shd{XqY2<8Vd!rn*dWfbbS7w`!Kiz|K8gCS*5kOB5D-$5<<0bV3@lu7@8+dv>MLJ$GgPJ-dCX9!4+gp#CPOOAOEq-`wOQ?&VbUqwqHmUg?h(AS=9X(c^-tp5Rjvrri2Rqo1Cvy&7;+riCCKL{FRRm$5Ydm7a|# zwn1gC`hEqIt%U6ZIVOM5@;oJKU=_WlA(fsc^F){E+JYuq*w=byd`4G|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phaIbK^!r=R{BX%&aEqki0{mJz&@n<0(i4#1l8Pi5RX6fzIv|`?R7peRwfkHlRJAn1 z9q$I!*dzOs_-@opYpejP&x2;iG~3zfpl*uW1wgGE11?L^+SNu6*f!uLQ3D+iD<4U> zm5O)}`pz=2M2F=$Gfo+S_9e7!9{`Q!k5%5L0gD;tAV6t$QEQ-q`=SQi!vTai11$&o z^H(4d)%8>axcL2z5JHIdl%pfzuwPKPkdU>V4~fTsA~HFybQZ_Xs%}(s=IHV6u%oPQ zM0>t!edZf9o`l{KiU&7jOP!RsXXQ6*|0qT_BtA;>`H z*qs77I=C+CrrT$5#Ncx5;%&g%W(Hr_2AxBi>D3Xyt-u}Ezm44g%=?c8P^fw$e*@*~ zT$6RRIS<%Fih9zT>gG&!C%F2%gCCT#qLPM!qOyYWQ42*)!ck>{ikh6FB0*7c%k|6m z{?`I;UpI;e?SB?1s#z$h5LA^3M>YOl5S&}@0u~qxBn0?+P=lQP-BGZ&v!}bUvnR#% zf}|Qw1E;B=DS1{&P4bF{nxmSkB#^GIps22(q9o}>rTP)@_@JO597V7Qe8D1|ufM0c zGx-hJc)ws{3$H+L7XsmguWO*UyAPE>I0L2zpp^1As__43&UeuSf}uOb(~FAIR8z$E zI0zW&Kll0XIaU-msuxOGRZ)@s2V*CgbKoDcj49skRGObV>bqKaKOaxM5=#>>Y2QC5 zS%6t6rK3vfn#!t2)iv@1RIR|2AOA7MoDvMotwB0=%qC2j00#B`F-SIpQ67|w?!W?g zUq7lqild7&)z!;U1y6DDR=DWv>8k)9Dp38MeFFS|X?>_T@PC3geHLtmf=`;9C_3hJ G?Y{sqWr=41 literal 0 HcmV?d00001 diff --git a/gui/src/pages/AddNewModel/configs/models.ts b/gui/src/pages/AddNewModel/configs/models.ts index 2f5e75e12..21fddbb17 100644 --- a/gui/src/pages/AddNewModel/configs/models.ts +++ b/gui/src/pages/AddNewModel/configs/models.ts @@ -361,6 +361,44 @@ export const models: { [key: string]: ModelPackage } = { ], isOpenSource: true, }, + graniteCodeOpenSource: { + title: "Granite Code", + description: + "The Granite model series is a family of IBM-trained, dense decoder-only models, which are particularly well-suited for generative tasks.", + params: { + model: "granite-code", + contextLength: 20_000, + title: "Granite Code", + systemMessage: `You are Granite Chat, an AI language model developed by IBM. You are a cautious assistant. You carefully follow instructions. You are helpful and harmless and you follow ethical guidelines and promote positive behavior. You always respond to greetings (for example, hi, hello, g'day, morning, afternoon, evening, night, what's up, nice to meet you, sup, etc) with "Hello! I am Granite Chat, created by IBM. How can I help you today?". Please do not say anything else and do not start a conversation.`, + }, + providerOptions: ["ollama", "lmstudio", "llama.cpp", "replicate"], + icon: "ibm.png", + isOpenSource: true, + dimensions: [ + { + name: "Parameter Count", + description: "The number of parameters in the model", + options: { + "3b": { + model: "granite-code-3b", + title: "Granite Code 3B", + }, + "8b": { + model: "granite-code-8b", + title: "Granite Code 8B", + }, + "20b": { + model: "granite-code-20b", + title: "Granite Code 20B", + }, + "34b": { + model: "granite-code-34b", + title: "Granite Code 34B", + }, + }, + }, + ], + }, wizardCoder: { title: "WizardCoder", description: