You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PROMPT_PREFIX='''HuggingFace contains models, which are each given a user-generated description. The first section of the description, delimited with two "---" lines, consists of a YAML description of the model. This may contain fields like "language" (supported by model), "datasets" (used to train the model), "tags" (e.g. tasks relevant to the model), and "metrics" (used to evaluate the model). Create a hypothetical HuggingFace model description that would satisfy a given user instruction. Here are some examples:
Copy file name to clipboardExpand all lines: prompt2model_demo.ipynb
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@
42
42
"cell_type": "markdown",
43
43
"metadata": {},
44
44
"source": [
45
-
"Set your OpenAIAPI key as an environment variable. A good way to do this is to create a `.env` file with a single line.\n",
45
+
"prompt2model requires that you use a base LLM to help out with various parts of the training process. The default is OpenAI's `gpt-3.5-turbo`, but you can use any model supported by [litellm](https://github.com/BerriAI/litellm). Set the appropriate API key as an environment variable. A good way to do this is to create a `.env` file with a single line, like below if you're using OpenAI.\n",
46
46
"\n",
47
47
"```text\n",
48
48
"OPENAI_API_KEY=<your key here>\n",
@@ -81,6 +81,24 @@
81
81
"os.environ['OPENAI_API_KEY'][:3]"
82
82
]
83
83
},
84
+
{
85
+
"cell_type": "markdown",
86
+
"metadata": {},
87
+
"source": [
88
+
"Finally, we specify the base model that we want to use here."
89
+
]
90
+
},
91
+
{
92
+
"cell_type": "code",
93
+
"execution_count": null,
94
+
"metadata": {},
95
+
"outputs": [],
96
+
"source": [
97
+
"from prompt2model.utils import api_tools\n",
98
+
"# CHANGE THIS if you want to try a different model\n",
0 commit comments