Performance Raport in my project

#1
by Rybens - opened

After a quick test of this model on two examples in my project (chatbot using tools through agents), I come to the following conclusions:

  1. It seems to listen better to instructions for input to tools:
    Code Interpreter tool input description: "A detailed description (in natural language, not code) of the code to be written. Should be a clear and concise explanation (in natural language, not code), without any code snippets."
    Gemma2 2B:
code_interpreter(query='```python\nimport psutil\nprint(psutil.virtual_memory().total / (1024 * 1024 * 1024))```')

RYS Gemma2 2B:

code_interpreter(query="What is the maximum VRAM available on a Linux system?")

So it comes out that it listens to not enter any code in the input.

  1. He seems to be hallucinating when it comes to reasoning before taking action. Wants to use tools that do not exist and are not in the prompt
    Gemma2 2B:
Reasoning:  The user is asking for a Python function to check the maximum available VRAM in a Linux system. I can use the `code_interpreter` tool to generate a Python script that utilizes system resources to determine the VRAM. 

After further consideration, the tool I should use now is `code_interpreter` to generate the Python script.

RYS Gemma2 2B:

Reasoning:  The user wants to know how to check the maximum available VRAM on a Linux system. 
I will use the `system()` function to get the system information. 

After further consideration, the tool I should use now is `psutil` to get the system information.

system() function?
psutil as a tool? It's a library, not a tool I wrote in the prompt.

  1. It seems to loop during the process of using agents to gather information to answer the user's question.
    Gemma2 2B:
Reasoning:  The user is asking for information about a woman named DiCaprio.  I need to find out who she is and her age. I will use web search to find information about her. Then, I will use the calculator tool to calculate her age to the power of 1.4. 

After further consideration, the tool I should use now is web search to find information about the person.
Code:  # When I use tools, I have to follow strictly the description of their inputs
web_search(query="Kim jest dziewczyna DiCaprio")

Output:  Function 'web_search' called with args: query='Kim jest dziewczyna DiCaprio'
Result: Leonardo DiCaprio wygrzewa się na jachcie z młodszą o 24 lata dziewczyną (ZDJĘCIA) Leonardo DiCaprio pozostaje wierny swojej zasadzie i umawia się z dziewczynami, które są mniej więcej o ... Od jakiegoś czasu mówi się, że Leonardo DiCaprio ma nową dziewczynę. Ma nią być 25-letnia modelka Vittoria Ceretti. Para pojawiła się wspólnie na imprezie halloweenowej i dostarczyła dowodów, że naprawdę jest razem. Zobaczcie zdjęcia, które obiegły (i rozgrzały) internet. Leonardo DiCaprio nigdy nie miał opinii mężczyzny stałego w uczuciach. Gdy więc paparazzi przyłapali go niedawno z nową ukochaną, mało kto był zaskoczony nagłymi zmianami w jego życiu ... DiCaprio was dress in a pale blue T-shirt, green pants, and black sneakers. He had a black baseball cap on over his hair, which was drawn back with a band, and wore a black mask. The model was in ... DiCaprio z młodszą o 24 lata partnerką. Na zdjęciach widać, jak jest poważnie - Pudelek. Leonardo DiCaprio i jego MŁODSZA O 24 LATA dziewczyna spacerują po Londynie w towarzystwie rodziny ...

Reasoning:  The web search results tell me that Leonardo DiCaprio has a new girlfriend named Vittoria Ceretti. I need to find out her age. I will use the calculator tool to calculate her age to the power of 1.4.
After further consideration, the tool I should use now is calculator.
Code:  # When I use tools, I have to follow strictly the description of their inputs
calculator(formula="25**1.4")

Output:  Calc Reasoning:  The formula is asking for the result of 25 raised to the power of 1.4.
- Python's `**` operator is used for exponentiation.
- We need to use the `**` operator to raise 25 to the power of 1.4.

Calc Code:  print(25**1.4)

Calc Output:
 {'output': '90.59745795971192\n', 'execution_successful': True, 'error_message': None}
Function 'calculator' called with args: formula='25**1.4'
Result: 90.59745795971192


Reasoning:  The calculator tool gave me the result of 90.59745795971192. I need to use this result to answer the user's question. 

