Skip to content

Commit a1eef3f

Browse files
authored
Merge pull request #4 from GradientHQ/dev/bing_li
feat(cli): add user args support for run command
2 parents 9d1c9fe + 45ffc9d commit a1eef3f

5 files changed

Lines changed: 422 additions & 388 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
- Enhanced `parallax run` command to support user-defined arguments, allowing flexible configuration (e.g., `-m model_name`, `--port 8080`)
12+
- Updated `parallax run` help documentation to reflect new argument passing capabilities
13+
- Improved consistency between `parallax run` and `parallax join` command interfaces
14+
- Refactored `EscapeForShell` function from duplicate implementations in `ModelRunCommand` and `ModelJoinCommand` to shared `WSLCommand` base class
15+
1016
### Added
1117
- Initial release of Parallax Windows CLI
1218
- Comprehensive environment checking and installation

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,13 @@ parallax config --help
172172
### `parallax run`
173173
Run Parallax inference server directly in WSL
174174
```cmd
175-
parallax run [--help|-h]
175+
parallax run [args...]
176176
```
177177

178178
### `parallax join`
179179
Join distributed inference cluster as a node
180180
```cmd
181-
parallax join <coordinator_url> [options]
181+
parallax join [args...]
182182
```
183183

184184
### `parallax cmd`
@@ -188,8 +188,8 @@ parallax cmd [--venv] <command> [args...]
188188
```
189189

190190
**Command Descriptions**:
191-
- `run`: Start Parallax inference server directly in WSL, default configuration is Qwen/Qwen3-0.6B model, listening on localhost:3001
192-
- `join`: Join distributed inference cluster as a worker node (open a new terminal with administrator privileges and input `parallax join`)
191+
- `run`: Start Parallax inference server directly in WSL. You can pass any arguments supported by `parallax run` command. Examples: `parallax run -m Qwen/Qwen3-0.6B`, `parallax run --port 8080`
192+
- `join`: Join distributed inference cluster as a worker node. You can pass any arguments supported by `parallax join` command. Examples: `parallax join -m Qwen/Qwen3-0.6B`, `parallax join -s scheduler-addr`
193193
- `cmd`: Pass-through commands to WSL environment, supports `--venv` option to run in parallax project's Python virtual environment
194194

195195
**Main Configuration Items**:

0 commit comments

Comments
 (0)