Giter VIP home page Giter VIP logo

Comments (7)

danemadsen avatar danemadsen commented on June 8, 2024

so do you mean you're setting user alias to <|im_start|> and you're also enabling the chatml toggle? the user alias effectively does the same thing as the chatml toggle exact you can specify a custom prefix so if you're enabling chatml and adding in the chatml prefix as the user alias what its probably doing would look like this:

<|im_start|><|im_start|>user prompt<|im_start|><|im_start|>assistant prompt?

from maid.

GameOverFlowChart avatar GameOverFlowChart commented on June 8, 2024

so do you mean you're setting user alias to <|im_start|> and you're also enabling the chatml toggle? the user alias effectively does the same thing as the chatml toggle exact you can specify a custom prefix so if you're enabling chatml and adding in the chatml prefix as the user alias what its probably doing would look like this:

<|im_start|><|im_start|>user prompt<|im_start|><|im_start|>assistant prompt?

This bug is older than the toggle and it happens independently of the State of the toggle. You are right if the toggle works as intended, it would make it double which is bad, thanks for clarifying that. But the question is why is the crash happening? Maybe it's the length of the string for the aliases together that's limited some how?

from maid.

GameOverFlowChart avatar GameOverFlowChart commented on June 8, 2024

And a follow up question, if the chatml toggle is working as intended, why isn't that crashing the app?

from maid.

danemadsen avatar danemadsen commented on June 8, 2024

so do you mean you're setting user alias to <|im_start|> and you're also enabling the chatml toggle? the user alias effectively does the same thing as the chatml toggle exact you can specify a custom prefix so if you're enabling chatml and adding in the chatml prefix as the user alias what its probably doing would look like this:
<|im_start|><|im_start|>user prompt<|im_start|><|im_start|>assistant prompt?

This bug is older than the toggle and it happens independently of the State of the toggle. You are right if the toggle works as intended, it would make it double which is bad, thanks for clarifying that. But the question is why is the crash happening? Maybe it's the length of the string for the aliases together that's limited some how?

It could be related to #210, the core of that issue is a buffer overflow is occurring when i try to inject the context. Perhaps its causing a similar issue

from maid.

danemadsen avatar danemadsen commented on June 8, 2024

And a follow up question, if the chatml toggle is working as intended, why isn't that crashing the app?

I havnt tested the chatml so im not sure if it does work.

from maid.

GameOverFlowChart avatar GameOverFlowChart commented on June 8, 2024

so do you mean you're setting user alias to <|im_start|> and you're also enabling the chatml toggle? the user alias effectively does the same thing as the chatml toggle exact you can specify a custom prefix so if you're enabling chatml and adding in the chatml prefix as the user alias what its probably doing would look like this:
<|im_start|><|im_start|>user prompt<|im_start|><|im_start|>assistant prompt?

This bug is older than the toggle and it happens independently of the State of the toggle. You are right if the toggle works as intended, it would make it double which is bad, thanks for clarifying that. But the question is why is the crash happening? Maybe it's the length of the string for the aliases together that's limited some how?

It could be related to #210, the core of that issue is a buffer overflow is occurring when i try to inject the context. Perhaps its causing a similar issue

Hmm, I see. The thing is I can have very long preprompts, and they don't crash the app. So it seems to have to do with either the substring "<|im_start|>" itself or the way aliases are handled. Because otherwise my long preprompt should be the factor that crashes the app but it doesn't (and even with an empty preprompt, double <|im_start|> leads to crash).

from maid.

danemadsen avatar danemadsen commented on June 8, 2024

This issue is possibly also fixed now

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.