{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "dd89c719-b414-4767-a31e-ebd62d4b7ad8", "metadata": {}, "outputs": [], "source": [ "import json\n", "from typing import Optional\n", "import os\n", "import torch\n", "from accelerate import Accelerator\n", "from transformers import pipeline\n", "import re\n", "\n", "from tqdm.notebook import tqdm\n", "import warnings\n", "\n", "warnings.filterwarnings('ignore')" ] }, { "cell_type": "code", "execution_count": 2, "id": "bf5e38c0-006c-4d3b-8632-175b5dfea9e3", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "File has been loaded from disk\n" ] } ], "source": [ "with open(\"research-ideas.json\", 'r', encoding='utf-8') as f:\n", " INPUT_GOALS = json.load(f)\n", " print('File has been loaded from disk')" ] }, { "cell_type": "code", "execution_count": 3, "id": "f2d14c6d-93ea-458f-b47b-36655824c4e1", "metadata": {}, "outputs": [], "source": [ "DEFAULT_MODEL = \"meta-llama/Llama-3.3-70B-Instruct\"\n", "N_OUTLINES = 5\n", "N_QUERIES = 3" ] }, { "cell_type": "code", "execution_count": 4, "id": "f0a7b3be-e660-4b3e-901c-e0c885596642", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "c80feba1dc3a47f1b11a437a12f993e9", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Loading checkpoint shards: 0%| | 0/30 [00:00