Local ollama issues: loops forever on random problems: problems with saving/ovewriting, no closing fence #54

Closed
opened 2025-10-14 15:43:20 -06:00 by navan · 0 comments
Owner

Originally created by @w84death on 5/24/2024

Running local ollama run deepseek-coder:6.7b
Kubuntu 24.04, RTX 2060 6GB VRAM

Fail to generate files
It loops forever trying to run CreateFileTool.function() but got too many arguments.

+------------------------------------------------------------------------------------------+
|   Devon is thinking:                                                                     |
|   I understand that we are creating a website about some of my indie games which were    |
|   created using Assembly language for the x86 boot sector. I need to create the          |
|   necessary files and directories for this project.                                      |
|                                                                                          |
+------------------------------------------------------------------------------------------+
+--------------------------------------------------------------------------------------------+
|   Devon ran: Running command:                                                              |
|   create_file index.html                                                                   |
|   ```                                                                                      |
|   <DOCTYPE html>                                                                     |
|   <html>                                                                             |
|   <head>                                                                             |
|        <title>My Indie Games</title>                                           |
|   </head>                                                                            |
|   <body>                                                                             |
|        <h1>Welcome to my indie games website</h1>                              |
|        <p>Here you can find information about some of my favorite indie games, all   |
|    made using Assembly language for the x86 boot sector.</p>                         |
|   </body>                                                                            |
|   </html>                                                                            |
|   ```                                                                                      |
|                                                                                            |
|   > CreateFileTool.function() takes from 3 to 4 positional arguments but 44 were given     |
+--------------------------------------------------------------------------------------------+

Generate first file but fails with updating it
After restarting and given same prompt it now creates index.html but then loops forever trying to update the file.

+-------------------------------------------------------------------------------------------+
|   Devon is thinking:                                                                      |
|   I understand the user's request to create a website about his indie games, which are    |
|   written in Assembly language and targeting an x86 boot sector. I will start by          |
|   creating a basic HTML structure for the site.                                           |
|                                                                                           |
+-------------------------------------------------------------------------------------------+
+--------------------------------------------------------------------------------------+
|   Devon ran: Running command:                                                        |
|   create_file index.html                                                             |
|   <<<                                                                                |
|   &lt;DOCTYPE html&gt;                                                               |
|   &lt;html lang="en"&gt;                                                             |
|   &lt;head&gt;                                                                       |
|        &lt;meta charset="UTF-8"&gt;                                                  |
|        &lt;title&gt;My Indie Games&lt;/title&gt;                                     |
|   &lt;/head&gt;                                                                      |
|   &lt;body&gt;                                                                       |
|        &lt;h1&gt;Welcome to my indie games website&lt;/h1&gt;                        |
|   &lt;/body&gt;                                                                      |
|   &lt;/html&gt;                                                                      |
|   >>>                                                                                |
|                                                                                      |
|   > Failed to create file: index.html. Error: Could not create file, file already    |
|   exists: /home/kj/Code/devon/games-web/index.html                                   |
+--------------------------------------------------------------------------------------+

Not valid HTML files
The file itself lacks proper TAGs:

&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;title&gt;My Indie Games&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;h1&gt;Welcome to my indie games website!&lt;/h1&gt;
&lt;/body&gt;
&lt;/html&gt;

This only happens once.

Not closing fence

Third restart (clean folder) it generates valid index.html:

+--------------------------------------------------------------------------------------------+
|   Devon is thinking:                                                                       |
|   I understand the requirement of creating a website for my indie games. I will start by   |
|    creating an HTML file that serves as the main page of our website. This will include    |
|   information about the game catalog, introduction and instructions on how to run them     |
|   (in emulator or from floppy).                                                            |
|                                                                                            |
+--------------------------------------------------------------------------------------------+
+--------------------------------------------------------------------------------------------+
|   Devon ran: Running command:                                                              |
|   create_file index.html                                                                   |
|   <<<                                                                                      |
|   <!DOCTYPE html>                                                                          |
|   <html>                                                                                   |
|       <head>                                                                               |
|           <title>Indie Games Catalog</title>                                               |
|       </head>                                                                              |
|       <body>                                                                               |
|           <h1>Welcome to our Indie Games Catalog</h1>                                      |
|           <p>Here you can find a collection of indie games developed in assembly for x86   |
|    bootsector.                                                                             |
|           Each game comes with an introduction and instructions on how to run them (in     |
|   emulator or from floppy).</<|begin▁of▁sentence|>                                       |
|       </body>                                                                              |
|   </html>                                                                                  |
|   >>>                                                                                      |
|                                                                                            |
|   > Successfully created file /home/kj/Code/devon/games-web/index.html                     |
+--------------------------------------------------------------------------------------------+

..but then loops forever on No closing fence (>>>) :

