Giter VIP home page Giter VIP logo

Comments (9)

danemadsen avatar danemadsen commented on May 30, 2024 1

So it took me a while to notice the correlation but I did some tests and am now sure about this: Pressing the reload button (which let's the model replace it's answer by a new one) does delete the whole context. This means that it forgets everything that was spoken before the last prompt (which obviously leads to hallucinations).

Ahh OK that makes sense, I was starting to suspect something like that is going on. I'll look into it.

from maid.

danemadsen avatar danemadsen commented on May 30, 2024 1

Yeah this is turning out to be a bigger issue than i expected. Might take a while

from maid.

danemadsen avatar danemadsen commented on May 30, 2024 1

In a quick test, deleting this line, it successfully works during regeneration.

Context wasn't lost, and the regenerate response was aligned.

Yes but the point of regeneration is the previous context needs to be deleted because its creating a new branch from the previous message, then the context needs to be regenerated and added in. i know how to do this part the problem is its causing a memory error.

from maid.

sfiannaca avatar sfiannaca commented on May 30, 2024

I'm unable to test at the moment; can someone try removing this line?

https://github.com/Mobile-Artificial-Intelligence/maid/blob/dc44cfd1b7d2db947d21caa38ed9cd9decdbbbdb/lib/providers/session.dart#L146C7-L146C8

from maid.

danemadsen avatar danemadsen commented on May 30, 2024

I'm unable to test at the moment; can someone try removing this line?

https://github.com/Mobile-Artificial-Intelligence/maid/blob/dc44cfd1b7d2db947d21caa38ed9cd9decdbbbdb/lib/providers/session.dart#L146C7-L146C8
no thats not it, its because the messages arnt being passed into it properly. I can fix that but it ends up causing another issue with llama.cpp

from maid.

sfiannaca avatar sfiannaca commented on May 30, 2024

So you've tried it ?

from maid.

danemadsen avatar danemadsen commented on May 30, 2024

So you've tried it ?

No i havnt tried it but i know what it does and i know its not what is causing the error

from maid.

sfiannaca avatar sfiannaca commented on May 30, 2024

In a quick test, deleting this line, it successfully works during regeneration.

Context wasn't lost, and the regenerate response was aligned.

from maid.

GameOverFlowChart avatar GameOverFlowChart commented on May 30, 2024

I did my test and can confirm that this is fixed.

from maid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.