Skip to content

Commit e98464e

Browse files
committed
Update CLI to allow for configurable log dir
1 parent 7853afb commit e98464e

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
GITHUB_TOKEN: ${{ github.token }}
9191
run: >-
9292
gh release create
93-
'v0.2.6'
93+
'v0.2.7'
9494
--repo '${{ github.repository }}'
9595
--notes ""
9696
@@ -102,5 +102,5 @@ jobs:
102102
# sigstore-produced signatures and certificates.
103103
run: >-
104104
gh release upload
105-
'v0.2.6' dist/**
105+
'v0.2.7' dist/**
106106
--repo '${{ github.repository }}'

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,13 @@ weco --source examples/spaceship-titanic/optimize.py \
189189
| Argument | Description | Required |
190190
| :-------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------- |
191191
| `--source` | Path to the source code file that will be optimized (e.g., `optimize.py`). | Yes |
192-
| `--eval-command` | Command to run for evaluating the code in `--source`. This command should print the target `--metric` and its value to the terminal (stdout/stderr). See note below. | Yes |
193-
| `--metric` | The name of the metric you want to optimize (e.g., 'accuracy', 'speedup', 'loss'). This metric name should match what's printed by your `--eval-command`. | Yes |
192+
| `--eval-command` | Command to run for evaluating the code in `--source`. This command should print the target `--metric` and its value to the terminal (stdout/stderr). See note below. | Yes |
193+
| `--metric` | The name of the metric you want to optimize (e.g., 'accuracy', 'speedup', 'loss'). This metric name should match what's printed by your `--eval-command`. | Yes |
194194
| `--maximize` | Whether to maximize (`true`) or minimize (`false`) the metric. | Yes |
195195
| `--steps` | Number of optimization steps (LLM iterations) to run. | Yes |
196-
| `--model` | Model identifier for the LLM to use (e.g., `gpt-4o`, `claude-3.5-sonnet`). Recommended models to try include `o3-mini`, `claude-3-haiku`, and `gemini-2.5-pro-exp-03-25`. | Yes |
197-
| `--additional-instructions` | (Optional) Natural language description of specific instructions OR path to a file containing detailed instructions to guide the LLM. | No |
196+
| `--model` | Model identifier for the LLM to use (e.g., `gpt-4o`, `claude-3.5-sonnet`). Recommended models to try include `o3-mini`, `claude-3-haiku`, and `gemini-2.5-pro-exp-03-25`.| Yes |
197+
| `--additional-instructions` | (Optional) Natural language description of specific instructions OR path to a file containing detailed instructions to guide the LLM. | No |
198+
| `--log-dir` | (Optional) Path to the directory to log intermediate steps and final optimization result. Defaults to `.runs/`. | No |
198199

199200
---
200201

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = [
1010
]
1111
description = "Documentation for `weco`, a CLI for using Weco AI's code optimizer."
1212
readme = "README.md"
13-
version = "0.2.6"
13+
version = "0.2.7"
1414
license = {text = "MIT"}
1515
requires-python = ">=3.12"
1616
dependencies = ["requests", "rich"]

weco/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# DO NOT EDIT
2-
__pkg_version__ = "0.2.6"
2+
__pkg_version__ = "0.2.7"
33
__api_version__ = "v1"
44
__base_url__ = f"https://api.aide.weco.ai/{__api_version__}"

0 commit comments

Comments
 (0)