This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPENAI_SRC_PATH = "/admin/home/eustache_lebihan/dev/benchmark-whisper/whisper-myfork" | |
import sys | |
sys.path.insert(0, OPENAI_SRC_PATH) | |
import wandb | |
from tqdm import tqdm | |
import evaluate | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPENAI_SRC_PATH = "/admin/home/eustache_lebihan/dev/benchmark-whisper/whisper" | |
import sys | |
sys.path.insert(0, OPENAI_SRC_PATH) | |
import wandb | |
from tqdm import tqdm | |
import evaluate | |
import os | |
import torch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TRANSFORMERS_SRC_PATH = "/admin/home/eustache_lebihan/dev/benchmark-whisper/transformers-fix/src" | |
import sys | |
sys.path.insert(0, TRANSFORMERS_SRC_PATH) | |
import wandb | |
from tqdm import tqdm | |
import evaluate | |
import os | |
import torch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import torch | |
import time | |
from parler_tts import ParlerTTSForConditionalGeneration, ParlerTTSStreamer | |
from transformers import AutoTokenizer | |
from threading import Thread | |
# caching allows ~50% compilation time reduction | |
# see https://docs.google.com/document/d/1y5CRfMLdwEoF1nTk9q8qEu1mgMUuUtvhklPKJ2emLU8/edit#heading=h.o2asbxsrp1ma |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import torch | |
import time | |
from parler_tts import ParlerTTSForConditionalGeneration, ParlerTTSStreamer | |
from transformers import AutoTokenizer | |
from threading import Thread | |
# caching allows ~50% compilation time reduction | |
# see https://docs.google.com/document/d/1y5CRfMLdwEoF1nTk9q8qEu1mgMUuUtvhklPKJ2emLU8/edit#heading=h.o2asbxsrp1ma | |
CURRENT_DIR = os.path.dirname(os.path.realpath(__file__)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import torch | |
import soundfile as sf | |
from parler_tts import ParlerTTSForConditionalGeneration | |
from transformers import AutoTokenizer | |
# caching allows ~50% compilation time reduction | |
# see https://docs.google.com/document/d/1y5CRfMLdwEoF1nTk9q8qEu1mgMUuUtvhklPKJ2emLU8/edit#heading=h.o2asbxsrp1ma | |
CURRENT_DIR = os.path.dirname(os.path.realpath(__file__)) | |
os.environ["TORCHINDUCTOR_CACHE_DIR"] = os.path.join(CURRENT_DIR, "tmp") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
import soundfile as sf | |
from parler_tts import ParlerTTSForConditionalGeneration | |
from transformers import AutoTokenizer | |
model_name = "ylacombe/parler-tts-mini-jenny-30H" | |
torch_device = "cuda:0" | |
torch_dtype = torch.bfloat16 | |
attn_implementation = "eager" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import torch | |
import soundfile as sf | |
from parler_tts import ParlerTTSForConditionalGeneration | |
from transformers import AutoTokenizer | |
# caching allows ~50% compilation time reduction | |
# see https://docs.google.com/document/d/1y5CRfMLdwEoF1nTk9q8qEu1mgMUuUtvhklPKJ2emLU8/edit#heading=h.o2asbxsrp1ma | |
CURRENT_DIR = os.path.dirname(os.path.realpath(__file__)) | |
os.environ["TORCHINDUCTOR_CACHE_DIR"] = os.path.join(CURRENT_DIR, "tmp") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import soundfile as sf | |
from parler_tts import ParlerTTSForConditionalGeneration | |
from transformers import AutoTokenizer | |
import torch | |
torch.manual_seed(0) | |
CUDA_DEVICE = 0 | |
torch_device = f"cuda:{CUDA_DEVICE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import soundfile as sf | |
from parler_tts import ParlerTTSForConditionalGeneration | |
from transformers import AutoTokenizer | |
import torch | |
torch._logging.set_logs(graph_breaks=True, recompiles=True) | |
torch.manual_seed(0) | |
CUDA_DEVICE = 0 | |
torch_device = f"cuda:{CUDA_DEVICE}" |
NewerOlder