rename hparams to settings

This commit is contained in:
rasbt
2024-04-05 07:24:46 -05:00
parent 44c0494406
commit 8c36399e7c
6 changed files with 39 additions and 39 deletions

View File

@@ -2106,7 +2106,7 @@
"text": [
"File already exists and is up-to-date: gpt2/124M/checkpoint\n",
"File already exists and is up-to-date: gpt2/124M/encoder.json\n",
"File already exists and is up-to-date: gpt2/124M/hparams.json\n",
"File already exists and is up-to-date: gpt2/124M/settings.json\n",
"File already exists and is up-to-date: gpt2/124M/model.ckpt.data-00000-of-00001\n",
"File already exists and is up-to-date: gpt2/124M/model.ckpt.index\n",
"File already exists and is up-to-date: gpt2/124M/model.ckpt.meta\n",
@@ -2115,7 +2115,7 @@
}
],
"source": [
"hparams, params = download_and_load_gpt2(model_size=\"124M\", models_dir=\"gpt2\")"
"settings, params = download_and_load_gpt2(model_size=\"124M\", models_dir=\"gpt2\")"
]
},
{
@@ -2133,7 +2133,7 @@
}
],
"source": [
"print(\"Settings:\", hparams)"
"print(\"Settings:\", settings)"
]
},
{
@@ -2401,7 +2401,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.10.12"
}
},
"nbformat": 4,