opencode-skills-antigravity 1.0.40 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled-skills/.antigravity-install-manifest.json +7 -1
- package/bundled-skills/docs/integrations/jetski-cortex.md +3 -3
- package/bundled-skills/docs/integrations/jetski-gemini-loader/README.md +1 -1
- package/bundled-skills/docs/maintainers/repo-growth-seo.md +3 -3
- package/bundled-skills/docs/maintainers/skills-update-guide.md +1 -1
- package/bundled-skills/docs/sources/sources.md +2 -2
- package/bundled-skills/docs/users/bundles.md +1 -1
- package/bundled-skills/docs/users/claude-code-skills.md +1 -1
- package/bundled-skills/docs/users/gemini-cli-skills.md +1 -1
- package/bundled-skills/docs/users/getting-started.md +1 -1
- package/bundled-skills/docs/users/kiro-integration.md +1 -1
- package/bundled-skills/docs/users/usage.md +4 -4
- package/bundled-skills/docs/users/visual-guide.md +4 -4
- package/bundled-skills/hugging-face-cli/SKILL.md +192 -195
- package/bundled-skills/hugging-face-community-evals/SKILL.md +213 -0
- package/bundled-skills/hugging-face-community-evals/examples/.env.example +3 -0
- package/bundled-skills/hugging-face-community-evals/examples/USAGE_EXAMPLES.md +101 -0
- package/bundled-skills/hugging-face-community-evals/scripts/inspect_eval_uv.py +104 -0
- package/bundled-skills/hugging-face-community-evals/scripts/inspect_vllm_uv.py +306 -0
- package/bundled-skills/hugging-face-community-evals/scripts/lighteval_vllm_uv.py +297 -0
- package/bundled-skills/hugging-face-dataset-viewer/SKILL.md +120 -120
- package/bundled-skills/hugging-face-gradio/SKILL.md +304 -0
- package/bundled-skills/hugging-face-gradio/examples.md +613 -0
- package/bundled-skills/hugging-face-jobs/SKILL.md +25 -18
- package/bundled-skills/hugging-face-jobs/index.html +216 -0
- package/bundled-skills/hugging-face-jobs/references/hardware_guide.md +336 -0
- package/bundled-skills/hugging-face-jobs/references/hub_saving.md +352 -0
- package/bundled-skills/hugging-face-jobs/references/token_usage.md +570 -0
- package/bundled-skills/hugging-face-jobs/references/troubleshooting.md +475 -0
- package/bundled-skills/hugging-face-jobs/scripts/cot-self-instruct.py +718 -0
- package/bundled-skills/hugging-face-jobs/scripts/finepdfs-stats.py +546 -0
- package/bundled-skills/hugging-face-jobs/scripts/generate-responses.py +587 -0
- package/bundled-skills/hugging-face-model-trainer/SKILL.md +11 -12
- package/bundled-skills/hugging-face-model-trainer/references/gguf_conversion.md +296 -0
- package/bundled-skills/hugging-face-model-trainer/references/hardware_guide.md +283 -0
- package/bundled-skills/hugging-face-model-trainer/references/hub_saving.md +364 -0
- package/bundled-skills/hugging-face-model-trainer/references/local_training_macos.md +231 -0
- package/bundled-skills/hugging-face-model-trainer/references/reliability_principles.md +371 -0
- package/bundled-skills/hugging-face-model-trainer/references/trackio_guide.md +189 -0
- package/bundled-skills/hugging-face-model-trainer/references/training_methods.md +150 -0
- package/bundled-skills/hugging-face-model-trainer/references/training_patterns.md +203 -0
- package/bundled-skills/hugging-face-model-trainer/references/troubleshooting.md +282 -0
- package/bundled-skills/hugging-face-model-trainer/references/unsloth.md +313 -0
- package/bundled-skills/hugging-face-model-trainer/scripts/convert_to_gguf.py +424 -0
- package/bundled-skills/hugging-face-model-trainer/scripts/dataset_inspector.py +417 -0
- package/bundled-skills/hugging-face-model-trainer/scripts/estimate_cost.py +150 -0
- package/bundled-skills/hugging-face-model-trainer/scripts/train_dpo_example.py +106 -0
- package/bundled-skills/hugging-face-model-trainer/scripts/train_grpo_example.py +89 -0
- package/bundled-skills/hugging-face-model-trainer/scripts/train_sft_example.py +122 -0
- package/bundled-skills/hugging-face-model-trainer/scripts/unsloth_sft_example.py +512 -0
- package/bundled-skills/hugging-face-paper-publisher/SKILL.md +11 -4
- package/bundled-skills/hugging-face-paper-publisher/examples/example_usage.md +326 -0
- package/bundled-skills/hugging-face-paper-publisher/references/quick_reference.md +216 -0
- package/bundled-skills/hugging-face-paper-publisher/scripts/paper_manager.py +606 -0
- package/bundled-skills/hugging-face-paper-publisher/templates/arxiv.md +299 -0
- package/bundled-skills/hugging-face-paper-publisher/templates/ml-report.md +358 -0
- package/bundled-skills/hugging-face-paper-publisher/templates/modern.md +319 -0
- package/bundled-skills/hugging-face-paper-publisher/templates/standard.md +201 -0
- package/bundled-skills/hugging-face-papers/SKILL.md +241 -0
- package/bundled-skills/hugging-face-trackio/.claude-plugin/plugin.json +19 -0
- package/bundled-skills/hugging-face-trackio/SKILL.md +117 -0
- package/bundled-skills/hugging-face-trackio/references/alerts.md +196 -0
- package/bundled-skills/hugging-face-trackio/references/logging_metrics.md +206 -0
- package/bundled-skills/hugging-face-trackio/references/retrieving_metrics.md +251 -0
- package/bundled-skills/hugging-face-vision-trainer/SKILL.md +595 -0
- package/bundled-skills/hugging-face-vision-trainer/references/finetune_sam2_trainer.md +254 -0
- package/bundled-skills/hugging-face-vision-trainer/references/hub_saving.md +618 -0
- package/bundled-skills/hugging-face-vision-trainer/references/image_classification_training_notebook.md +279 -0
- package/bundled-skills/hugging-face-vision-trainer/references/object_detection_training_notebook.md +700 -0
- package/bundled-skills/hugging-face-vision-trainer/references/reliability_principles.md +310 -0
- package/bundled-skills/hugging-face-vision-trainer/references/timm_trainer.md +91 -0
- package/bundled-skills/hugging-face-vision-trainer/scripts/dataset_inspector.py +814 -0
- package/bundled-skills/hugging-face-vision-trainer/scripts/estimate_cost.py +217 -0
- package/bundled-skills/hugging-face-vision-trainer/scripts/image_classification_training.py +383 -0
- package/bundled-skills/hugging-face-vision-trainer/scripts/object_detection_training.py +710 -0
- package/bundled-skills/hugging-face-vision-trainer/scripts/sam_segmentation_training.py +382 -0
- package/bundled-skills/transformers-js/SKILL.md +639 -0
- package/bundled-skills/transformers-js/references/CACHE.md +339 -0
- package/bundled-skills/transformers-js/references/CONFIGURATION.md +390 -0
- package/bundled-skills/transformers-js/references/EXAMPLES.md +605 -0
- package/bundled-skills/transformers-js/references/MODEL_ARCHITECTURES.md +167 -0
- package/bundled-skills/transformers-js/references/PIPELINE_OPTIONS.md +545 -0
- package/bundled-skills/transformers-js/references/TEXT_GENERATION.md +315 -0
- package/package.json +1 -1
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
# Example Usage: HF Paper Publisher Skill
|
|
2
|
+
|
|
3
|
+
This document demonstrates common workflows for publishing research papers on Hugging Face Hub.
|
|
4
|
+
|
|
5
|
+
## Example 1: Index an Existing arXiv Paper
|
|
6
|
+
|
|
7
|
+
If you've already published a paper on arXiv and want to make it discoverable on Hugging Face:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Check if paper exists
|
|
11
|
+
uv run scripts/paper_manager.py check --arxiv-id "2301.12345"
|
|
12
|
+
|
|
13
|
+
# Index the paper
|
|
14
|
+
uv run scripts/paper_manager.py index --arxiv-id "2301.12345"
|
|
15
|
+
|
|
16
|
+
# Get paper information
|
|
17
|
+
uv run scripts/paper_manager.py info --arxiv-id "2301.12345"
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Expected output:
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"exists": true,
|
|
24
|
+
"url": "https://huggingface.co/papers/2301.12345",
|
|
25
|
+
"arxiv_id": "2301.12345",
|
|
26
|
+
"arxiv_url": "https://arxiv.org/abs/2301.12345"
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Example 2: Link Paper to Your Model
|
|
31
|
+
|
|
32
|
+
After indexing a paper, link it to your model repository:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# Link single paper
|
|
36
|
+
uv run scripts/paper_manager.py link \
|
|
37
|
+
--repo-id "username/my-awesome-model" \
|
|
38
|
+
--repo-type "model" \
|
|
39
|
+
--arxiv-id "2301.12345"
|
|
40
|
+
|
|
41
|
+
# Link multiple papers
|
|
42
|
+
uv run scripts/paper_manager.py link \
|
|
43
|
+
--repo-id "username/my-awesome-model" \
|
|
44
|
+
--repo-type "model" \
|
|
45
|
+
--arxiv-ids "2301.12345,2302.67890"
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
This will:
|
|
49
|
+
1. Download the model's README.md
|
|
50
|
+
2. Add or update YAML frontmatter
|
|
51
|
+
3. Insert paper references with links
|
|
52
|
+
4. Upload the updated README
|
|
53
|
+
5. Hub automatically creates `arxiv:2301.12345` tags
|
|
54
|
+
|
|
55
|
+
## Example 3: Link Paper to Dataset
|
|
56
|
+
|
|
57
|
+
Same process for datasets:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
uv run scripts/paper_manager.py link \
|
|
61
|
+
--repo-id "username/my-dataset" \
|
|
62
|
+
--repo-type "dataset" \
|
|
63
|
+
--arxiv-id "2301.12345" \
|
|
64
|
+
--citation "$(cat citation.bib)"
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Example 4: Create a New Research Article
|
|
68
|
+
|
|
69
|
+
Generate a research paper from template:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# Create with standard template
|
|
73
|
+
uv run scripts/paper_manager.py create \
|
|
74
|
+
--template "standard" \
|
|
75
|
+
--title "Efficient Fine-Tuning of Large Language Models" \
|
|
76
|
+
--authors "Jane Doe, John Smith" \
|
|
77
|
+
--abstract "We propose a novel approach to fine-tuning..." \
|
|
78
|
+
--output "paper.md"
|
|
79
|
+
|
|
80
|
+
# Create with modern template
|
|
81
|
+
uv run scripts/paper_manager.py create \
|
|
82
|
+
--template "modern" \
|
|
83
|
+
--title "Vision Transformers for Medical Imaging" \
|
|
84
|
+
--output "medical_vit_paper.md"
|
|
85
|
+
|
|
86
|
+
# Create ML experiment report
|
|
87
|
+
uv run scripts/paper_manager.py create \
|
|
88
|
+
--template "ml-report" \
|
|
89
|
+
--title "BERT Fine-tuning Experiment Results" \
|
|
90
|
+
--output "bert_experiment_report.md"
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Example 5: Generate Citations
|
|
94
|
+
|
|
95
|
+
Get formatted citations for papers:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
# BibTeX format
|
|
99
|
+
uv run scripts/paper_manager.py citation \
|
|
100
|
+
--arxiv-id "2301.12345" \
|
|
101
|
+
--format "bibtex"
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Output:
|
|
105
|
+
```bibtex
|
|
106
|
+
@article{arxiv2301_12345,
|
|
107
|
+
title={Efficient Fine-Tuning of Large Language Models},
|
|
108
|
+
author={Doe, Jane and Smith, John},
|
|
109
|
+
journal={arXiv preprint arXiv:2301.12345},
|
|
110
|
+
year={2023}
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Example 6: Complete Workflow - New Paper
|
|
115
|
+
|
|
116
|
+
Full workflow from paper creation to publication:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
# Step 1: Create research article
|
|
120
|
+
uv run scripts/paper_manager.py create \
|
|
121
|
+
--template "modern" \
|
|
122
|
+
--title "Novel Architecture for Multimodal Learning" \
|
|
123
|
+
--authors "Alice Chen, Bob Kumar" \
|
|
124
|
+
--output "multimodal_paper.md"
|
|
125
|
+
|
|
126
|
+
# Step 2: Edit the paper (use your favorite editor)
|
|
127
|
+
# vim multimodal_paper.md
|
|
128
|
+
|
|
129
|
+
# Step 3: Submit to arXiv (external process)
|
|
130
|
+
# Upload to arxiv.org, receive arXiv ID: 2312.99999
|
|
131
|
+
|
|
132
|
+
# Step 4: Index on Hugging Face
|
|
133
|
+
uv run scripts/paper_manager.py index --arxiv-id "2312.99999"
|
|
134
|
+
|
|
135
|
+
# Step 5: Link to your models/datasets
|
|
136
|
+
uv run scripts/paper_manager.py link \
|
|
137
|
+
--repo-id "alice/multimodal-model-v1" \
|
|
138
|
+
--repo-type "model" \
|
|
139
|
+
--arxiv-id "2312.99999"
|
|
140
|
+
|
|
141
|
+
uv run scripts/paper_manager.py link \
|
|
142
|
+
--repo-id "alice/multimodal-dataset" \
|
|
143
|
+
--repo-type "dataset" \
|
|
144
|
+
--arxiv-id "2312.99999"
|
|
145
|
+
|
|
146
|
+
# Step 6: Generate citation for README
|
|
147
|
+
uv run scripts/paper_manager.py citation \
|
|
148
|
+
--arxiv-id "2312.99999" \
|
|
149
|
+
--format "bibtex" > citation.bib
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Example 7: Batch Link Papers
|
|
153
|
+
|
|
154
|
+
Link multiple papers to multiple repositories:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
#!/bin/bash
|
|
158
|
+
|
|
159
|
+
# List of papers
|
|
160
|
+
PAPERS=("2301.12345" "2302.67890" "2303.11111")
|
|
161
|
+
|
|
162
|
+
# List of models
|
|
163
|
+
MODELS=("username/model-a" "username/model-b" "username/model-c")
|
|
164
|
+
|
|
165
|
+
# Link each paper to each model
|
|
166
|
+
for paper in "${PAPERS[@]}"; do
|
|
167
|
+
for model in "${MODELS[@]}"; do
|
|
168
|
+
echo "Linking $paper to $model..."
|
|
169
|
+
uv run scripts/paper_manager.py link \
|
|
170
|
+
--repo-id "$model" \
|
|
171
|
+
--repo-type "model" \
|
|
172
|
+
--arxiv-id "$paper"
|
|
173
|
+
done
|
|
174
|
+
done
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
## Example 8: Update Model Card with Paper Info
|
|
178
|
+
|
|
179
|
+
Get paper info and manually update model card:
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
# Get paper information
|
|
183
|
+
uv run scripts/paper_manager.py info \
|
|
184
|
+
--arxiv-id "2301.12345" \
|
|
185
|
+
--format "text" > paper_info.txt
|
|
186
|
+
|
|
187
|
+
# View the information
|
|
188
|
+
cat paper_info.txt
|
|
189
|
+
|
|
190
|
+
# Manually incorporate into your model card or use the link command
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## Example 9: Search and Discover Papers
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
# Search for papers (opens browser)
|
|
197
|
+
uv run scripts/paper_manager.py search \
|
|
198
|
+
--query "transformer attention mechanism"
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
## Example 10: Working with tfrere's Template
|
|
202
|
+
|
|
203
|
+
This skill complements [tfrere's research article template](https://huggingface.co/spaces/tfrere/research-article-template):
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
# 1. Use tfrere's Space to create a beautiful web-based paper
|
|
207
|
+
# Visit: https://huggingface.co/spaces/tfrere/research-article-template
|
|
208
|
+
|
|
209
|
+
# 2. Export your paper content to markdown
|
|
210
|
+
|
|
211
|
+
# 3. Submit to arXiv
|
|
212
|
+
|
|
213
|
+
# 4. Use this skill to index and link
|
|
214
|
+
uv run scripts/paper_manager.py index --arxiv-id "YOUR_ARXIV_ID"
|
|
215
|
+
uv run scripts/paper_manager.py link \
|
|
216
|
+
--repo-id "your-username/your-model" \
|
|
217
|
+
--arxiv-id "YOUR_ARXIV_ID"
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
## Example 11: Error Handling
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
# Check if paper exists before linking
|
|
224
|
+
if uv run scripts/paper_manager.py check --arxiv-id "2301.12345" | grep -q '"exists": true'; then
|
|
225
|
+
echo "Paper exists, proceeding with link..."
|
|
226
|
+
uv run scripts/paper_manager.py link \
|
|
227
|
+
--repo-id "username/model" \
|
|
228
|
+
--arxiv-id "2301.12345"
|
|
229
|
+
else
|
|
230
|
+
echo "Paper doesn't exist, indexing first..."
|
|
231
|
+
uv run scripts/paper_manager.py index --arxiv-id "2301.12345"
|
|
232
|
+
uv run scripts/paper_manager.py link \
|
|
233
|
+
--repo-id "username/model" \
|
|
234
|
+
--arxiv-id "2301.12345"
|
|
235
|
+
fi
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
## Example 12: CI/CD Integration
|
|
239
|
+
|
|
240
|
+
Add to your `.github/workflows/update-paper.yml`:
|
|
241
|
+
|
|
242
|
+
```yaml
|
|
243
|
+
name: Update Paper Links
|
|
244
|
+
|
|
245
|
+
on:
|
|
246
|
+
push:
|
|
247
|
+
branches: [main]
|
|
248
|
+
workflow_dispatch:
|
|
249
|
+
|
|
250
|
+
jobs:
|
|
251
|
+
update:
|
|
252
|
+
runs-on: ubuntu-latest
|
|
253
|
+
steps:
|
|
254
|
+
- uses: actions/checkout@v3
|
|
255
|
+
|
|
256
|
+
- name: Set up uv
|
|
257
|
+
uses: astral-sh/setup-uv@v5
|
|
258
|
+
|
|
259
|
+
- name: Set up Python
|
|
260
|
+
uses: actions/setup-python@v5
|
|
261
|
+
with:
|
|
262
|
+
python-version: '3.10'
|
|
263
|
+
|
|
264
|
+
- name: Link paper to model
|
|
265
|
+
env:
|
|
266
|
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
267
|
+
run: |
|
|
268
|
+
uv run scripts/paper_manager.py link \
|
|
269
|
+
--repo-id "${{ github.repository_owner }}/model-name" \
|
|
270
|
+
--repo-type "model" \
|
|
271
|
+
--arxiv-id "2301.12345"
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
## Tips and Best Practices
|
|
275
|
+
|
|
276
|
+
1. **Always check if paper exists** before indexing to avoid unnecessary operations
|
|
277
|
+
2. **Use meaningful commit messages** when linking papers to repositories
|
|
278
|
+
3. **Include full citations** in model cards for proper attribution
|
|
279
|
+
4. **Link papers to all relevant artifacts** (models, datasets, spaces)
|
|
280
|
+
5. **Generate BibTeX citations** for easy reference by others
|
|
281
|
+
6. **Keep paper visibility updated** in your HF profile settings
|
|
282
|
+
7. **Use templates consistently** within your research group
|
|
283
|
+
8. **Version control your papers** alongside code
|
|
284
|
+
|
|
285
|
+
## Troubleshooting
|
|
286
|
+
|
|
287
|
+
### Paper not found after indexing
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
# Visit the URL directly to trigger indexing
|
|
291
|
+
open "https://huggingface.co/papers/2301.12345"
|
|
292
|
+
|
|
293
|
+
# Wait a few seconds, then check again
|
|
294
|
+
uv run scripts/paper_manager.py check --arxiv-id "2301.12345"
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
### Permission denied when linking
|
|
298
|
+
|
|
299
|
+
```bash
|
|
300
|
+
# Verify your token has write access
|
|
301
|
+
echo $HF_TOKEN
|
|
302
|
+
|
|
303
|
+
# Set token if missing
|
|
304
|
+
export HF_TOKEN="your_token_here"
|
|
305
|
+
|
|
306
|
+
# Or use .env file
|
|
307
|
+
echo "HF_TOKEN=your_token_here" > .env
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
### arXiv ID format issues
|
|
311
|
+
|
|
312
|
+
```bash
|
|
313
|
+
# The script handles various formats:
|
|
314
|
+
uv run scripts/paper_manager.py check --arxiv-id "2301.12345"
|
|
315
|
+
uv run scripts/paper_manager.py check --arxiv-id "arxiv:2301.12345"
|
|
316
|
+
uv run scripts/paper_manager.py check --arxiv-id "https://arxiv.org/abs/2301.12345"
|
|
317
|
+
|
|
318
|
+
# All are equivalent and will be normalized
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
## Next Steps
|
|
322
|
+
|
|
323
|
+
- Explore the [Paper Pages documentation](https://huggingface.co/docs/hub/en/paper-pages)
|
|
324
|
+
- Check out [tfrere's research template](https://huggingface.co/spaces/tfrere/research-article-template)
|
|
325
|
+
- Browse [papers on HF](https://huggingface.co/papers)
|
|
326
|
+
- Learn about [model cards](https://huggingface.co/docs/hub/en/model-cards)
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
# Quick Reference Guide
|
|
2
|
+
|
|
3
|
+
## Essential Commands
|
|
4
|
+
|
|
5
|
+
### Paper Indexing
|
|
6
|
+
```bash
|
|
7
|
+
# Index from arXiv
|
|
8
|
+
uv run scripts/paper_manager.py index --arxiv-id "2301.12345"
|
|
9
|
+
|
|
10
|
+
# Check if exists
|
|
11
|
+
uv run scripts/paper_manager.py check --arxiv-id "2301.12345"
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Linking Papers
|
|
15
|
+
```bash
|
|
16
|
+
# Link to model
|
|
17
|
+
uv run scripts/paper_manager.py link \
|
|
18
|
+
--repo-id "username/model" \
|
|
19
|
+
--repo-type "model" \
|
|
20
|
+
--arxiv-id "2301.12345"
|
|
21
|
+
|
|
22
|
+
# Link to dataset
|
|
23
|
+
uv run scripts/paper_manager.py link \
|
|
24
|
+
--repo-id "username/dataset" \
|
|
25
|
+
--repo-type "dataset" \
|
|
26
|
+
--arxiv-id "2301.12345"
|
|
27
|
+
|
|
28
|
+
# Link multiple papers
|
|
29
|
+
uv run scripts/paper_manager.py link \
|
|
30
|
+
--repo-id "username/model" \
|
|
31
|
+
--repo-type "model" \
|
|
32
|
+
--arxiv-ids "2301.12345,2302.67890"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Creating Papers
|
|
36
|
+
```bash
|
|
37
|
+
# Standard template
|
|
38
|
+
uv run scripts/paper_manager.py create \
|
|
39
|
+
--template "standard" \
|
|
40
|
+
--title "Paper Title" \
|
|
41
|
+
--output "paper.md"
|
|
42
|
+
|
|
43
|
+
# Modern template
|
|
44
|
+
uv run scripts/paper_manager.py create \
|
|
45
|
+
--template "modern" \
|
|
46
|
+
--title "Paper Title" \
|
|
47
|
+
--authors "Author1, Author2" \
|
|
48
|
+
--abstract "Abstract text" \
|
|
49
|
+
--output "paper.md"
|
|
50
|
+
|
|
51
|
+
# ML Report
|
|
52
|
+
uv run scripts/paper_manager.py create \
|
|
53
|
+
--template "ml-report" \
|
|
54
|
+
--title "Experiment Report" \
|
|
55
|
+
--output "report.md"
|
|
56
|
+
|
|
57
|
+
# arXiv style
|
|
58
|
+
uv run scripts/paper_manager.py create \
|
|
59
|
+
--template "arxiv" \
|
|
60
|
+
--title "Paper Title" \
|
|
61
|
+
--output "paper.md"
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Citations
|
|
65
|
+
```bash
|
|
66
|
+
# Generate BibTeX
|
|
67
|
+
uv run scripts/paper_manager.py citation \
|
|
68
|
+
--arxiv-id "2301.12345" \
|
|
69
|
+
--format "bibtex"
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Paper Info
|
|
73
|
+
```bash
|
|
74
|
+
# JSON format
|
|
75
|
+
uv run scripts/paper_manager.py info \
|
|
76
|
+
--arxiv-id "2301.12345" \
|
|
77
|
+
--format "json"
|
|
78
|
+
|
|
79
|
+
# Text format
|
|
80
|
+
uv run scripts/paper_manager.py info \
|
|
81
|
+
--arxiv-id "2301.12345" \
|
|
82
|
+
--format "text"
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## URL Formats
|
|
86
|
+
|
|
87
|
+
### Hugging Face Paper Pages
|
|
88
|
+
- View paper: `https://huggingface.co/papers/{arxiv-id}`
|
|
89
|
+
- Example: `https://huggingface.co/papers/2301.12345`
|
|
90
|
+
|
|
91
|
+
### arXiv
|
|
92
|
+
- Abstract: `https://arxiv.org/abs/{arxiv-id}`
|
|
93
|
+
- PDF: `https://arxiv.org/pdf/{arxiv-id}.pdf`
|
|
94
|
+
- Example: `https://arxiv.org/abs/2301.12345`
|
|
95
|
+
|
|
96
|
+
## YAML Metadata Format
|
|
97
|
+
|
|
98
|
+
### Model Card
|
|
99
|
+
```yaml
|
|
100
|
+
---
|
|
101
|
+
language:
|
|
102
|
+
- en
|
|
103
|
+
license: apache-2.0
|
|
104
|
+
tags:
|
|
105
|
+
- text-generation
|
|
106
|
+
- transformers
|
|
107
|
+
library_name: transformers
|
|
108
|
+
---
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Dataset Card
|
|
112
|
+
```yaml
|
|
113
|
+
---
|
|
114
|
+
language:
|
|
115
|
+
- en
|
|
116
|
+
license: cc-by-4.0
|
|
117
|
+
task_categories:
|
|
118
|
+
- text-generation
|
|
119
|
+
size_categories:
|
|
120
|
+
- 10K<n<100K
|
|
121
|
+
---
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## arXiv ID Formats
|
|
125
|
+
|
|
126
|
+
All these formats work:
|
|
127
|
+
- `2301.12345`
|
|
128
|
+
- `arxiv:2301.12345`
|
|
129
|
+
- `https://arxiv.org/abs/2301.12345`
|
|
130
|
+
- `https://arxiv.org/pdf/2301.12345.pdf`
|
|
131
|
+
|
|
132
|
+
## Environment Setup
|
|
133
|
+
|
|
134
|
+
### Set Token
|
|
135
|
+
```bash
|
|
136
|
+
export HF_TOKEN="your_token"
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Or use .env file
|
|
140
|
+
```bash
|
|
141
|
+
echo "HF_TOKEN=your_token" > .env
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Common Workflows
|
|
145
|
+
|
|
146
|
+
### 1. Index & Link
|
|
147
|
+
```bash
|
|
148
|
+
uv run scripts/paper_manager.py index --arxiv-id "2301.12345"
|
|
149
|
+
uv run scripts/paper_manager.py link --repo-id "user/model" --arxiv-id "2301.12345"
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### 2. Create & Publish
|
|
153
|
+
```bash
|
|
154
|
+
uv run scripts/paper_manager.py create --template "modern" --title "Title" --output "paper.md"
|
|
155
|
+
# Edit paper.md
|
|
156
|
+
# Submit to arXiv → get ID
|
|
157
|
+
uv run scripts/paper_manager.py index --arxiv-id "NEW_ID"
|
|
158
|
+
uv run scripts/paper_manager.py link --repo-id "user/model" --arxiv-id "NEW_ID"
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### 3. Batch Link
|
|
162
|
+
```bash
|
|
163
|
+
for id in "2301.12345" "2302.67890"; do
|
|
164
|
+
uv run scripts/paper_manager.py link --repo-id "user/model" --arxiv-id "$id"
|
|
165
|
+
done
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## Troubleshooting
|
|
169
|
+
|
|
170
|
+
### Paper not found
|
|
171
|
+
Visit `https://huggingface.co/papers/{arxiv-id}` to trigger indexing
|
|
172
|
+
|
|
173
|
+
### Permission denied
|
|
174
|
+
Check `HF_TOKEN` is set and has write access
|
|
175
|
+
|
|
176
|
+
### arXiv API errors
|
|
177
|
+
Wait a moment and retry - arXiv has rate limits
|
|
178
|
+
|
|
179
|
+
## Tips
|
|
180
|
+
|
|
181
|
+
1. Always check paper exists before linking
|
|
182
|
+
2. Use templates for consistency
|
|
183
|
+
3. Include full citations in model cards
|
|
184
|
+
4. Link papers to all relevant artifacts
|
|
185
|
+
5. Keep citations up to date
|
|
186
|
+
|
|
187
|
+
## Templates Available
|
|
188
|
+
|
|
189
|
+
- `standard` - Traditional academic paper
|
|
190
|
+
- `modern` - Web-friendly format (Distill-style)
|
|
191
|
+
- `arxiv` - arXiv journal format
|
|
192
|
+
- `ml-report` - ML experiment documentation
|
|
193
|
+
|
|
194
|
+
## File Locations
|
|
195
|
+
|
|
196
|
+
- Scripts: `scripts/paper_manager.py`
|
|
197
|
+
- Templates: `templates/*.md`
|
|
198
|
+
- Examples: `examples/example_usage.md`
|
|
199
|
+
- This guide: `references/quick_reference.md`
|
|
200
|
+
|
|
201
|
+
## Getting Help
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
# Command help
|
|
205
|
+
uv run scripts/paper_manager.py --help
|
|
206
|
+
|
|
207
|
+
# Subcommand help
|
|
208
|
+
uv run scripts/paper_manager.py link --help
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
## Additional Resources
|
|
212
|
+
|
|
213
|
+
- [Full documentation](../SKILL.md)
|
|
214
|
+
- [Usage examples](../examples/example_usage.md)
|
|
215
|
+
- [HF Paper Pages](https://huggingface.co/papers)
|
|
216
|
+
- [tfrere's template](https://huggingface.co/spaces/tfrere/research-article-template)
|