Coder Social home page Coder Social logo

Comments (1)

erew123 avatar erew123 commented on July 24, 2024 1

This is an awesome project, btw. Thanks!

As for being able to limit the amount of writes to disk. Finetuning draws on the wider Python GPT trainer scripts, or to put it another way, scripts I have no direct access to or control of. There's no direct way within Python for me to force those other scripts to behave in a certain way or store their work in memory vs disk.

I can suggest a sort of solution for you though, its a few extra steps mind, but as far as I can think it should keep most (possibly all) activity occurring within RAM. This would be to setup a RAM-Disk and run the training from that. Obviously I've not tried this, so I'm giving you a loose hypothetical on how to do it.

In short a RAM-Disk creates a virtual disk drive, but stored only within your System RAM, meaning if you switch your computer off, that data is gone! Here is some example software (found with a quick Google search) https://www.softperfect.com/products/ramdisk/ I'm sure there are others out there. Microsoft no longer provide a RAM-Disk option as part of the Windows OS (which I believe you use based on your earlier screenshots).

So what you would do is something like this:

  • Setup a RAM-Disk (lets say its the K drive).
  • Start the Python environment you use.
  • Copy the AllTalk folder from its actual C drive location (or wherever) to your K drive RAM-Disk.
  • In your command prompt, go to the K:\alltalk_tts folder and run python finetune.py
  • Go through all your finetuning as normal.
  • At the end, when it copies the model and sample wav's to K:\alltalk_tts\models\trainedmodel (or whichever one you use) you would need to copy that off the K:\ drive and back to the correct location on your C:\ drive.
  • Close down your RAM-Disk.

I am making an assumption here that the majority of disk activity you are seeing is specifically to do with the model, its training and the training data being accessed and written to. I expect there may be an element of the OS still doing something with temporary files, but you cant avoid everything.

So a few extra steps, but should get you what you want.

Hope that gives you solution!

Thanks

from alltalk_tts.

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.