Skip to content

AIMO3: olympiad maths with an offline LLM

Solving olympiad-level maths inside an offline Kaggle kernel with a QLoRA fine-tune of Qwen3-30B-A3B, tool-integrated reasoning in vLLM, and majority voting.

Abstract ​

This entry for the AI Mathematical Olympiad Progress Prize 3[1] fine-tunes Qwen3-30B-A3B[2] with QLoRA[3], serves it with vLLM[4], lets the model write and run code to check its own working[5], and takes a majority vote over several sampled solutions[6]. The whole pipeline has to run in a Kaggle kernel with no internet access.

Introduction ​

The task is to solve olympiad-level problems, each with a single numerical answer. The constraint that shapes everything is the offline kernel: no package installs and no model downloads at submission time.

kaggle.comAI Mathematical Olympiad - Progress Prize 3 ↗Solve international-level math challenges using artificial intelligence models

Progress ​

Methodology ​

  1. Fine-tuning. QLoRA on Qwen3-30B-A3B with Unsloth, which keeps a 30B mixture-of-experts model within a single GPU's memory.
  2. Tool-integrated reasoning. At inference, the model interleaves reasoning with Python code that verifies intermediate steps.
  3. Majority voting. Several solutions are sampled per problem, and the most frequent final answer wins.

A separate dependency-bundling notebook packages every wheel and model file ahead of time, so the submission kernel only loads what is already attached.

Results and Conclusion ​

No leaderboard score yet; the inference stage is still being built. The main lesson so far: getting the environment to run offline is half the competition. Bundling dependencies early made every later experiment reproducible.

References ​

  1. Kaggle. AI Mathematical Olympiad: Progress Prize 3. https://www.kaggle.com/competitions/ai-mathematical-olympiad-progress-prize-3 (opens in new tab) ↩︎

  2. Qwen Team (2025). Qwen3 Technical Report. arXiv:2505.09388 (opens in new tab) ↩︎

  3. Dettmers, T., Pagnoni, A., Holtzman, A. & Zettlemoyer, L. (2023). QLoRA: Efficient Finetuning of Quantized LLMs. NeurIPS. arXiv:2305.14314 (opens in new tab) ↩︎

  4. Kwon, W. et al. (2023). Efficient Memory Management for Large Language Model Serving with PagedAttention. SOSP. arXiv:2309.06180 (opens in new tab) ↩︎

  5. Gou, Z. et al. (2024). ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solving. ICLR. arXiv:2309.17452 (opens in new tab) ↩︎

  6. Wang, X. et al. (2023). Self-Consistency Improves Chain of Thought Reasoning in Language Models. ICLR. arXiv:2203.11171 (opens in new tab) ↩︎