|
Download README.md from lewtun/pr-figures: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/datasets/lewtun/pr-figures/resolve/main/README.md
- Command line
-
hf download hf://datasets/lewtun/pr-figures/README.md
-
curl -L -o README.md https://huggingface.co/datasets/lewtun/pr-figures/resolve/main/README.md
1.07 kB
| pretty_name: PR figures | |
| tags: | |
| - figures | |
| viewer: false | |
| # PR figures | |
| Figures embedded in GitHub pull requests and issues by Agent Manager agents, made with the `figures` skill ([lewtun/skills](https://github.com/lewtun/skills)). | |
| **Everything here is public.** Don't upload figures with unreleased or private results; keep those in a private location instead. | |
| ## Layout | |
| ``` | |
| figures/<owner>__<repo>/<pr-or-issue-number>/<name>.png | |
| ``` | |
| For example, `figures/huggingface__trl/4321/gsm8k-accuracy.png` for PR 4321 in huggingface/trl. | |
| ## Embedding | |
| Upload with `HfApi.upload_file` and embed the file at the **commit SHA** that upload returned, never at `main`, so the image in a PR never changes: | |
| ``` | |
| https://huggingface.co/datasets/lewtun/pr-figures/resolve/<sha>/<path> | |
| ``` | |
| The PR or issue that embeds a figure names the plotting script and the data path that regenerate it. | |
| ## Example | |
|  | |