Skip to content

Commit

Permalink
Adding more documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
GMW99 committed May 17, 2024
1 parent 5e46732 commit bbfabea
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions examples/mvp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@
" self.ds_test = ds_test\n",
"\n",
" def on_step_end(self, step, loss, compressor, *args, **kargs):\n",
" # Record Loss at every epoch\n",
" # Record Loss at every step\n",
" wandb.log({\"train/loss\": loss}, step=step)\n",
" if not ((step > 0) and (step % self.log_freq == 0)):\n",
" return\n",
Expand Down Expand Up @@ -925,24 +925,32 @@
"id": "6f146264-a34f-4afb-b346-18bd29ef5b29",
"metadata": {},
"source": [
"## Setup WandB"
"## Setup WandB\n",
"To login get the api key here: https://wandb.ai/authorize"
]
},
{
"cell_type": "code",
"id": "c8e6f9cc-554c-45a7-bd77-903623e5a402",
"metadata": {},
"source": "wandb.login()",
"outputs": [],
"execution_count": null
},
{
"metadata": {},
"cell_type": "code",
"outputs": [],
"execution_count": null,
"source": [
"wandb.login()\n",
"wandb.init(\n",
" # set the wandb project where this run will be logged\n",
" project=project_name,\n",
" # track hyperparameters and run metadata\n",
" config=config,\n",
")"
],
"outputs": [],
"execution_count": null
"id": "444c802afa609c9d"
},
{
"cell_type": "markdown",
Expand Down

0 comments on commit bbfabea

Please sign in to comment.