/kaggle-tools:kaggle-llm-finetuningfrom kaggle-tools
Fine-tunes LLMs with LoRA/QLoRA/SFT/GRPO inside Kaggle competitions. Covers TRL/PEFT setup, packing, completion-only loss, data quality, adapter submission format, GPU quota and 12-hour kernel limits.
Ships in kaggle-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
From the NVIDIA Nemotron reasoning challenge (hybrid Mamba/MoE/attention model, LoRA rank ≤ 32, adapters submitted as a zip).
| Lever | Effect |
|---|---|
target_modules="all-linear" | Strong default; PEFT resolves attention, MoE experts and Mamba projections |
packing=True, packing_strategy="wrapped" | ~3× faster. TRL's default ffd enables padding-free, which rejects custom collators |
| Verified chain-of-thought data (keep only CoTs whose final answer is rule-checked correct) | Biggest data lever (0.59 → 0.65) |
| Soft-balanced sampling across task types (α≈0.5) | Helps weak categories without drowning others |
| Completion-only loss (mask all but assistant spans; packing-aware collator) | +0.01 |
The gap to the top (0.66 → 0.84) was not LoRA architecture (identical module sets to the 0.84 adapter). It came from data quantity/quality and more training steps.
packing=False + long seq). Always
assert os.path.getsize("adapter_model.safetensors") > 1_000_000 before packaging.lm_head to LoRA targets balloons the adapter (150 MB → 4.3 GB), can OOM, and
was neutral at ~6k examples.target_modules for speed doesn't work: step time is dominated by the base
forward + gradient checkpointing.DataCollatorForCompletionOnlyLM): pin versions and
subclass DataCollatorForLanguageModeling for custom masking.adapter_config.json + adapter_model.safetensors at the zip
root, not in a folder.trl/peft wheels as a dataset.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub yassinealouini/kaggle-tools --plugin kaggle-tools9 skills in this plugin
/kaggle-audio-bioacousticsUse when working on Kaggle audio/bioacoustics competitions like BirdCLEF — row_id parsing, pretrained bioacoustic backbones (Perch, BirdNET), per-species probes, temporal models, mel spectrograms, CV/LB gap, rare and zero-sample species, CPU inference budget/kaggle-code-competitionsUse when working on any Kaggle code competition — notebook submission, data paths, offline packages, GPU/accelerator choice, kernel push workflow, time limits, or debugging "Submission Scoring Error", TIMEOUT and NO_SCORE/kaggle-competition-playbookUse when starting, planning or steering any Kaggle competition — reading the metric, choosing CV, deciding which experiment to run next, interpreting CV/LB gaps, ensembling, and managing submission/GPU quota/kaggle-leaderboard-analysisCompare Kaggle public and private team positions, or plot an account's competition history as top percentages by year with readable paginated figures. Use for leaderboard shakeups, finishing positions, and competition progress reports./kaggle-llm-reasoningUse when working on Kaggle LLM reasoning/inference competitions like AIMO — model choice, vLLM on H100, tool-integrated reasoning (TIR), self-consistency voting, answer extraction, inference-server API, time budget, offline tokenizer files/kaggle-llm-servingUse when an LLM inference notebook on Kaggle GPUs (4x L4, 2x T4, single 24 GB cards) is throughput-bound — tokens/s too low for the runtime limit, choosing tensor vs data parallel, fitting a 20-30B model on one 24 GB card, KV-cache or Mamba/GDN state limiting concurrency, MTP/speculative decoding depth, int4/fp8 weights or KV, vLLM patch stacks (HyperQwen, Merlin), or benchmarking serving configs on RunPod before spending Kaggle quotaOther plugins' skills for the same job