|
1339 | 1339 | "outputs": [],
|
1340 | 1340 | "source": [
|
1341 | 1341 | "# Set your training and test file paths\n",
|
1342 |
| - "train_file = \"data/medical_01_verifiable_problem_train_with_prompt.jsonl\"\n", |
1343 |
| - "test_file = \"data/medical_01_verifiable_problem_val_with_prompt.jsonl\"\n", |
| 1342 | + "train_file = \"data/medical_01_verifiable_problem_train_simple_prompt.jsonl\"\n", |
| 1343 | + "test_file = \"data/medical_01_verifiable_problem_val_simple_prompt.jsonl\"\n", |
1344 | 1344 | "\n",
|
1345 | 1345 | "def upload_file(file_path: str) -> str:\n",
|
1346 | 1346 | " \"\"\"Upload a file to the OpenAI platform for fine-tuning.\"\"\"\n",
|
|
1389 | 1389 | "grader = model_grader_2\n",
|
1390 | 1390 | "response_format = None\n",
|
1391 | 1391 | "compute_multiplier = 1.0\n",
|
1392 |
| - "etest_samples = 1\n", |
| 1392 | + "eval_samples = 1\n", |
1393 | 1393 | "eval_interval = 5"
|
1394 | 1394 | ]
|
1395 | 1395 | },
|
|
1409 | 1409 | "# Launch the RFT job\n",
|
1410 | 1410 | "payload = dict(\n",
|
1411 | 1411 | " training_file=train_file_id,\n",
|
1412 |
| - " test_file=test_file_id,\n", |
| 1412 | + " validation_file=test_file_id,\n", |
1413 | 1413 | " model=model,\n",
|
1414 | 1414 | " suffix=suffix,\n",
|
1415 | 1415 | " method=dict(\n",
|
|
1419 | 1419 | " response_format=response_format,\n",
|
1420 | 1420 | " hyperparameters=dict(\n",
|
1421 | 1421 | " compute_multiplier=compute_multiplier,\n",
|
1422 |
| - " etest_samples=etest_samples,\n", |
| 1422 | + " eval_samples=eval_samples,\n", |
1423 | 1423 | " eval_interval=eval_interval,\n",
|
1424 | 1424 | " n_epochs=n_epochs,\n",
|
1425 | 1425 | " reasoning_effort=reasoning_effort,\n",
|
|
2116 | 2116 | "name": "python",
|
2117 | 2117 | "nbconvert_exporter": "python",
|
2118 | 2118 | "pygments_lexer": "ipython3",
|
2119 |
| - "version": "3.11.8" |
| 2119 | + "version": "3.12.9" |
2120 | 2120 | }
|
2121 | 2121 | },
|
2122 | 2122 | "nbformat": 4,
|
|
0 commit comments