sudo lshw -C display
*-display UNCLAIMED
description: VGA compatible controller
product: GP102 [TITAN Xp]
import datetime | |
import functools | |
import inspect | |
import logging | |
import os | |
import shutil | |
import subprocess | |
from termcolor import colored |
Following this guide
Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
Get current time:
sudo date -s "29 Nov 2023 11:25:00+08:00"
Create a huggingface token
Put it in the repo secrets with name like HF_TOKEN
in related Github repo setitngs:
Run following commands in the git root folder:
git-filter-repo
from here: (Do not chagne its extension)
git-filter-repo
to the cloned repo root folderpython git-filter-repo --path <directory_to_separate_to_new_repo> --force
<directory_to_separate_to_new_repo>
.git
directory in original repo root folderDo following steps:
@*.edu
email:
import torch | |
import whisper | |
from pathlib import Path | |
from termcolor import colored | |
class SpeechToTextConverter: | |
def __init__(self, folders=["."], exts=[".mp3"], files=None): | |
self.folders = folders |
Check if CUDA is available by torch:
import torch
def check_cuda():
print(torch.version.cuda)
cuda_is_ok = torch.cuda.is_available()
print(f"CUDA Enabled: {cuda_is_ok}")
sudo apt install tmux