After further consideration, the tool I should use now is final_answer() to provide the final answer.
Code:  # When I use tools, I have to follow strictly the description of their inputs
final_answer(

Time taken:  207.68219590187073  seconds

Answer:
The additional context provides information about Leonardo DiCaprio's recent relationship with a 25-year-old model named Vittoria Ceretti. 

The context also states that she is 24 years younger than DiCaprio. 

To answer your question, the model's age is 25. The context states that her age is 25. 

To calculate 25 raised to the power of 1.4, you can use the following Python code:

```python
import math

result = math.pow(25, 1.4)
print(result) 

 
This code will output the result of 25 raised to the power of 1.4, which is approximately 90.5975. 

Let me know if you have any other questions.

RYS Gemma2 2B:

Reasoning:  The user is asking for information about Leonardo DiCaprio's girlfriend.  I need to find information about her and her age.

After further consideration, the tool I should use now is `web_search` to find information about Leonardo DiCaprio's girlfriend.
Code:  # When I use tools, I have to follow strictly the description of their inputs
web_search(query='Leonardo DiCaprio girlfriend')

Output:  Function 'web_search' called with args: query='Leonardo DiCaprio girlfriend'
Result: A source said DiCaprio calls Ceretti his "girlfriend." "Vittoria is a beautiful girl, but Leonardo is of course surrounded by many beautiful girls most of the time," an insider told The ... The actor, 49, and the model, 25, have been dating since August 2023 and enjoy date nights at their favorite restaurant. A source says DiCaprio "seems to really like" Ceretti and she orders his favorites. Leonardo DiCaprio's ex Camila Morrone spotted in Hamptons with new boyfriend The Italian model, 26, looked chic in a black sheer maxi dress layered over her cheeky snakeskin-print bikini. Photo: Leonardo DiCaprio and Vittoria Ceretti are soaking up the sun in Italy. The pair were photographed heading out for a swim while yachting Thursday, Aug. 1, off the coast of Sardinia amid ... Leonardo DiCaprio and Girlfriend Vittoria Ceretti Soak Up the Sun on Yacht in Italy. For their recent day at sea, the actor tied his hair up in a bun and wore black swim trucks and silver ...

Reasoning:  The user wants to know the age of the girlfriend. I will use the `web_search` tool to find the age of the girlfriend. 


After further consideration, the tool I should use now is `web_search` to find the age of the girlfriend. 
Code:  # When I use tools, I have to follow strictly the description of their inputs
web_search(query='Leonardo DiCaprio girlfriend age')

Output:  Function 'web_search' called with args: query='Leonardo DiCaprio girlfriend age'
Result: All About Vittoria Ceretti, Leonardo DiCaprio's Girlfriend. ... As for the 20 year age gap, it "clearly isn't an issue for him," and DiCaprio "says [Vittoria] is an old soul." Photo: Leonardo DiCaprio and Vittoria Ceretti are soaking up the sun in Italy. The pair were photographed heading out for a swim while yachting Thursday, Aug. 1, off the coast of Sardinia amid ... Vittoria Ceretti is a 25-year-old Italian model who has been dating Leonardo DiCaprio since August 2023. The couple has been spotted together at various events and restaurants, and a source says DiCaprio "seems to really like" her. At age 14, Ceretti made her modeling debut at Elite Model Look, one of the most prestigious international modeling competitions in the world. ... Leonardo DiCaprio and Girlfriend Vittoria Ceretti ... Date night in the City of Angels. Leonardo DiCaprio enjoyed a date night with his 25-year-old girlfriend, Vittoria Ceretti, in Los Angeles Thursday night. According to photos, the "Titanic ...

Reasoning:  The user wants to know the age of the girlfriend. I will use the `web_search` tool to find the age of the girlfriend. 


After further consideration, the tool I should use now is `web_search` to find the age of the girlfriend. 
Code:  # When I use tools, I have to follow strictly the description of their inputs
web_search(query='Leonardo DiCaprio girlfriend age')

Output:  Function 'web_search' called with args: query='Leonardo DiCaprio girlfriend age'
Result: All About Vittoria Ceretti, Leonardo DiCaprio's Girlfriend. ... As for the 20 year age gap, it "clearly isn't an issue for him," and DiCaprio "says [Vittoria] is an old soul." Vittoria Ceretti is a 25-year-old Italian model who has been dating Leonardo DiCaprio since August 2023. The couple has been spotted together at various events and restaurants, and a source says DiCaprio "seems to really like" her. At age 14, Ceretti made her modeling debut at Elite Model Look, one of the most prestigious international modeling competitions in the world. ... Leonardo DiCaprio and Girlfriend Vittoria Ceretti ... 12. She was married to DJ Matteo Milleri. Vittoria Ceretti/Instagram. Ceretti's relationship with DiCaprio comes after a breakup. She was previously married to Italian DJ Matteo Milleri. The now ... Leonardo DiCaprio and girlfriend Vittoria Ceretti were spotted together on a yacht on Aug. 1 off the coast of Sardinia, Italy, amid their European getaway.

(And it loops endlessly using the web_search tool asking the age of DiCaprio's girlfriend)
  1. Rys has a better understanding of the Polish language in which the LLM request was written? The question is “Who is DiCaprio's girlfriend? What is her age to the power of 1.4?” but in Polish.

Gemma2 2B It:

Reasoning:  The user is asking for information about a woman named DiCaprio.  I need to find out who she is and her age. I will use web search to find information about her.

RYS Gemma2 2B It:

Reasoning:  The user is asking for information about Leonardo DiCaprio's girlfriend.  I need to find information about her and her age.

Summary:
It turns out that for my project the regular Gemma2 2B works better, but RYS also has its advantages.
There's a problem with the RYS model that I'm having a hard time determining.

Anyway, thanks for trying to develop this model and I keep my fingers crossed for further work on the RYS models!

Owner

I didn't expect the 2B model to do better than the base model. Hope it was fun anyway!

Of course such tests are fun. Thank you for the chance to test myself, and I nevertheless look forward to a very small model modified by you to replace any others in my project. Regards

Sign up or log in to comment