Generative AI with Vertex AI: Getting Started Rezensionen
60060 Rezensionen
Fazle S. · Vor mehr als ein Jahr überprüft
Nick J. · Vor mehr als ein Jahr überprüft
Teena L. · Vor mehr als ein Jahr überprüft
vaishali s. · Vor mehr als ein Jahr überprüft
I was not able to complete any of the lab and only got errors such as: --------------------------------------------------------------------------- _InactiveRpcError Traceback (most recent call last) File ~/.local/lib/python3.10/site-packages/google/api_core/grpc_helpers.py:76, in _wrap_unary_errors.<locals>.error_remapped_callable(*args, **kwargs) 75 try: ---> 76 return callable_(*args, **kwargs) 77 except grpc.RpcError as exc: File /opt/conda/lib/python3.10/site-packages/grpc/_channel.py:1181, in _UnaryUnaryMultiCallable.__call__(self, request, timeout, metadata, credentials, wait_for_ready, compression) 1175 ( 1176 state, 1177 call, 1178 ) = self._blocking( 1179 request, timeout, metadata, credentials, wait_for_ready, compression 1180 ) -> 1181 return _end_unary_response_blocking(state, call, False, None) File /opt/conda/lib/python3.10/site-packages/grpc/_channel.py:1006, in _end_unary_response_blocking(state, call, with_call, deadline) 1005 else: -> 1006 raise _InactiveRpcError(state) _InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status = StatusCode.PERMISSION_DENIED details = "Permission denied on resource project [your-project-id]." debug_error_string = "UNKNOWN:Error received from peer ipv4:142.251.183.95:443 {grpc_message:"Permission denied on resource project [your-project-id].", grpc_status:7, created_time:"2024-07-18T16:26:13.500697018+00:00"}" > The above exception was the direct cause of the following exception: PermissionDenied Traceback (most recent call last) Cell In[39], line 3 1 prompt = "What is a large language model?" ----> 3 response = generation_model.predict(prompt=prompt) 5 print(response.text) File ~/.local/lib/python3.10/site-packages/vertexai/language_models/_language_models.py:990, in _TextGenerationModel.predict(self, prompt, max_output_tokens, temperature, top_k, top_p, stop_sequences, candidate_count, grounding_source) 964 """Gets model response for a single prompt. 965 966 Args: (...) 977 A `MultiCandidateTextGenerationResponse` object that contains the text produced by the model. 978 """ 979 prediction_request = _create_text_generation_prediction_request( 980 prompt=prompt, 981 max_output_tokens=max_output_tokens, (...) 987 grounding_source=grounding_source, 988 ) --> 990 prediction_response = self._endpoint.predict( 991 instances=[prediction_request.instance], 992 parameters=prediction_request.parameters, 993 ) 995 return _parse_text_generation_model_multi_candidate_response( 996 prediction_response 997 ) File ~/.local/lib/python3.10/site-packages/google/cloud/aiplatform/models.py:1563, in Endpoint.predict(self, instances, parameters, timeout, use_raw_predict) 1550 return Prediction( 1551 predictions=json_response["predictions"], 1552 deployed_model_id=raw_predict_response.headers[ (...) 1560 ), 1561 ) 1562 else: -> 1563 prediction_response = self._prediction_client.predict( 1564 endpoint=self._gca_resource.name, 1565 instances=instances, 1566 parameters=parameters, 1567 timeout=timeout, 1568 ) 1570 return Prediction( 1571 predictions=[ 1572 json_format.MessageToDict(item) (...) 1577 model_resource_name=prediction_response.model, 1578 ) File ~/.local/lib/python3.10/site-packages/google/cloud/aiplatform_v1/services/prediction_service/client.py:604, in PredictionServiceClient.predict(self, request, endpoint, instances, parameters, retry, timeout, metadata) 599 metadata = tuple(metadata) + ( 600 gapic_v1.routing_header.to_grpc_metadata((("endpoint", request.endpoint),)), 601 ) 603 # Send the request. --> 604 response = rpc( 605 request, 606 retry=retry, 607 timeout=timeout, 608 metadata=metadata, 609 ) 611 # Done; return the response. 612 return response File ~/.local/lib/python3.10/site-packages/google/api_core/gapic_v1/method.py:131, in _GapicCallable.__call__(self, timeout, retry, compression, *args, **kwargs) 128 if self._compression is not None: 129 kwargs["compression"] = compression --> 131 return wrapped_func(*args, **kwargs) File ~/.local/lib/python3.10/site-packages/google/api_core/grpc_helpers.py:78, in _wrap_unary_errors.<locals>.error_remapped_callable(*args, **kwargs) 76 return callable_(*args, **kwargs) 77 except grpc.RpcError as exc: ---> 78 raise exceptions.from_grpc_error(exc) from exc PermissionDenied: 403 Permission denied on resource project [your-project-id]. [links { description: "Google developers console" url: "https://console.developers.google.com" } , reason: "CONSUMER_INVALID" domain: "googleapis.com" metadata { key: "service" value: "aiplatform.googleapis.com" } metadata { key: "consumer" value: "projects/[your-project-id]" } ]
Ben W. · Vor mehr als ein Jahr überprüft
王傳燁 W. · Vor mehr als ein Jahr überprüft
Matthew L. · Vor mehr als ein Jahr überprüft
Error when trying to make first API call: --------------------------------------------------------------------------- _InactiveRpcError Traceback (most recent call last) File ~/.local/lib/python3.10/site-packages/google/api_core/grpc_helpers.py:76, in _wrap_unary_errors.<locals>.error_remapped_callable(*args, **kwargs) 75 try: ---> 76 return callable_(*args, **kwargs) 77 except grpc.RpcError as exc: File /opt/conda/lib/python3.10/site-packages/grpc/_channel.py:1181, in _UnaryUnaryMultiCallable.__call__(self, request, timeout, metadata, credentials, wait_for_ready, compression) 1175 ( 1176 state, 1177 call, 1178 ) = self._blocking( 1179 request, timeout, metadata, credentials, wait_for_ready, compression 1180 ) -> 1181 return _end_unary_response_blocking(state, call, False, None) File /opt/conda/lib/python3.10/site-packages/grpc/_channel.py:1006, in _end_unary_response_blocking(state, call, with_call, deadline) 1005 else: -> 1006 raise _InactiveRpcError(state) _InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status = StatusCode.PERMISSION_DENIED details = "Permission denied on resource project [your-project-id]." debug_error_string = "UNKNOWN:Error received from peer ipv4:108.177.121.95:443 {grpc_message:"Permission denied on resource project [your-project-id].", grpc_status:7, created_time:"2024-07-18T15:35:29.041597726+00:00"}" > The above exception was the direct cause of the following exception: PermissionDenied Traceback (most recent call last) Cell In[7], line 3 1 prompt = "What is a large language model?" ----> 3 response = generation_model.predict(prompt=prompt) 5 print(response.text) File ~/.local/lib/python3.10/site-packages/vertexai/language_models/_language_models.py:990, in _TextGenerationModel.predict(self, prompt, max_output_tokens, temperature, top_k, top_p, stop_sequences, candidate_count, grounding_source) 964 """Gets model response for a single prompt. 965 966 Args: (...) 977 A MultiCandidateTextGenerationResponse object that contains the text produced by the model. 978 """ 979 prediction_request = _create_text_generation_prediction_request( 980 prompt=prompt, 981 max_output_tokens=max_output_tokens, (...) 987 grounding_source=grounding_source, 988 ) --> 990 prediction_response = self._endpoint.predict( 991 instances=[prediction_request.instance], 992 parameters=prediction_request.parameters, 993 ) 995 return _parse_text_generation_model_multi_candidate_response( 996 prediction_response 997 ) File ~/.local/lib/python3.10/site-packages/google/cloud/aiplatform/models.py:1563, in Endpoint.predict(self, instances, parameters, timeout, use_raw_predict) 1550 return Prediction( 1551 predictions=json_response["predictions"], 1552 deployed_model_id=raw_predict_response.headers[ (...) 1560 ), 1561 ) 1562 else: -> 1563 prediction_response = self._prediction_client.predict( 1564 endpoint=self._gca_resource.name, 1565 instances=instances, 1566 parameters=parameters, 1567 timeout=timeout, 1568 ) 1570 return Prediction( 1571 predictions=[ 1572 json_format.MessageToDict(item) (...) 1577 model_resource_name=prediction_response.model, 1578 ) File ~/.local/lib/python3.10/site-packages/google/cloud/aiplatform_v1/services/prediction_service/client.py:604, in PredictionServiceClient.predict(self, request, endpoint, instances, parameters, retry, timeout, metadata) 599 metadata = tuple(metadata) + ( 600 gapic_v1.routing_header.to_grpc_metadata((("endpoint", request.endpoint),)), 601 ) 603 # Send the request. --> 604 response = rpc( 605 request, 606 retry=retry, 607 timeout=timeout, 608 metadata=metadata, 609 ) 611 # Done; return the response. 612 return response File ~/.local/lib/python3.10/site-packages/google/api_core/gapic_v1/method.py:131, in _GapicCallable.__call__(self, timeout, retry, compression, *args, **kwargs) 128 if self._compression is not None: 129 kwargs["compression"] = compression --> 131 return wrapped_func(*args, **kwargs) File ~/.local/lib/python3.10/site-packages/google/api_core/grpc_helpers.py:78, in _wrap_unary_errors.<locals>.error_remapped_callable(*args, **kwargs) 76 return callable_(*args, **kwargs) 77 except grpc.RpcError as exc: ---> 78 raise exceptions.from_grpc_error(exc) from exc PermissionDenied: 403 Permission denied on resource project [your-project-id]. [links { description: "Google developers console" url: "https://console.developers.google.com" } , reason: "CONSUMER_INVALID" domain: "googleapis.com" metadata { key: "service" value: "aiplatform.googleapis.com" } metadata { key: "consumer" value: "projects/[your-project-id]" } ]
Kelvin S. · Vor mehr als ein Jahr überprüft
Krishna S. · Vor mehr als ein Jahr überprüft
Lucas W. · Vor mehr als ein Jahr überprüft
Gloria M. · Vor mehr als ein Jahr überprüft
Debraj P. · Vor mehr als ein Jahr überprüft
Johan V. · Vor mehr als ein Jahr überprüft
Rae L. · Vor mehr als ein Jahr überprüft
Matthew K. · Vor mehr als ein Jahr überprüft
Matthew K. · Vor mehr als ein Jahr überprüft
Tomas K. · Vor mehr als ein Jahr überprüft
Simas S. · Vor mehr als ein Jahr überprüft
Not clear at all - Errors from the first prompt. Does not work
Jacob B. · Vor mehr als ein Jahr überprüft
Alex D. · Vor mehr als ein Jahr überprüft
Caglar S. · Vor mehr als ein Jahr überprüft
Kamaluddin P. · Vor mehr als ein Jahr überprüft
all prewritten
Sean T. · Vor mehr als ein Jahr überprüft
James C. · Vor mehr als ein Jahr überprüft
Ranjan K. · Vor mehr als ein Jahr überprüft
Wir können nicht garantieren, dass die veröffentlichten Rezensionen von Verbrauchern stammen, die die Produkte gekauft oder genutzt haben. Die Rezensionen werden von Google nicht überprüft.