Coder Social home page Coder Social logo

drewscatterday / tortoise-tts-fast Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 152334h/tortoise-tts-fast

6.0 0.0 1.0 102.55 MB

Fast TorToiSe inference (5x or your money back!)

License: GNU Affero General Public License v3.0

Shell 0.06% Python 9.85% HTML 2.14% Jupyter Notebook 87.95%

tortoise-tts-fast's Introduction

๐Ÿข This is a fork of the tortoise-tts-fast fork

This fork is exactly the same as the original tortoise-tts-fast but adds deepspeed for even faster inference speed

The original tortoise repo has many of these changes merged in but it does not allow you to import finetuned tortoise models


Speeding up TorToiSe inference 5x

This is a working project to drastically boost the performance of TorToiSe, without modifying the base models. Expect speedups of 5~10x

This repo adds the following config options for TorToiSe for faster inference:

  • New September 2023 - Deepspeed
  • (--kv_cache) enabling of KV cache for MUCH faster GPT sampling
  • (--half) half precision inference where possible
  • (--sampler dpm++2m) DPM-Solver samplers for better diffusion
  • (disable with --low_vram) option to toggle cpu offloading, for high vram users

All changes in this fork are licensed under the AGPL. For avoidance beyond all doubt, the following statement is added as a comment to all changed code files:

AGPL: a notification must be added stating that changes have been made to that file.

Installation

pure python install

The installation process is identical to the original tortoise-tts repo.

โš ๏ธ Unfortunately, deepspeed is not supported on Windows (which is ironic because the repo is operated by Microsoft). Luckily, linux with WSL is not too painful to setup and integrates pretty well with VS code.

conda create --name tortoise python=3.9 numba inflect
conda activate tortoise
conda install pytorch==2.0.0 torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
conda install transformers=4.29.2
pip install -r requirements.txt 
pip3 install git+https://github.com/152334H/BigVGAN.git
pip install deepspeed=0.10.2 # linux/WSL only

If you are on windows, you will also need to install pysoundfile: conda install -c conda-forge pysoundfile

For more information please reference the original tortoise-tts-fast README or original tortoise repo README

tortoise-tts-fast's People

Contributors

neonbjb avatar 152334h avatar ryu1845 avatar jnordberg avatar drewscatterday avatar netshade avatar osanseviero avatar marcusllewellyn avatar benorelogistics avatar hesz94 avatar wonbin-jung avatar wavymulder avatar e0xextazy avatar kianmeng avatar space-pope avatar jaimu97 avatar mogwai avatar livshitz avatar faad3 avatar casonclagg avatar

Stargazers

 avatar Jeremy Dombrowski avatar Luigi avatar PlatformKit avatar  avatar  avatar

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.