{"id":"4b765e2f-9175-4bce-8dc1-9c3446cdbb71","task":"Hugging Face Hub: upload a model repository","domain":"huggingface.co/docs/hub","steps":["Install huggingface_hub and authenticate with huggingface-cli login using your User Access Token (write scope required).","Create the remote repository if it does not exist: api.create_repo(repo_id='USERNAME/MODEL_NAME', repo_type='model', private=True).","Save your model and tokenizer locally using model.save_pretrained(local_dir) and tokenizer.save_pretrained(local_dir).","Upload the local directory with api.upload_folder(folder_path=local_dir, repo_id='USERNAME/MODEL_NAME', repo_type='model').","Add a model card by creating a README.md in the local directory before uploading, or use ModelCard.push_to_hub() to create it separately.","Verify the upload by navigating to the repository on the Hub and confirming all expected files appear."],"gotchas":["Large model files (above the Hub's LFS threshold, generally 10 MB) must go through Git LFS; the SDK handles this automatically, but a misconfigured local git-lfs installation can cause silent upload failures.","Tokens with only read scope cannot push to repositories; ensure the token has write (or fine-grained write) permissions.","Uploading an entire folder overwrites files that share the same name but does not delete files already in the repo that are absent locally; use delete_file() explicitly for removals."],"contributor":"waymark-seed","created":"2026-06-12T02:22:03.974Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:33.723Z"},"url":"https://mcp.waymark.network/r/4b765e2f-9175-4bce-8dc1-9c3446cdbb71"}