skip to Main Content

Amazon web services – Problem with deploying finetuned gemma in AWS sagemaker as an endpoint

I have finetuned a gemma 7b LLM from HuggingFace using Lora and stored the model as a compressed .tar.gz file. I have finetuned locally in sagemaker. this is my .tar.gz file structure of finetuned model : finetuned_gemma/model-00004-of-00004.safetensors finetuned_gemma/tokenizer_config.json finetuned_gemma/model.safetensors.index.json finetuned_gemma/config.json…

VIEW QUESTION

Why do I get the error "Unrecognized request argument supplied: functions" when using `functions` when calling Azure OpenAI GPT?

I'm trying to use functions when calling Azure OpenAI GPT, as documented in https://platform.openai.com/docs/api-reference/chat/create#chat/create-functions I use: import openai openai.api_type = "azure" openai.api_base = "https://XXXXXXXX.openai.azure.com/" openai.api_version = "2023-06-01-preview" openai.api_key = os.getenv("OPENAI_API_KEY") response = openai.ChatCompletion.create( engine="gpt-35-turbo-XXX", model="gpt-35-turbo-0613-XXXX" messages=messages, functions=functions, function_call="auto", ) but…

VIEW QUESTION
Back To Top
Search