Using Fine Tuning Models with GPT3Discord #125
-
First, I just wanted to say thinks to the developers who've put so much time and love into this project. It's really cool and the care shows in all the details. I'm wanting to use the /converse function of the bot but switch out the davinci-003 model for a custom fine tune model. I'm a novice developer who jumped into projects once ChatGPT exploded in December and after working through replacing everything I can see in terms of model= variables that made sense in the openai model and text service files but I'm clearly missing something. What part of the application is responsible for defining the model used for the /conversation functionality of the bot? And is there any reason that I can't replace the davinci-003 model for my own fine tune? (Given all the pinecone DB calls and summarization stuff I didn't know if this idea was a nonstarter in terms of interdependencies). Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
See text_service_cog.py#L869 If you don't want to set one model for all conversation that's hardcoded you can add an entry to the Models class in openai_model.py then add that to the TEXT_MODELS list then set your default model with the settings command, should use that then class Models:
# Text models
DAVINCI = "text-davinci-003"
DAVINCI_FT = "some-model"
CURIE = "text-curie-001"
BABBAGE = "text-babbage-001"
ADA = "text-ada-001"
.....
# Model collections
TEXT_MODELS = [DAVINCI, DAVINCI_FT, CURIE, BABBAGE, ADA, CODE_DAVINCI, CODE_CUSHMAN]
EDIT_MODELS = [EDIT, CODE_EDIT]
....
# Tokens Mapping
TOKEN_MAPPING = {
"text-davinci-003": 4024,
"some-model": 4024,
"text-curie-001": 2024,
"text-babbage-001": 2024,
"text-ada-001": 2024,
"code-davinci-002": 7900,
"code-cushman-001": 2024,
} |
Beta Was this translation helpful? Give feedback.
-
I'll see about finally adding the custom model option to the conversations today when running the converse command |
Beta Was this translation helpful? Give feedback.
See text_service_cog.py#L869
Just set it to equal your custom model @erinheit451
If you don't want to set one model for all conversation that's hardcoded you can add an entry to the Models class in openai_model.py then add that to the TEXT_MODELS list then set your default model with the settings command, should use that then