of the game and taking over 50 wickets.\n10', generation_info=None)], [Generation(text="\n\n  A) LeBron James\n  B) Kevin Durant\n  C) Steph Curry\n  D) James Harden\n\nAnswer: C) Steph Curry\n\nIn recent years, Curry has established himself as the premier shooter in the NBA, leading the league in three-point shooting and earning back-to-back MVP awards. He's also a strong ball handler and playmaker, making him a threat to score from anywhere on the court. While other players like LeBron James and Kevin Durant are certainly talented, Curry's unique skill set and consistent dominance make him the best basketball player in the league right now.", generation_info=None)]]# Setting additional parameters: temperature, max_tokens, top_pllm = Fireworks(model="accounts/fireworks/models/llama-v2-13b-chat", model_kwargs={"temperature":0.7, "max_tokens":15, "top_p":1.0})print(llm("What's the weather like in Kansas City in December?"))        What's the weather like in Kansas City in December? Simple Chain with Non-Chat ModelYou can use the LangChain Expression Language to create a simple chain with non-chat models.from langchain.prompts import PromptTemplatefrom langchain.llms.fireworks import Fireworksllm = Fireworks(model="accounts/fireworks/models/llama-v2-13b", model_kwargs={"temperature":0, "max_tokens":100, "top_p":1.0})prompt = PromptTemplate.from_template("Tell me a joke about {topic}?")chain = prompt | llmprint(chain.invoke({"topic": "bears"}))        A bear walks into a bar and says, "I'll have a beer and a muffin." The bartender says, "Sorry, we don't serve muffins here." The bear says, "OK, give me a beer and I'll make my own muffin."    What do you call a bear with no teeth?    A gummy bear.    What do you call a bear with no teeth and no hair?    You can stream the output, if you want.for token in chain.stream({"topic": "bears"}):    print(token, end='', flush=True)        A bear walks into a bar and says, "I'll have a beer and a muffin." The bartender says,
Fireworks accelerates product development on generative AI by creating an innovative AI experiment and production platform.
Fireworks accelerates product development on generative AI by creating an innovative AI experiment and production platform. ->: of the game and taking over 50 wickets.\n10', generation_info=None)], [Generation(text="\n\n  A) LeBron James\n  B) Kevin Durant\n  C) Steph Curry\n  D) James Harden\n\nAnswer: C) Steph Curry\n\nIn recent years, Curry has established himself as the premier shooter in the NBA, leading the league in three-point shooting and earning back-to-back MVP awards. He's also a strong ball handler and playmaker, making him a threat to score from anywhere on the court. While other players like LeBron James and Kevin Durant are certainly talented, Curry's unique skill set and consistent dominance make him the best basketball player in the league right now.", generation_info=None)]]# Setting additional parameters: temperature, max_tokens, top_pllm = Fireworks(model="accounts/fireworks/models/llama-v2-13b-chat", model_kwargs={"temperature":0.7, "max_tokens":15, "top_p":1.0})print(llm("What's the weather like in Kansas City in December?"))        What's the weather like in Kansas City in December? Simple Chain with Non-Chat ModelYou can use the LangChain Expression Language to create a simple chain with non-chat models.from langchain.prompts import PromptTemplatefrom langchain.llms.fireworks import Fireworksllm = Fireworks(model="accounts/fireworks/models/llama-v2-13b", model_kwargs={"temperature":0, "max_tokens":100, "top_p":1.0})prompt = PromptTemplate.from_template("Tell me a joke about {topic}?")chain = prompt | llmprint(chain.invoke({"topic": "bears"}))        A bear walks into a bar and says, "I'll have a beer and a muffin." The bartender says, "Sorry, we don't serve muffins here." The bear says, "OK, give me a beer and I'll make my own muffin."    What do you call a bear with no teeth?    A gummy bear.    What do you call a bear with no teeth and no hair?    You can stream the output, if you want.for token in chain.stream({"topic": "bears"}):    print(token, end='', flush=True)        A bear walks into a bar and says, "I'll have a beer and a muffin." The bartender says,