/kaggle-tools:kaggle-llm-reasoningfrom kaggle-tools
Provides a recipe for Kaggle LLM reasoning competitions (AIMO-style): model selection (GPT-OSS-120B on H100), SC-TIR loop, confidence-weighted voting, time budgeting, and offline tokenizer setup.
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.
Recipe that reached 38–44/50 on AIMO3: the strongest open reasoning model that fits (GPT-OSS-120B, 4-bit MoE) + SC-TIR (N parallel chains × M code-execute rounds) + confidence-weighted voting + a dynamic per-problem time budget.
7B (AIMO1 winner) → 32B → 120B explains most of the score gap; no amount of
engineering compensates. GPT-OSS-120B (MXFP4 MoE, ~5B active) fits on one H100 80 GB:
use CUDA_VISIBLE_DEVICES=0, tensor_parallel_size=1. Don't switch to TP=2 without an
actual OOM in the vLLM log. Use the "high" reasoning level.
cl100k_base/o200k_base files are the wrong ones:
os.environ["TIKTOKEN_ENCODINGS_BASE"] = "/kaggle/tmp/setup/tiktoken_encodings"
after extracting the correct archive. Twelve versions (all 0/50) were lost to this path.kernel-metadata.json sources (kernel vs dataset, docker image) exactly from
a working public notebook. A kernel listed under dataset_sources won't mount.kaggle kernels pull) before adding complexity (threads, fallbacks, gRPC).import kaggle_evaluation.aimo_3_inference_server as srv # match the comp's version
solver = Solver(cfg) # load vLLM FIRST (page-cache preload → ~60–120 s)
server = srv.AIMO3InferenceServer(predict)
if os.getenv("KAGGLE_IS_COMPETITION_RERUN"):
server.serve()
else:
server.run_local_gateway(("reference.csv",))
predict must always return an int — never None (fallback 0). Apply % 100000
(or whatever the answer range is).
\boxed{} (fallback patterns) — kaggle_tools.llm.extract_integer_answer.kaggle_tools.llm.ConsensusVoter).majority_vote) is the baseline.kaggle_tools.llm.weighted_vote).TimeBudget.per_item(n_left), spend more on
problems without early consensus, and always leave time for the remaining ones.Test the loop with a 7–14B model on a local 24 GB GPU, measure accuracy vs samples and vs time per problem, then scale up on Kaggle. Log per-problem answers, votes and timings to spot budget starvation.
What SKILL.md sets; muted values are Claude Code's defaults
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-finetuningUse when fine-tuning LLMs (LoRA/QLoRA, SFT, GRPO) inside Kaggle competitions — TRL/PEFT setup, packing, completion-only loss, data quality, adapter submission format, GPU quota and 12 h kernel limits/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