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

Create a Tuned model - No response

Hi 

I am trying to follow the youtube video for parameter based tuning - I created a .jsonl file with the input_text and output_text data and uploaded the same as in the Created tuned model Step - 1 - uploaded this file to the Bucket and selected the dataset location. This file was processed without any errors and the flow went to the #2 step - Model details - i provided a model name, adjusted the train steps and learning rate with the base model pre-populated as text-bison and finally selected the destination work directory.

The Start Tuning button becomes active as soon as i complete all the steps - but after i click on that one - there is a blip and then nothing happens - i do not get a success or failure dialog as shown in the youtube video.

Not sure what i am missing here - any help will be highly appreciated.

This is the generated code

 

from google.cloud import storage
import vertexai
from vertexai.preview.language_models import TextGenerationModel

dataset = """my .jsonl text data goes here with the correct format of input_text and output_text"""

#Uploads dataset to cloud storage
storage_client = storage.Client()
bucket = storage_client.bucket("cloud-ai-platform-MY_BUCKETID")
blob = bucket.blob("input.jsonl")
blob.upload_from_string(dataset)
training_data = "gs://cloud-ai-platform-MY_ID/input.jsonl"

vertexai.init(project="PROJECT_ID", location="us-central1")
model = TextGenerationModel.from_pretrained("text-bison@001")
model.tune_model(
    training_data=training_data,
    train_steps=100,
    tuning_job_location="europe-west4",
    tuned_model_location="us-central1",
)

 

somewhere in the documentation they have mentioned that Preview happens only in europe-west4 and if i get a 500 error i need to run a piece of code - in my case i do not get 500 or internal server error and the generated code also shows the tuning job location is europe-west4.

any pointers around why this is not working and what am i missing or the youtube video is missing as i am trying to follow it step by step.

Thanks in advance
@kvandres - tagging you on this post as you helped someone on a related issue .

Sai

2 1 1,029
1 REPLY 1

I'm running into the same issue where this is no response, neither error or success.

I came across this in the documentation

Note that during the preview phase, tuning can only happen in the "europe-west4" location and your model can only be deployed in the "us-central1" location.

and apparently I was tuning on "us-central1".  However my organizational policy prevents me from changing the region so I can't quite resolve this issue on my own without some administrative help.   You might be in similar situation so just wanted to provide this information.