Skip to content

Commit

Permalink
Fix import in notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragjn committed Nov 27, 2024
1 parent 01466a5 commit b599239
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions finetune.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"# This should point to your Truefoundry platform endpoint\n",
"TRUEFOUNDRY_HOST = os.getenv(\"TFY_HOST\", \"https://<your-org>.truefoundry.cloud\")\n",
"\n",
"from truefoundry import ml as mlfoundry\n",
"mlfoundry.login(TRUEFOUNDRY_HOST)"
"import truefoundry\n",
"truefoundry.login(TRUEFOUNDRY_HOST)"
]
},
{
Expand Down Expand Up @@ -265,7 +265,7 @@
"micro_batch_size = launch_parameters.batch_size\n",
"\n",
"# Learning rate\n",
"learning_rate = 0.00003\n",
"learning_rate = 0.00009\n",
"\n",
"# How many epochs to run training for\n",
"num_epochs = 10\n",
Expand Down Expand Up @@ -423,6 +423,13 @@
"source": [
"!{COMMAND}"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
2 changes: 1 addition & 1 deletion sample_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ config-base.yaml \
--num_epochs 5 \
--gradient_accumulation_steps 4 \
--gradient_checkpointing unsloth \
--learning_rate 0.00001 \
--learning_rate 0.00009 \
--output_dir ./outputs \
--train_on_inputs False \
--logging_steps 1 \
Expand Down

0 comments on commit b599239

Please sign in to comment.