mirror of
https://github.com/meta-llama/llama-stack.git
synced 2026-01-02 09:00:13 +00:00
fix notebook
This commit is contained in:
parent
ca5a6a525d
commit
06f01f95c1
2 changed files with 16 additions and 24 deletions
|
|
@ -3535,14 +3535,12 @@
|
|||
"\n",
|
||||
"# register the eval dataset\n",
|
||||
"response = client.datasets.register(\n",
|
||||
" dataset_id=\"eval_dataset\",\n",
|
||||
" provider_id=\"localfs\",\n",
|
||||
" url={\"uri\": data_url},\n",
|
||||
" dataset_schema={\n",
|
||||
" \"input_query\": {\"type\": \"string\"},\n",
|
||||
" \"chat_completion_input\": {\"type\": \"chat_completion_input\"},\n",
|
||||
" \"expected_answer\": {\"type\": \"string\"},\n",
|
||||
" purpose=\"eval/messages-answer\",\n",
|
||||
" source={\n",
|
||||
" \"type\": \"uri\",\n",
|
||||
" \"uri\": data_url,\n",
|
||||
" },\n",
|
||||
" dataset_id=\"eval_dataset\",\n",
|
||||
")"
|
||||
]
|
||||
},
|
||||
|
|
@ -4397,15 +4395,15 @@
|
|||
"# register post training dataset\n",
|
||||
"# use the below commented out version for dialog dataset\n",
|
||||
"response = client.datasets.register(\n",
|
||||
" dataset_id=\"post_training_dataset\",\n",
|
||||
" provider_id=\"localfs\",\n",
|
||||
" url={\"uri\": data_url},\n",
|
||||
" dataset_schema={\n",
|
||||
" \"chat_completion_input\": {\"type\": \"chat_completion_input\"},\n",
|
||||
" \"expected_answer\": {\"type\": \"string\"},\n",
|
||||
" purpose=\"post-training/messages\",\n",
|
||||
" source={\n",
|
||||
" \"type\": \"uri\",\n",
|
||||
" \"uri\": data_url,\n",
|
||||
" },\n",
|
||||
" dataset_id=\"post_training_dataset\",\n",
|
||||
")\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"# response = client.datasets.register(\n",
|
||||
"# dataset_id=\"post_training_dataset\",\n",
|
||||
"# provider_id=\"localfs\",\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue