jan icon indicating copy to clipboard operation
jan copied to clipboard

bug: model breaks and repeats itself after long use

Open TempUser13 opened this issue 10 months ago • 4 comments

When I'm using Mistral Instruct 7B Q4, after a lot of outputted text the model will just break repeating itself. I'm not sure if this is a Model issue or Jan.

Steps to reproduce the behavior: Use the model like usual and eventually after its outputted lots of paragraphs it'll break.

jan

  • Operating System: MacOS Sonoma 14.3.1 on a M1 Pro MacBook Pro
  • Jan Version: 0.4.9
  • Processor: M1 Pro (8P/2E), 16 GPU Cores
  • RAM: 16GB

Logs jan.txt

TempUser13 avatar Mar 29 '24 15:03 TempUser13

Could very well be a limitation of the model. For the same reason online bots are often limited to a max of 20 messages per conversation. You could try increasing the context (ctx_len) in model.json ... the v0.2 version of Mistral can go up to a context of 32k while Jan's UI normally limits to 4096, but beware that takes more (v)RAM and performs slower.

Propheticus avatar Mar 30 '24 19:03 Propheticus

facing a similar issue. "Difference between Mistral-T and transformer" starts repeating after 4 points.

SmokeShine avatar Mar 31 '24 18:03 SmokeShine

Thanks @Propheticus for the answer. This is related to the maximum text the AI can handle. We will have a better notification to point out the maximum cap.

cc @SmokeShine @TempUser13

hahuyhoang411 avatar Apr 03 '24 03:04 hahuyhoang411

Could very well be a limitation of the model. For the same reason online bots are often limited to a max of 20 messages per conversation. You could try increasing the context (ctx_len) in model.json ... the v0.2 version of Mistral can go up to a context of 32k while Jan's UI normally limits to 4096, but beware that takes more (v)RAM and performs slower.

This fixed my issue and I forgot to reply, thank you.

Thanks @Propheticus for the answer. This is related to the maximum text the AI can handle. We will have a better notification to point out the maximum cap.

cc @SmokeShine @TempUser13

Thank you.

TempUser13 avatar Apr 09 '24 01:04 TempUser13