This returns the GPT2 text response to your prompt.response = llm._call("Running machine learning on a remote GPU")An example script which deploys the model and calls it would be:from langchain.llms.beam import Beamimport timellm = Beam(model_name="gpt2",           name="langchain-gpt2-test",           cpu=8,           memory="32Gi",           gpu="A10G",           python_version="python3.8",           python_packages=[               "diffusers[torch]>=0.10",               "transformers",               "torch",               "pillow",               "accelerate",               "safetensors",               "xformers",],           max_length="50",           verbose=False)llm._deploy()response = llm._call("Running machine learning on a remote GPU")print(response)PreviousBasetenNextBeautiful SoupInstallation and SetupWrappersLLMDefine your Beam app.Deploy your Beam appCall your Beam appCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
This page covers how to use Beam within LangChain.
This page covers how to use Beam within LangChain. ->: This returns the GPT2 text response to your prompt.response = llm._call("Running machine learning on a remote GPU")An example script which deploys the model and calls it would be:from langchain.llms.beam import Beamimport timellm = Beam(model_name="gpt2",           name="langchain-gpt2-test",           cpu=8,           memory="32Gi",           gpu="A10G",           python_version="python3.8",           python_packages=[               "diffusers[torch]>=0.10",               "transformers",               "torch",               "pillow",               "accelerate",               "safetensors",               "xformers",],           max_length="50",           verbose=False)llm._deploy()response = llm._call("Running machine learning on a remote GPU")print(response)PreviousBasetenNextBeautiful SoupInstallation and SetupWrappersLLMDefine your Beam app.Deploy your Beam appCall your Beam appCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.