OSR: токен для приватного токенизатора
Browse files31 unmodified lines323334353637383939404142432 unmodified lines464748484950515231 unmodified lines else: print("ВНИМАНИЕ: выбери Runtime → Change runtime type → T4 GPU", flush=True)
token = _find_token() or "" base = os.path.join(ROOT, "model", "base") if not os.path.exists(os.path.join(base, "config.json")): rc = sh([sys.executable, os.path.join(HERE, "make_base_vl.py"), "--out", base, "--tok-repo", "AdminHugging/PP-OSR-Hydrogen", "--tok-token", ""]) "--tok-token", token]) if rc != 0: raise SystemExit(f"make_base_vl: {rc}")
2 unmodified lines sys.path.insert(0, HERE) from vl_data import build as vl_build
vl_build(data_dir, base, token=None, n_images=N_IMAGES) vl_build(data_dir, base, token=token or None, n_images=N_IMAGES)
import yaml
ppai/colab_pposr.py+3-2