Velma-9b is a fine-tuned version of
google/gemma-2-9b-it, optimized to improve reasoning capabilities. The model has been trained using the
GSM8K dataset, a benchmark dataset designed to enhance mathematical and logical reasoning skills in language models.
This fine-tuning process allows Velma-9b to excel at structured problem-solving, step-by-step reasoning, and logical inference, making it an ideal choice for tasks requiring in-depth analytical thinking.
1from transformers import pipeline
2
3# Initialize the pipeline
4generator = pipeline("text-generation", model="AmirMohseni/Velma-9b", device="cuda")
5
6# Example prompt
7question = "If you had a time machine but could only go to the past or the future once and never return, which would you choose and why?"
8
9# Generate output
10output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
11print(output["generated_text"])
Velma-9b is best suited for tasks requiring structured reasoning and logical inference: