我想要一天分享一點「LLM從底層堆疊的技術」,並且每篇文章長度控制在三分鐘以內,讓大家不會壓力太大,但是又能夠每天成長一點。
from vertexai.preview.language_models import CodeChatModel
vertexai.init(project = "aiex-57523", location = "us-central1")
chat_model = CodeChatModel.from_pretrained("codechat-bison@001")
parameters = {"temperature": 0.5, "max_output_tokens": 1024}
chat = chat_model.start_chat()
response = chat.send_message("""Write the code in Python for a function in Python that calculates a Fibonacci suite up to 10:""", **parameters)
print(f"Response from Model: {response.text}")
結果為:
