mkturkcan / gptune Goto Github PK
View Code? Open in Web Editor NEWFine tuning experiments for the GPT-2 model by OpenAI.
License: Other
Fine tuning experiments for the GPT-2 model by OpenAI.
License: Other
Thanks for this very cool variation of the nshepperd original repo.
I've used --truncate_training 64 to fine-tune a 10 meg corpus with 774M adam/all on a 8 gig headless 1070. The sampled output is better than 345M (imho).
Given that result, does that mean the script is passing 64 parameters of a possible 436 training parameters* in a batch, completing processing, then moving on to the next 64 parameters until all 436 are completed OR are only 64 of a possible 436 loaded into memory for the full fine-tuning session resulting in "774M-lite" ?
For reference, I've run the same test on PaperSpace P6000 (24 gig) without the truncate value and it required only 16.6 gigs of the 23+ gigs available. It required 6x less total iterations compared to the 8 gig test and both checkpoints are the same 3.1 gig size.
Unless I'm mistaken it appears that it's possible to fine-tune a corpus using current 774M model and adam/all layers using memory saving gradients on a home gpu which is a major accomplishment to say the least. If that's true (and it's not 774M lite) then the only advantage to using a 24 gig card is 6x savings on processing time.
Would appreciate your confirmation on how it works.
Cheers, and thanks again for the great repo.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.