|
@@ -146,7 +146,7 @@
|
|
"source": [
|
|
"source": [
|
|
"import pickle\n",
|
|
"import pickle\n",
|
|
"\n",
|
|
"\n",
|
|
- "with open('data.pkl', 'rb') as file:\n",
|
|
|
|
|
|
+ "with open('./resources/data.pkl', 'rb') as file:\n",
|
|
" INPUT_PROMPT = pickle.load(file)"
|
|
" INPUT_PROMPT = pickle.load(file)"
|
|
]
|
|
]
|
|
},
|
|
},
|
|
@@ -191,7 +191,7 @@
|
|
" \"text-generation\",\n",
|
|
" \"text-generation\",\n",
|
|
" model=MODEL,\n",
|
|
" model=MODEL,\n",
|
|
" model_kwargs={\"torch_dtype\": torch.bfloat16},\n",
|
|
" model_kwargs={\"torch_dtype\": torch.bfloat16},\n",
|
|
- " device_map=\"cuda:7\",\n",
|
|
|
|
|
|
+ " device_map=\"auto\",\n",
|
|
")\n",
|
|
")\n",
|
|
"\n",
|
|
"\n",
|
|
"messages = [\n",
|
|
"messages = [\n",
|
|
@@ -249,7 +249,7 @@
|
|
"metadata": {},
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"outputs": [],
|
|
"source": [
|
|
"source": [
|
|
- "with open('podcast_ready_data.pkl', 'wb') as file:\n",
|
|
|
|
|
|
+ "with open('./resources/podcast_ready_data.pkl', 'wb') as file:\n",
|
|
" pickle.dump(save_string_pkl, file)"
|
|
" pickle.dump(save_string_pkl, file)"
|
|
]
|
|
]
|
|
},
|
|
},
|