Fix repo_type for test data download
Browse files2 unmodified lines345678910111213141516179 unmodified lines272829303132333435363738394041424344454647484950515253545556575859146 unmodified lines2062072082092 unmodified lines{"cell_type": "markdown","metadata": {},"source": ["# Qwen3.5-2B Bash Reconstructor — Full Eval\n","\n","Runs the saved LoRA adapter (`arach/qwen35-2b-bash-v1`) against the full 621-case test set.\n","\n","**Runtime:** GPU (T4 is fine) \n","**Adapter:** [arach/qwen35-2b-bash-v1](https://huggingface.co/arach/qwen35-2b-bash-v1) \n","**Test data:** [arach/training-lab](https://huggingface.co/datasets/arach/training-lab)"]},{"cell_type": "code",9 unmodified lines"execution_count": null,"metadata": {},"outputs": [],"source": ["import json\n","import re\n","import time\n","from difflib import SequenceMatcher\n","from huggingface_hub import hf_hub_download\n","from unsloth import FastLanguageModel\n","\n","# --- Load test data ---\n","test_path = hf_hub_download(\n"," \"arach/training-lab\",\n"," \"training/data/bash-v3/minimal/test.jsonl\",\n"," repo_type=\"dataset\",\n",")\n","\n","tests = []\n","with open(test_path) as f:\n"," for line in f:\n"," msg = json.loads(line)[\"messages\"]\n"," tests.append({\n"," \"system\": msg[0][\"content\"],\n"," \"dictated\": msg[1][\"content\"],\n"," \"expected\": msg[2][\"content\"],\n"," })\n","\n","print(f\"Loaded {len(tests)} test cases\")"]},{"cell_type": "code",146 unmodified lines},"nbformat": 4,"nbformat_minor": 0}2 unmodified lines34567899 unmodified lines19202122232425146 unmodified lines1721731741752 unmodified lines{"cell_type": "markdown","metadata": {},"source": "# Qwen3.5-2B Bash Reconstructor — Full Eval\n\nRuns the saved LoRA adapter (`arach/qwen35-2b-bash-v1`) against the full 621-case test set.\n\n**Runtime:** GPU (T4 is fine) \n**Adapter:** [arach/qwen35-2b-bash-v1](https://huggingface.co/arach/qwen35-2b-bash-v1) \n**Test data:** [arach/training-lab](https://huggingface.co/arach/training-lab)"},{"cell_type": "code",9 unmodified lines"execution_count": null,"metadata": {},"outputs": [],"source": "import json\nimport re\nimport time\nfrom difflib import SequenceMatcher\nfrom huggingface_hub import hf_hub_download\nfrom unsloth import FastLanguageModel\n\n# --- Load test data ---\ntest_path = hf_hub_download(\n \"arach/training-lab\",\n \"training/data/bash-v3/minimal/test.jsonl\",\n)\n\ntests = []\nwith open(test_path) as f:\n for line in f:\n msg = json.loads(line)[\"messages\"]\n tests.append({\n \"system\": msg[0][\"content\"],\n \"dictated\": msg[1][\"content\"],\n \"expected\": msg[2][\"content\"],\n })\n\nprint(f\"Loaded {len(tests)} test cases\")"},{"cell_type": "code",146 unmodified lines},"nbformat": 4,"nbformat_minor": 0}
notebooks/eval-qwen35-2b-full.ipynb+3-37