You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I bring my own data, I can't specify a model otherwise I get an error. However, if I don't specify my own model, it uses a default that has safety settings set to None, which I do not qualify for. eg.
The error is due to the GenerationModel used with safety settings BLOCK_NONE, that is done within my project but I can not control.
When I try to specify a model (with BLOCK_HIGH safety settings) in evaluate(model=model) it won't permit it.
I would like either:
to be able to use my own model object (perhaps eval_model?)
or have the default model use BLOCK_HIGH safety setting defaults.
Relevant log output
When running with no `model` specified:
Error: /PredictionServiceV1.GenerateContent to [2002:a05:7512:803::]:4084 : APP_ERROR(3) User has requested a restricted HarmBlockThreshold setting BLOCK_NONE. You can get access either (a) through an allowlist via your Google account team, or (b) by switching your account type to monthly invoiced billing via this instruction: https://cloud.google.com/billing/docs/how-to/invoiced-billing..
When running with own model (which has BLOCK_HIGH)
The `model` parameter or `baseline_model`in pairwise metric is specified, but the evaluation `dataset` contains model response column or baseline model response column `response` to perform bring-your-own-response(BYOR) evaluation. If you would like to perform evaluation using the dataset with the existing model response column or or baseline model response column `response`, please remove `model` parameter in`EvalTask.evaluate()`functionor`baseline_model`in`PairwiseMetric`
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
jsondai
changed the title
[Bug]: Safety settings prevent using BYOD to Vertex GenAI evals
[Bug]: Unable to set Safety settings to model using Vertex GenAI evals
Sep 17, 2024
When running with no model specified: "User has requested a restricted HarmBlockThreshold setting BLOCK_NONE. You can get access either (a) through an allowlist via your Google account team, or (b) by switching your account type to monthly invoiced billing via this instruction: https://cloud.google.com/billing/docs/how-to/invoiced-billing."
Thanks for reporting this. A fix is created and deployed. This should be resolved now. Could you try this again?
When running with own model (which has BLOCK_HIGH): The model parameter or baseline_model in pairwise metric is specified, but the evaluation dataset contains model response column or baseline model response column response to perform bring-your-own-response(BYOR) evaluation. If you would like to perform evaluation using the dataset with the existing model response column or or baseline model response column response, please remove model parameter in EvalTask.evaluate() function or baseline_model in PairwiseMetric
The issue is that there is a column named "response" in your dataset. If you remove this column, then the GenAI Eval SDK can use the input model (BLOCK_HIGH is not required.) to create a new response for each prompt input of your dataset for evaluation.
@jsondai thanks for quick turnaround! Will try it out. Regarding 2. I want to check my pre-made responses, so was only adding my own model parameter not to test that model, but to work around the default model being blocked assessing my pre-done responses.
File Name
https://cloud.google.com/vertex-ai/generative-ai/docs/models/run-evaluation
What happened?
When I bring my own data, I can't specify a model otherwise I get an error. However, if I don't specify my own model, it uses a default that has safety settings set to None, which I do not qualify for. eg.
The error is due to the GenerationModel used with safety settings BLOCK_NONE, that is done within my project but I can not control.
When I try to specify a model (with BLOCK_HIGH safety settings) in
evaluate(model=model)
it won't permit it.I would like either:
eval_model
?)Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: