Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lighter refactoring. Open up for creatig a "chat" mode. #294

Closed
wants to merge 0 commits into from

Conversation

rdentato
Copy link
Contributor

This proposal keeps the main() function in run.c structurally identical (i.e. all the variables are declared in the main, no addition of extra types, etc).
If something like this can be implemented,i it will be easier to create a chat (with history, the ability to change parameters from one prompt to another etc).

Just a proposal to help deciding which way to go.

@karpathy
Copy link
Owner

Yes I think we'll need to do a refactor like this a bit in run.c. This change is also intertwined with the other PR that tries to create an llm object, so that the code can be used as a library.

@rdentato
Copy link
Contributor Author

That proposal was mine but I thought it was considered too invasive.
I do believe that one is cleaner, let me know if there is any good time to resubmit.

@rdentato rdentato closed this Aug 16, 2023
@rdentato rdentato deleted the patch-light-refactor branch August 21, 2023 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants