Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<feature>: codestral-2412 launch #3754

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
18 changes: 12 additions & 6 deletions notebooks/official/generative_ai/mistralai_intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,16 @@
"* ### Mistral Large (24.11)\n",
"Mistral Large (24.11) is the latest version of the Mistral Large model now with improved reasoning and function calling capabilities.\n",
"\n",
"* ### Mistral Large (2407)\n",
"* ### Codestral (24.12)\n",
"A cutting-edge model specifically designed for code generation, including fill-in-the-middle and code completion.\n",
"\n",
"* ### Mistral Large (24.07)\n",
"Complex tasks that require large reasoning capabilities or are highly specialized (synthetic text Generation, code generation, RAG, or agents). [Blog Post](https://mistral.ai/news/mistral-large-2407/)\n",
"\n",
"* ### Mistral Nemo\n",
"Reasoning, world knowledge, and coding performance are state-of-the-art in its size category.\n",
"\n",
"* ### Codestral\n",
"* ### Codestral (24.05)\n",
"Coding specific tasks to enhance developers productivity with code completion and fill-in-the-middle capabilities.\n",
"\n",
"\n",
Expand Down Expand Up @@ -160,10 +163,13 @@
},
"outputs": [],
"source": [
"MODEL = \"mistral-large-2411\" # @param [\"mistral-large-2411\", \"mistral-large\", \"mistral-nemo\", \"codestral\"]\n",
"MODEL = \"mistral-large-2411\" # @param [\"mistral-large-2411\", \"codestral-2412\", \"mistral-large\", \"mistral-nemo\", \"codestral\"]\n",
"if MODEL == \"mistral-large-2411\":\n",
" available_regions = [\"europe-west4\", \"us-central1\"]\n",
" available_versions = [\"latest\"]\n",
"elif MODEL == \"codestral-2412\":\n",
" available_regions = [\"europe-west4\", \"us-central1\"]\n",
" available_versions = [\"latest\"]\n",
"elif MODEL == \"mistral-large\":\n",
" available_regions = [\"europe-west4\", \"us-central1\"]\n",
" available_versions = [\"latest\", \"2407\"]\n",
Expand Down Expand Up @@ -328,7 +334,7 @@
"}\n",
"\n",
"request = json.dumps(PAYLOAD)\n",
"!curl -X POST -H \"Authorization: Bearer $(gcloud auth print-access-token)\" -H \"Content-Type: application/json\" {ENDPOINT}/v1/projects/{PROJECT_ID}/locations/{LOCATION}/publishers/mistralai/models/{MODEL}{SELECTED_MODEL_VERSION}:rawPredict -d '{request}'"
"!curl -X POST -v -H \"Authorization: Bearer $(gcloud auth print-access-token)\" -H \"Content-Type: application/json\" {ENDPOINT}/v1/projects/{PROJECT_ID}/locations/{LOCATION}/publishers/mistralai/models/{MODEL}{SELECTED_MODEL_VERSION}:rawPredict -d '{request}'"
]
},
{
Expand Down Expand Up @@ -460,7 +466,7 @@
},
"outputs": [],
"source": [
"MODEL = \"codestral\"\n",
"MODEL = \"codestral-2412\" # for 24.05 version of codestral use \"codestral\"\n",
"SELECTED_MODEL_VERSION = \"\"\n",
"\n",
"PAYLOAD = {\n",
Expand Down Expand Up @@ -490,7 +496,7 @@
},
"outputs": [],
"source": [
"MODEL = \"codestral\"\n",
"MODEL = \"codestral-2412\" # for 24.05 version of codestral use \"codestral\"\n",
"\n",
"# Get the access token\n",
"process = subprocess.Popen(\n",
Expand Down
Loading