Giter Site home page Giter Site logo

Comments (13)

llity avatar llity commented on July 28, 2024 1

I reinstall the ChatFred workflow downloaded from GitHub using "cft" keywords, but the Chinese content also doesn't be showing completely. By the way, I using the 'cf' keywords, it work fine.
image
image

Typing the 'cf' keywords
image

The English content is correct.
image

from chatfred.

llity avatar llity commented on July 28, 2024 1

Great, thanks for your attention to this matter.

from chatfred.

llity avatar llity commented on July 28, 2024 1

Yep, I will track this issue, and help fix it.

from chatfred.

llity avatar llity commented on July 28, 2024 1

How to set the maximum tokens for the InstructGPT and ChatGPT, respectively? Thanks.
It needs a bigger maximum tokens value for the InsructGPT model and keeps the ChatGPT model's value as the default.
I change the number of maximum tokens, it works fine. Thanks.
image

from chatfred.

chrislemke avatar chrislemke commented on July 28, 2024 1

Hey @llity

I just released a new version. There you adjust the Maximum tokens for ChatGPT and InstructGPT separately.

from chatfred.

chrislemke avatar chrislemke commented on July 28, 2024

Hey @llity!
It looks like you are using quite an old version of the workflow. Could you check which one it is?

from chatfred.

chrislemke avatar chrislemke commented on July 28, 2024

I will investigate and come back to you.

from chatfred.

chrislemke avatar chrislemke commented on July 28, 2024

Please have a look at the screenshot I posted. I marked the response from the model. Unfortunately, I don't speak Chinese but it looks like the model is exactly returning what is shown.
Screenshot 2023-03-23 at 07 56 31

from chatfred.

llity avatar llity commented on July 28, 2024

It's Chinese Unicode, but the workflow is not getting the total response result, and the content was broken. Is it need to be modified the value of "maximum tokens"?

Thanks.

image

I use a tool to convert it.
image

from chatfred.

chrislemke avatar chrislemke commented on July 28, 2024

Hm 🤔, you can try changing the Maximum tokens but the default value should be correct.

For the InstructGPT models to work as a chatbot, we must provide a specific response. That is why there is:

def prompt_from_query(query: str) -> str:
    """Creates a suitable prompt for the OpenAI InstructGPT API."""
    return f"Q: {query}\nA:"

We add a Q: in front of the query and a \nA: at the end of it. This may makes problems with non-Latin languages. You could try modifying this in the text_completion.py file.

from chatfred.

llity avatar llity commented on July 28, 2024

I try your suggestion, but it's not working. I think the InstuctGPT models don't return the answer completely, or the workflow breaks the answer when I type Chinese in it. And if the answer is Chinese should use ".decode('unicode-escape')" to convert the Unicode string.

cf model gets the correct answer.
image

from chatfred.

chrislemke avatar chrislemke commented on July 28, 2024

Thanks for the update. If you want you can make some changes and create a pull request if you want to contribute.

from chatfred.

chrislemke avatar chrislemke commented on July 28, 2024

Hey! Cool that you figured it out. Unfortunately, at the moment it is not possible to have two different Maximum values. But feel free to work on it and open a PR.

from chatfred.

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.