{"id":21428298,"url":"https://github.com/mlverse/hfhub","last_synced_at":"2025-07-25T01:17:38.231Z","repository":{"id":167242609,"uuid":"641795788","full_name":"mlverse/hfhub","owner":"mlverse","description":"Download and cache HuggingFace Hub files","archived":false,"fork":false,"pushed_at":"2024-09-17T14:44:30.000Z","size":1248,"stargazers_count":18,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-14T11:50:46.673Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mlverse.github.io/hfhub/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlverse.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-05-17T07:25:35.000Z","updated_at":"2025-06-26T21:15:57.000Z","dependencies_parsed_at":"2024-09-17T18:20:04.714Z","dependency_job_id":null,"html_url":"https://github.com/mlverse/hfhub","commit_stats":null,"previous_names":["mlverse/hfhub"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mlverse/hfhub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlverse%2Fhfhub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlverse%2Fhfhub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlverse%2Fhfhub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlverse%2Fhfhub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlverse","download_url":"https://codeload.github.com/mlverse/hfhub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlverse%2Fhfhub/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266936770,"owners_count":24009424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T22:12:31.715Z","updated_at":"2025-07-25T01:17:37.959Z","avatar_url":"https://github.com/mlverse.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# hfhub\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/mlverse/hfhub/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/mlverse/hfhub/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\nhfhub is a minimal port of [huggingface_hub](https://github.com/huggingface/huggingface_hub) that allows downloading files from Hugging Face Hub and caching them with the same structure used in the original implementation.\n\n## Installation\n\n`hfhub` can be installed from CRAN with:\n\n```\ninstall.packages(\"hfhub\")\n```\n\nYou can install the development version of hfhub like so:\n\n``` r\nremotes::install_github(\"mlverse/hfhub\")\n```\n\n## Example\n\n`hub_download` the the only exported function in the package and can be used to\ndownload and cache a file from any Hugging Face Hub repository. It returns a\npath to the file.\n\n``` r\nlibrary(hfhub)\npath \u003c- hub_download(\"gpt2\", \"config.json\")\nstr(jsonlite::fromJSON(path))\n```\n\n## Authentication\n\nYou can set the `HUGGING_FACE_HUB_TOKEN` environment variable with the value\nof a token obtained in the Access Token section of the Hugging Face account setting page. \nThis will allow you to download private files from Hugging Face Hub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlverse%2Fhfhub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlverse%2Fhfhub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlverse%2Fhfhub/lists"}