OSR: токен для приватного токенизатора
Browse files31 unmodified lines32333435363738394041422 unmodified lines4546474849505131 unmodified lineselse:print("ВНИМАНИЕ: выбери Runtime → Change runtime type → T4 GPU", flush=True)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", ""])if rc != 0:raise SystemExit(f"make_base_vl: {rc}")2 unmodified linessys.path.insert(0, HERE)from vl_data import build as vl_buildvl_build(data_dir, base, token=None, n_images=N_IMAGES)import yaml31 unmodified lines3233343536373839404142432 unmodified lines4647484950515231 unmodified lineselse: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", token])if rc != 0:raise SystemExit(f"make_base_vl: {rc}")2 unmodified linessys.path.insert(0, HERE)from vl_data import build as vl_buildvl_build(data_dir, base, token=token or None, n_images=N_IMAGES)import yaml
ppai/colab_pposr.py+3-2