training-and-data
Use PixelRAG's separate training project, released LoRA adapters, and synthetic data pipeline guidance safely.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- training-and-data
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use PixelRAG's separate training project, released LoRA adapters, and synthetic data pipeline guidance safely.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/data-pipeline.md2.5 KB
- 参考文档references/training-recipe.md2.6 KB
- 参考文档references/troubleshooting.md2.1 KB
- 脚本scripts/pixelrag_training_data_check.py2.9 KB
03 SKILL.md 正文
PixelRAG Training and Data
Use this sub-skill when the task asks about PixelRAG LoRA fine-tuning, the released screenshot embedding adapter, training/eval datasets, synthetic query generation, hard-negative mining, JSONL formats, or the separate train/ uv project.
Start Here
- Decide whether the user needs the released model or full retraining.
- For most usage, load the published LoRA adapter instead of retraining.
- Full retraining is a multi-GPU/data/credential workflow.
- Remember
train/is a separate uv project. Do not install it from the root package environment. - Confirm resource requirements before running anything heavy: A100/H100-class GPU, large disk, HF datasets, vLLM reader for eval, OpenAI/W&B/Google keys depending on stage.
- Validate small data samples with pixelrag_training_data_check.py before launching generation/training scripts.
Read or Run
- Read training-recipe.md for environment, released adapter, training command shape, and evaluation expectations.
- Read data-pipeline.md for synthetic query generation, filters, hard negatives, export/split, and JSONL fields.
- Read troubleshooting.md for keys, data paths, CUDA, vLLM, W&B, and silent-zero eval failures.
- Run pixelrag_training_data_check.py on a JSONL sample before spending GPU/API budget.
Common Routes
| Request | Action |
|---|---|
| "Use the trained PixelRAG embedding" | Load Chrisyichuan/wiki-screenshot-embedding-lora adapter on top of Qwen/Qwen3-VL-Embedding-2B; no retraining needed. |
| "Reproduce the training run" | Use the separate train/ uv env, required datasets, vLLM reader, OpenAI grader, and W&B/offline logging plan. |
| "Generate synthetic data" | Follow query generation -> self-contained filter -> hard-negative mining -> VQA false-negative filter -> naturalness scoring -> export/split -> HF packaging. |
| "Debug QA score is zero" | Check OpenAI key/base URL and reader endpoint; training may be fine while eval grading fails. |
| "Evaluate a checkpoint" | Use training eval scripts and route paper-level benchmark comparison to ../evaluation-reproduction/SKILL.md. |
Boundaries
- Do not call Google/OpenAI, upload to HF, or start W&B/vLLM/training jobs without explicit user approval.
- Do not mix root PixelRAG package extras with the pinned
train/project environment. - Do not claim CPU is a substitute for the training run; CPU may validate JSONL shape but not training performance.
- Keep local data roots, tokens, W&B run URLs, and API keys out of reusable notes unless the user explicitly asks for local operational commands.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).