Add files using upload-large-folder tool
Browse files
scorer_pretrain/scorer_v1/checkpoint-last.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91503969d58ff45005ea0a66e28aebffb1b540ff0e145b42853ac47baa80c0b8
|
| 3 |
+
size 3940697972
|
scorer_pretrain/scorer_v1/train.log
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
scorer_pretrain/scorer_v1/upload_to_hf.py
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Upload checkpoint to Hugging Face Hub."""
|
| 3 |
+
|
| 4 |
+
import os
|
| 5 |
+
import sys
|
| 6 |
+
from huggingface_hub import HfApi, login
|
| 7 |
+
|
| 8 |
+
HF_TOKEN = os.environ.get("HF_TOKEN")
|
| 9 |
+
if not HF_TOKEN:
|
| 10 |
+
print("Error: Set HF_TOKEN environment variable with your Hugging Face token")
|
| 11 |
+
print("Example: export HF_TOKEN='your_token_here'")
|
| 12 |
+
sys.exit(1)
|
| 13 |
+
|
| 14 |
+
REPO_ID = "slam-e2e/trained_model"
|
| 15 |
+
FILES = [
|
| 16 |
+
("checkpoint-last.pth", "checkpoint-last.pth"),
|
| 17 |
+
("train.log", "train.log"),
|
| 18 |
+
]
|
| 19 |
+
|
| 20 |
+
print(f"Logging in to Hugging Face...")
|
| 21 |
+
login(token=HF_TOKEN)
|
| 22 |
+
|
| 23 |
+
api = HfApi()
|
| 24 |
+
|
| 25 |
+
for local_path, repo_path in FILES:
|
| 26 |
+
print(f"\nUploading {local_path} -> {repo_path}...")
|
| 27 |
+
try:
|
| 28 |
+
api.upload_file(
|
| 29 |
+
path_or_fileobj=local_path,
|
| 30 |
+
path_in_repo=repo_path,
|
| 31 |
+
repo_id=REPO_ID,
|
| 32 |
+
)
|
| 33 |
+
print(f"✓ Successfully uploaded {local_path}")
|
| 34 |
+
except Exception as e:
|
| 35 |
+
print(f"✗ Failed to upload {local_path}: {e}")
|
| 36 |
+
raise
|
| 37 |
+
|
| 38 |
+
print("\n✓ All uploads complete!")
|
scorer_pretrain/trained_model/checkpoint-last.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91503969d58ff45005ea0a66e28aebffb1b540ff0e145b42853ac47baa80c0b8
|
| 3 |
+
size 3940697972
|