from huggingface_hub import hf_hub_download import os REPO_ID = "whoy/GigaChat3-10B-A1.8B-bf16-gguf" MODEL_FILENAME = "GigaChat3-10B-A1.8B-Q8_0.gguf" print(f"Downloading {MODEL_FILENAME}...") try: model_path = hf_hub_download( repo_id=REPO_ID, filename=MODEL_FILENAME, local_dir="." # (/app in container) ) print(f"✓ Model downloaded successfully to: {model_path}") except Exception as e: print(f"Error downloading model: {e}") exit(1)