Skip to content

Commit

Permalink
Merge pull request #273 from lakshith-403/LoRA
Browse files Browse the repository at this point in the history
LoRA rename configs to trainer
  • Loading branch information
vpj authored Aug 24, 2024
2 parents 6df1d79 + 309a071 commit 90e21b5
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions labml_nn/lora/experiment.ipynb
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
{
"cells": [
{
"metadata": {},
"cell_type": "code",
"outputs": [],
"execution_count": null,
"source": "!pip install labml-nn",
"id": "c5ed37230628ee76"
},
{
"metadata": {},
"cell_type": "code",
"source": [
"from labml_nn.lora.experiment import Configs\n",
"from labml_nn.lora.experiment import Trainer\n",
"from labml import experiment"
],
"id": "1b9da2e59ffce5d5",
Expand All @@ -24,23 +32,23 @@
{
"metadata": {},
"cell_type": "code",
"source": "conf = Configs()",
"source": "trainer = Trainer()",
"id": "31c9bc08eca2592",
"outputs": [],
"execution_count": null
},
{
"metadata": {},
"cell_type": "code",
"source": "experiment.configs(conf)",
"source": "experiment.configs(trainer)",
"id": "fb6ce74326558948",
"outputs": [],
"execution_count": null
},
{
"metadata": {},
"cell_type": "code",
"source": "conf.initialize()",
"source": "trainer.initialize()",
"id": "1456cfab47dee3b",
"outputs": [],
"execution_count": null
Expand All @@ -50,7 +58,7 @@
"cell_type": "code",
"source": [
"with experiment.start():\n",
" conf.run()"
" trainer.run()"
],
"id": "3fe4068fd2df9094",
"outputs": [],
Expand Down

0 comments on commit 90e21b5

Please sign in to comment.