pr-figures / README.md
lewtun's picture
lewtun HF Staff
Add README
79916e1 verified
|
Raw History Blame Contribute Delete
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
![Example figure](https://huggingface.co/datasets/lewtun/pr-figures/resolve/9bafb445229328cc628685c4bc50a44e0ad13114/figures/huggingface__legion/example/example.png)