-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
branch: main
commit: 8516999
test gpu: Nvidia A10
test code:
from vllm import LLM, SamplingParams
prompts = [
"Quartz is one of the most common",
"Building a successful software platform is",
# "Justice studies is an",
# "In 1997 Ronald Phillips published",
]
model_path = "huggyllama/llama-7b"
llm = LLM(model=model_path)
sampling_params = SamplingParams(max_tokens=128, temperature=0)
outputs = llm.generate(prompts, sampling_params)
for output in outputs:
prompt = output.prompt
generated_text = output.outputs[0].text
print(f"[Prompt]\n{prompt}\n\n")
print(f"[Generated text]\n{generated_text}\n\n")
result:
[Prompt]
Quartz is one of the most common
[Generated text]
most abundant minerals on Earth. It is found in many different colors and is used in many different ways. Quartz is a crystalline mineral that is found in many different colors. It is a very common mineral and is found in many different places. Quartz is a very common mineral and is found in many different places.
Quartz is a mineral that is found in many different colors. It is a very common mineral and is found in many different places. Quartz is a very common mineral and is found in many different places. Quartz is a very common mineral
[Prompt]
Building a successful software platform is
[Generated text]
a complex task. It requires a deep understanding of the market, the technology, and the business. It requires a team of talented people who can work together to create a product that is both technically sound and commercially viable.
At the same time, it is a task that is often underestimated. Many companies fail to understand the complexity of the task and the time and effort required to build a successful platform.
In this article, we will look at the key factors that contribute to the success of a software platform. We will also look at the key challenges that companies face when building a platform.
but if we uncomment the last two prompt
prompts = [
"Quartz is one of the most common",
"Building a successful software platform is",
"Justice studies is an",
"In 1997 Ronald Phillips published",
]
result
[Prompt]
Quartz is one of the most common
[Generated text]
minerals on Earth. It is found in
many different colors, including
white, pink, red, purple, blue,
yellow, green, brown, black,
and gray. Quartz is a silicon
dioxide mineral. It is a crystal
that is made up of silicon and
oxygen atoms. Quartz is a
non-metallic mineral. It is
found in many different
forms, including crystals,
amethyst, rose quartz,
citrine, smoky quartz,
and rock
[Prompt]
Building a successful software platform is
[Generated text]
.
Building a successful software platform is.
Building a successful software platform is. Building a successful software platform is. Building a successful software platform is. Building a successful software platform is. Building a successful software platform is. Building a successful software platform is. Building a successful software platform is. Building a successful software platform is. Building a successful software platform is. Building a successful software platform is. Building a successful software platform is. Building a successful software platform is. Building a successful software platform is. Building a successful software platform is. Building a successful software platform is. Building a successful software platform is. Building a successful software
[Prompt]
Justice studies is an
[Generated text]
that is interdisciplinary in nature. It is a field of study that is concerned with the study of the legal system and the legal process. It is a field of study that is concerned with the study of the legal system and the legal process. It is a field of study that is concerned with the study of the legal system and the legal process. It is a field of study that is concerned with the study of the legal system and the legal process. It is a field of study that is concerned with the study of the legal system and the legal process. It is a field of study that is concerned with the study of the
[Prompt]
In 1997 Ronald Phillips published
[Generated text]
a book entitled “The Making of a Modern Terrorist” in which he described the process of radicalization of a young man named David Copeland. Copeland was a member of the British National Party (BNP) and was arrested in 1999 for a series of nail bombings in London.
Phillips’ book was a fascinating read and I was surprised to learn that the BNP had a history of violence. I was also surprised to learn that the BNP had a history of violence. I was also surprised to learn that the BNP had a history of violence. I was
Since I didn't set the appropriate sampling parameters, I wasn't expecting to generate very good results.
But I think the first two generated results should not change with the greedy search.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working