Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Error 500 Codechat-bison finetuning

I am trying to finetune codechat-bison, but I am getting the following error:

Creating PipelineJob
INFO:google.cloud.aiplatform.pipeline_jobs:Creating PipelineJob
---------------------------------------------------------------------------
_InactiveRpcError                         Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/google/api_core/grpc_helpers.py in error_remapped_callable(*args, **kwargs)
     71         try:
---> 72             return callable_(*args, **kwargs)
     73         except grpc.RpcError as exc:


10 frames
_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.INTERNAL
	details = "Internal error encountered."
	debug_error_string = "UNKNOWN:Error received from peer ipv4:209.85.145.95:443 {created_time:"2023-10-05T15:46:22.347313384+00:00", grpc_status:13, grpc_message:"Internal error encountered."}"
>
The above exception was the direct cause of the following exception:

InternalServerError                       Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/google/api_core/grpc_helpers.py in error_remapped_callable(*args, **kwargs)
     72             return callable_(*args, **kwargs)
     73         except grpc.RpcError as exc:
---> 74             raise exceptions.from_grpc_error(exc) from exc
     75 
     76     return error_remapped_callable

InternalServerError: 500 Internal error encountered.

after running

from google.colab import auth as google_auth
google_auth.authenticate_user()
import vertexai
from vertexai.preview.language_models import CodeChatModel

vertexai.init(project=MY_PROJECT, location="us-central1")

model = CodeChatModel.from_pretrained("codechat-bison@001")

model.tune_model(
training_data=JSONL_TRAIN,
train_steps=500,
tuning_job_location="us-central1",
tuned_model_location="us-central1",
)

Note that I have wuota of 8 in us-central-1 (restricted model training A100) as described in https://cloud.google.com/vertex-ai/docs/generative-ai/models/tune-code-models#generative-ai-tune-mod...
1 1 218
1 REPLY 1

found in stack overflow

https://stackoverflow.com/a/76297875

Go to the Dashboard on Vertex AI

Click the "Enable all related API button"