qazllm_deployment / README.md
CCRss's picture
Update README.md
3def995 verified
metadata
license: mit

How to download:

  1. Install required package:
pip install huggingface_hub
  1. Download models (this will download to your current directory):
from huggingface_hub import snapshot_download
import os

# Get current directory
current_dir = os.getcwd()

# Download VOSK models
print("Downloading vosk_models...")
snapshot_download(
    repo_id="CCRss/qazllm_deployment",
    repo_type="model",
    allow_patterns="vosk_models/*",
    local_dir=current_dir,
    local_dir_use_symlinks=False
)

# Download Piper models
print("Downloading piper_models...")
snapshot_download(
    repo_id="CCRss/qazllm_deployment",
    repo_type="model",
    allow_patterns="piper_models/*",
    local_dir=current_dir,
    local_dir_use_symlinks=False
)

This will create the following structure in your current directory:

./vosk_models/
    β”œβ”€β”€ vosk-model-en-us-0.22-lgraph/
    β”œβ”€β”€ vosk-model-kz-0.15/
    └── vosk-model-small-ru-0.22/
./piper_models/