Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with long Promts #64

Open
72Joe72 opened this issue Aug 28, 2024 · 1 comment
Open

Problems with long Promts #64

72Joe72 opened this issue Aug 28, 2024 · 1 comment

Comments

@72Joe72
Copy link

72Joe72 commented Aug 28, 2024

Hello, unfortunately I have a problem with the script, apparently there is an error when converting to JSON format if the prompt is too long.

I have attached the main log file and the logs where the error occurred:
Main.log

43_SafeGenerateText.SafeGenerateJSON.ScenesToJSON.ChapterByScene.GenerateChapter.Main.json
43_SafeGenerateText.SafeGenerateJSON.ScenesToJSON.ChapterByScene.GenerateChapter.Main.md
44_SafeGenerateJSON.ScenesToJSON.ChapterByScene.GenerateChapter.Main.json
44_SafeGenerateJSON.ScenesToJSON.ChapterByScene.GenerateChapter.Main.md

It doesn't crash but is trapped in an endless loop until I close the console window.
I have already tried different models. The error also occurs with the "ExamplePrompts\Example2" prompt.
I use Ollama with my own computer, this is the start code:

python Write.py -Seed 12 -Prompt Prompts/8.txt -InitialOutlineModel phi3:14b -ChapterOutlineModel phi3:14b -ChapterS1Model phi3:14b -ChapterS2Model phi3:14b -ChapterS3Model aya:8b -ChapterS4Model llava:13b -ChapterRevisionModel phi3:14b -RevisionModel llama3 -EvalModel llama3 -InfoModel llama3 -NoScrubChapters -Debug

@datacrystals
Copy link
Owner

Ah yeah that might depend on the model you're using, phi seems to have issues, perhaps try Mistral large?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants