Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gemma finetuning bugfixes #86

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions models/Gemma/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ You can download either model from the NVIDIA NGC Catalog, using the NGC CLI. Th
To download the model, execute one of the following commands, based on which model you want to use:

```bash
ngc registry model download-version "nvidia/nemo/gemma_2b_base:1.0"
ngc registry model download-version "nvidia/nemo/gemma_2b_base:1.1"
```

or

```bash
ngc registry model download-version "nvidia/nemo/gemma_7b_base:1.0"
ngc registry model download-version "nvidia/nemo/gemma_7b_base:1.1"
```

## Getting NeMo Framework
Expand Down
7 changes: 4 additions & 3 deletions models/Gemma/lora.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
"To download the model, execute one of the following commands, based on which model you want to use:\n",
"\n",
"```bash\n",
"ngc registry model download-version \"nvidia/nemo/gemma_2b_base:1.0\"\n",
"ngc registry model download-version \"nvidia/nemo/gemma_2b_base:1.1\"\n",
"```\n",
"\n",
"or\n",
"\n",
"```bash\n",
"ngc registry model download-version \"nvidia/nemo/gemma_7b_base:1.0\"\n",
"ngc registry model download-version \"nvidia/nemo/gemma_7b_base:1.1\"\n",
"```"
]
},
Expand Down Expand Up @@ -286,7 +286,8 @@
" },\n",
" \"test_ds\": {\n",
" \"file_names\": [\"pubmedqa_test.jsonl\"],\n",
" \"names\": [\"pubmedqa\"]\n",
" \"names\": [\"pubmedqa\"],\n",
" \"add_bos\": True\n",
" }\n",
"}, merge=True)"
]
Expand Down
5 changes: 3 additions & 2 deletions models/Gemma/sft.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
"To download the model, execute one of the following commands, based on which model you want to use:\n",
"\n",
"```bash\n",
"ngc registry model download-version \"nvidia/nemo/gemma_2b_base:1.0\"\n",
"ngc registry model download-version \"nvidia/nemo/gemma_2b_base:1.1\"\n",
"```\n",
"\n",
"or\n",
"\n",
"```bash\n",
"ngc registry model download-version \"nvidia/nemo/gemma_7b_base:1.0\"\n",
"ngc registry model download-version \"nvidia/nemo/gemma_7b_base:1.1\"\n",
"```"
]
},
Expand Down Expand Up @@ -291,6 +291,7 @@
" model.data.train_ds.micro_batch_size=1 \\\n",
" model.data.train_ds.global_batch_size=128 \\\n",
" model.data.train_ds.file_path=../databricks-dolly-15k-output.jsonl \\\n",
" model.data.train_ds.add_bos=True \\\n",
" model.data.validation_ds.micro_batch_size=1 \\\n",
" model.data.validation_ds.global_batch_size=128 \\\n",
" model.data.validation_ds.drop_last=True \\\n",
Expand Down