# SageMaker JumpStart provides APIs as part of SageMaker SDK that allow you to deploy and fine-tune models in network isolation using scripts that SageMaker maintains.

from sagemaker.jumpstart.model import JumpStartModel


model_id = "huggingface-vlm-gemma-3-4b-instruct"

model = JumpStartModel(model_id=model_id)
payload = model.retrieve_example_payload()

predictor = model.deploy()

try:
    response = predictor.predict(payload)
except Exception as e:
    response = str(e)
print(response)