+--------------------------------------------------------------------------------------------+
|   Devon is thinking:                                                                       |
|   I understand the requirement of creating a website for my indie games. I will start by   |
|    creating an HTML file that serves as the main page of our website. This will include    |
|   information about the game catalog, introduction and instructions on how to run them     |
|   (in emulator or from floppy).                                                            |
|                                                                                            |
+--------------------------------------------------------------------------------------------+
+------------------------------------------------------------+
|   Devon ran:                                               |
|   > No closing fence (>>>) found for multiline argument.   |
+------------------------------------------------------------+

Clean the folder (because it can not overwrite files) and it's the same thing with good html and then No closing fence loop.

*Originally created by @w84death on 5/24/2024* Running local ollama run deepseek-coder:6.7b Kubuntu 24.04, RTX 2060 6GB VRAM **Fail to generate files** It loops forever trying to run CreateFileTool.function() but got too many arguments. ``` +------------------------------------------------------------------------------------------+ | Devon is thinking: | | I understand that we are creating a website about some of my indie games which were | | created using Assembly language for the x86 boot sector. I need to create the | | necessary files and directories for this project. | | | +------------------------------------------------------------------------------------------+ +--------------------------------------------------------------------------------------------+ | Devon ran: Running command: | | create_file index.html | | ``` | | &lt;DOCTYPE html&gt; | | &lt;html&gt; | | &lt;head&gt; | | &lt;title&gt;My Indie Games&lt;/title&gt; | | &lt;/head&gt; | | &lt;body&gt; | | &lt;h1&gt;Welcome to my indie games website&lt;/h1&gt; | | &lt;p&gt;Here you can find information about some of my favorite indie games, all | | made using Assembly language for the x86 boot sector.&lt;/p&gt; | | &lt;/body&gt; | | &lt;/html&gt; | | ``` | | | | > CreateFileTool.function() takes from 3 to 4 positional arguments but 44 were given | +--------------------------------------------------------------------------------------------+ ``` **Generate first file but fails with updating it** After restarting and given same prompt it now creates index.html but then loops forever trying to update the file. ``` +-------------------------------------------------------------------------------------------+ | Devon is thinking: | | I understand the user's request to create a website about his indie games, which are | | written in Assembly language and targeting an x86 boot sector. I will start by | | creating a basic HTML structure for the site. | | | +-------------------------------------------------------------------------------------------+ +--------------------------------------------------------------------------------------+ | Devon ran: Running command: | | create_file index.html | | <<< | | &lt;DOCTYPE html&gt; | | &lt;html lang="en"&gt; | | &lt;head&gt; | | &lt;meta charset="UTF-8"&gt; | | &lt;title&gt;My Indie Games&lt;/title&gt; | | &lt;/head&gt; | | &lt;body&gt; | | &lt;h1&gt;Welcome to my indie games website&lt;/h1&gt; | | &lt;/body&gt; | | &lt;/html&gt; | | >>> | | | | > Failed to create file: index.html. Error: Could not create file, file already | | exists: /home/kj/Code/devon/games-web/index.html | +--------------------------------------------------------------------------------------+ ``` **Not valid HTML files** The file itself lacks proper TAGs: ``` &lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;title&gt;My Indie Games&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;Welcome to my indie games website!&lt;/h1&gt; &lt;/body&gt; &lt;/html&gt; ``` This only happens once. **Not closing fence** Third restart (clean folder) it generates valid index.html: ``` +--------------------------------------------------------------------------------------------+ | Devon is thinking: | | I understand the requirement of creating a website for my indie games. I will start by | | creating an HTML file that serves as the main page of our website. This will include | | information about the game catalog, introduction and instructions on how to run them | | (in emulator or from floppy). | | | +--------------------------------------------------------------------------------------------+ +--------------------------------------------------------------------------------------------+ | Devon ran: Running command: | | create_file index.html | | <<< | | <!DOCTYPE html> | | <html> | | <head> | | <title>Indie Games Catalog</title> | | </head> | | <body> | | <h1>Welcome to our Indie Games Catalog</h1> | | <p>Here you can find a collection of indie games developed in assembly for x86 | | bootsector. | | Each game comes with an introduction and instructions on how to run them (in | | emulator or from floppy).</<|begin▁of▁sentence|> | | </body> | | </html> | | >>> | | | | > Successfully created file /home/kj/Code/devon/games-web/index.html | +--------------------------------------------------------------------------------------------+ ``` ..but then loops forever on No closing fence (>>>) : ``` +--------------------------------------------------------------------------------------------+ | Devon is thinking: | | I understand the requirement of creating a website for my indie games. I will start by | | creating an HTML file that serves as the main page of our website. This will include | | information about the game catalog, introduction and instructions on how to run them | | (in emulator or from floppy). | | | +--------------------------------------------------------------------------------------------+ +------------------------------------------------------------+ | Devon ran: | | > No closing fence (>>>) found for multiline argument. | +------------------------------------------------------------+ ``` Clean the folder (because it can not overwrite files) and it's the same thing with good html and then `No closing fence` loop.
navan 2025-10-14 15:43:21 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/Devon#54
No description provided.