Skip to content

Commit f097c20

Browse files
authored
version update post release v1.2.2 (#1005)
1 parent fa5ccea commit f097c20

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

notebook/autogen_chatgpt.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"\n",
2424
"FLAML requires `Python>=3.7`. To run this notebook example, please install flaml with the [openai,blendsearch] option:\n",
2525
"```bash\n",
26-
"pip install flaml[openai,blendsearch]==1.2.1\n",
26+
"pip install flaml[openai,blendsearch]==1.2.2\n",
2727
"```"
2828
]
2929
},
@@ -40,7 +40,7 @@
4040
},
4141
"outputs": [],
4242
"source": [
43-
"# %pip install flaml[openai,blendsearch]==1.2.1 datasets"
43+
"# %pip install flaml[openai,blendsearch]==1.2.2 datasets"
4444
]
4545
},
4646
{

notebook/autogen_openai.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"\n",
2424
"FLAML requires `Python>=3.7`. To run this notebook example, please install flaml with the [autogen,blendsearch] option:\n",
2525
"```bash\n",
26-
"pip install flaml[autogen,blendsearch]==1.2.1\n",
26+
"pip install flaml[autogen,blendsearch]==1.2.2\n",
2727
"```"
2828
]
2929
},
@@ -40,7 +40,7 @@
4040
},
4141
"outputs": [],
4242
"source": [
43-
"# %pip install flaml[autogen,blendsearch]==1.2.1 datasets"
43+
"# %pip install flaml[autogen,blendsearch]==1.2.2 datasets"
4444
]
4545
},
4646
{

notebook/research/autogen_code.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"\n",
2222
"FLAML requires `Python>=3.7`. To run this notebook example, please install flaml with the [autogen] option:\n",
2323
"```bash\n",
24-
"pip install flaml[autogen]==1.2.1\n",
24+
"pip install flaml[autogen]==1.2.2\n",
2525
"```"
2626
]
2727
},
@@ -38,7 +38,7 @@
3838
},
3939
"outputs": [],
4040
"source": [
41-
"# %pip install flaml[autogen]==1.2.1 datasets"
41+
"# %pip install flaml[autogen]==1.2.2 datasets"
4242
]
4343
},
4444
{

notebook/research/math_level5counting.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"\n",
2222
"FLAML requires `Python>=3.7`. To run this notebook example, please install flaml with the [openai] option:\n",
2323
"```bash\n",
24-
"pip install flaml[openai]==1.2.1\n",
24+
"pip install flaml[openai]==1.2.2\n",
2525
"```"
2626
]
2727
},
@@ -38,7 +38,7 @@
3838
},
3939
"outputs": [],
4040
"source": [
41-
"# %pip install flaml[openai]==1.2.1 datasets"
41+
"# %pip install flaml[openai]==1.2.2 datasets"
4242
]
4343
},
4444
{

website/docs/Examples/AutoGen-OpenAI.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ In this example, we will tune several hyperparameters for the OpenAI's completio
55

66
### Prerequisites
77

8-
Install the [autogen,blendsearch] option. The OpenAI integration is in preview.
8+
Install the [autogen,blendsearch] option.
99
```bash
10-
pip install "flaml[autogen,blendsearch]==1.2.1 datasets"
10+
pip install "flaml[autogen,blendsearch]==1.2.2 datasets"
1111
```
1212

1313
Setup your OpenAI key:
@@ -64,7 +64,9 @@ Before starting tuning, you need to define the metric for the optimization. For
6464
from functools import partial
6565
from flaml.autogen.code_utils import eval_function_completions, generate_assertions
6666

67-
eval_with_generated_assertions = partial(eval_function_completions, assertions=generate_assertions)
67+
eval_with_generated_assertions = partial(
68+
eval_function_completions, assertions=generate_assertions,
69+
)
6870
```
6971

7072
This function will first generate assertion statements for each problem. Then, it uses the assertions to select the generated responses.

website/docs/Use-Cases/Auto-Generation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Auto Generation
22

3-
`flaml.autogen` is a subpackage for automating generation tasks. It uses [`flaml.tune`](../reference/tune/tune) to find good hyperparameter configurations under budget constraints.
3+
`flaml.autogen` is a package for automating generation tasks (in preview). It uses [`flaml.tune`](../reference/tune/tune) to find good hyperparameter configurations under budget constraints.
44
Such optimization has several benefits:
55
* Maximize the utility out of using expensive foundation models.
66
* Reduce the inference cost by using cheaper models or configurations which achieve equal or better performance.

0 commit comments

Comments
 (0)