QB64 GPT Just Rewrote My Code - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2) +--- Thread: QB64 GPT Just Rewrote My Code (/showthread.php?tid=2728) Pages:
1
2
|
RE: QB64 GPT Just Rewrote My Code - SMcNeill - 05-28-2024 (05-28-2024, 10:32 PM)Kernelpanic Wrote: Wait a minute - there's no beef ham?Not unless your beef is made out of pork. https://en.wikipedia.org/wiki/Ham Quote: Ham is pork from a leg cut that has been preserved by wet or dry curing, with or without smoking. It's almost like saying, "A chicken leg made from beef!" Or even as crazy as saying "almond juice" is the same thing as "almond milk." It ain't milk, unless it comes from a titty! RE: QB64 GPT Just Rewrote My Code - madscijr - 05-29-2024 (05-23-2024, 07:09 PM)SpriggsySpriggs Wrote: To be fair, I had to tell it "ByRef" was invalid and a couple of other things. I also had to declare "y" each time it was used. But the last iteration only required me to declare "y". I think that is a decent enough result. Too bad I can't get it to be this good every time.Pretty neat! Coupla questions:
Interesting stuff, thanks for sharing! RE: QB64 GPT Just Rewrote My Code - SpriggsySpriggs - 05-30-2024 1) This is the paid version of GPT4. I am on the plus plan, so whatever that one has. 2) I think I deleted the session. Sorry. I only used it for as long as I needed it. 3) I don't know what the hard limit is. It's in "tokens", which I have no idea how those are calculated. I got a pretty large source code from one output and it can take a lot of input. I would just say it can handle quite a bit. The GPT I used was one I trained using the Wiki, sample code, etc. At the time, it used GPT4. Custom GPTs now use 4o. I will probably need to republish it to take advantage of 4o for it. RE: QB64 GPT Just Rewrote My Code - madscijr - 05-30-2024 (05-30-2024, 11:35 AM)SpriggsySpriggs Wrote: 1) This is the paid version of GPT4. I am on the plus plan, so whatever that one has.Thanks for sharing - how does this training work anyway? Do you just feed it one or more URLs and say "study this", or upload files? What can it learn from? PDFs, image files, etc. or does it need plain text? Does training use up tokens? Does it remember what it learned across sessions? Sorry if these are annoying questions, I'm genuinely curious. Another thing I'm wondering is, would it be possible to set your GPT up with an account at QBJS (assuming QBJS has a way for users to legitimately "register" their personal GPT account) so that if you ask your GPT to write code, it can actually "play test" the code it writes for you, and tweak the code until it sees output that indicates it got it right. (I haven't played with qbjs yet, so maybe you can run a local copy at 127.0.0.1 and direct your GPT to that?) RE: QB64 GPT Just Rewrote My Code - SpriggsySpriggs - 05-30-2024 I guess training is the wrong word. A custom GPT has a "knowledge base". You can have a maximum of 20 files. It can use those files to create an answer. Even a zip folder can be used. It will basically only use the knowledge base when specifically asked. Otherwise, it is using whatever it already had in its model. As for testing code and such, you can create "actions" for your GPT that allow it to do things outside of ChatGPT, including REST API. So if dbox ever made a REST API for QBJS, you could definitely have it write QBJS code and then ask it to run it. RE: QB64 GPT Just Rewrote My Code - Dav - 05-30-2024 Does it make a Large Language Model that can be saved/shared? The are some iPad apps Ive seen that load custom LLM’s. Would be cool to have an offline QB64 code generator to play with. - Dav RE: QB64 GPT Just Rewrote My Code - SpriggsySpriggs - 05-30-2024 No. It does not create an offline LLM. RE: QB64 GPT Just Rewrote My Code - madscijr - 05-30-2024 (05-30-2024, 05:43 PM)SpriggsySpriggs Wrote: I guess training is the wrong word. A custom GPT has a "knowledge base". You can have a maximum of 20 files. It can use those files to create an answer. Even a zip folder can be used. It will basically only use the knowledge base when specifically asked. Otherwise, it is using whatever it already had in its model. As for testing code and such, you can create "actions" for your GPT that allow it to do things outside of ChatGPT, including REST API. So if dbox ever made a REST API for QBJS, you could definitely have it write QBJS code and then ask it to run it.Interesting - thanks for explaining. I don't know if QBJS has a REST API, maybe? (If not, maybe one could write a primitive wrapper for it?) In any case, I don't suppose you want to throw the problem of reading the keyboard via Raw Input at it? (Just kidding!) |