{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# SinhalaMMLU — team-riswan, submission #138\n", "This notebook runs the reconstructed Ollama pipeline from this repository. Read README.md and REPRODUCIBILITY.md first. Fresh model reproduction is unverified; Pass 3 retains historical sampling. The exact submitted predictions stay untouched.\n", "Provision the original Ollama model/runtime before running the last cell. The model setup currently differs from the organisers' Hugging-Face-only template; approval is outstanding.\n" ], "id": "team-riswan-0" }, { "cell_type": "code", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "%pip install huggingface_hub==2.3.0\n", "from huggingface_hub import snapshot_download\n", "from pathlib import Path\n", "import subprocess, sys\n", "repo = Path(snapshot_download('SinhalaMMLU-SharedTask/team-riswan', allow_patterns=['*.py', '*.md', '*.txt', 'training/src/*', 'training/ensemble_v9.py']))\n" ], "id": "team-riswan-1" }, { "cell_type": "code", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "# Full model run: expensive. No archived predictions are used.\n", "run_dir = Path.cwd() / 'rerun'\n", "run_dir.mkdir(exist_ok=True)\n", "subprocess.run([sys.executable, str(repo / 'inference.py')], cwd=run_dir, check=True)\n" ], "id": "team-riswan-2" } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "name": "python", "version": "3" } }, "nbformat": 4, "nbformat_minor": 5 }