cli add about gguf param
This commit is contained in:
@@ -5,6 +5,13 @@ All notable changes to aha will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
### 2026-03-17
|
||||
- fix qwen3.5 position_ids create bug
|
||||
- cli param add
|
||||
- gguf_path: Local GGUF model weight path (required for loading models with GGUF)
|
||||
- mmproj_path: Local path to mmproj GGUF weights (required for multimodal model GGUF loading)
|
||||
- WhichModel add qwen3.5-gguf
|
||||
|
||||
### 2026-03-16
|
||||
- Added Qwen3.5 mmproj
|
||||
|
||||
|
||||
@@ -5,6 +5,13 @@
|
||||
格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.0.0/),
|
||||
本项目遵循 [语义化版本](https://semver.org/lang/zh-CN/spec/v2.0.0.html)。
|
||||
|
||||
### 2026-03-17
|
||||
- 修复 qwen3.5 position_ids 创建错误
|
||||
- cli 参数增加
|
||||
- gguf_path: 本地 GGUF 模型权重路径(加载 GGUF 模型时需要)
|
||||
- mmproj_path: 本地 mmproj GGUF 权重路径(加载多模态 GGUF 时需要)
|
||||
- WhichModel 增加 qwen3.5-gguf
|
||||
|
||||
### 2026-03-16
|
||||
- 增加 Qwen3.5 mmproj
|
||||
|
||||
|
||||
+22
-4
@@ -18,6 +18,8 @@ aha [COMMAND] [OPTIONS]
|
||||
| `--weight-path <WEIGHT_PATH>` | Local model weight path | - |
|
||||
| `--save-dir <SAVE_DIR>` | Model download save directory | ~/.aha/ |
|
||||
| `--download-retries <DOWNLOAD_RETRIES>` | Download retry count | 3 |
|
||||
| `--gguf-path <GGUF_PATH>` | Local GGUF weight | - |
|
||||
| `--mmproj-path <MMPROJ_PATH>` | Local mmproj GGUF weight | - |
|
||||
| `-h, --help` | Display help information | - |
|
||||
| `-V, --version` | Display version number | - |
|
||||
|
||||
@@ -42,6 +44,8 @@ aha cli [OPTIONS] --model <MODEL>
|
||||
| `--weight-path <WEIGHT_PATH>` | Local model weight path (skip download if specified) | - |
|
||||
| `--save-dir <SAVE_DIR>` | Model download save directory | ~/.aha/ |
|
||||
| `--download-retries <DOWNLOAD_RETRIES>` | Download retry count | 3 |
|
||||
| `--gguf-path <GGUF_PATH>` | Local GGUF weight | - |
|
||||
| `--mmproj-path <MMPROJ_PATH>` | Local mmproj GGUF weight | - |
|
||||
|
||||
**Examples:**
|
||||
|
||||
@@ -57,6 +61,9 @@ aha cli -m qwen3vl-2b --weight-path /path/to/model
|
||||
|
||||
# Backward compatible way (equivalent to cli subcommand)
|
||||
aha -m qwen3vl-2b
|
||||
|
||||
# use gguf-path and mmproj-path
|
||||
aha cli -m qwen3.5-gguf --gguf-path /path/to/xxx.gguf --mmproj-path /path/to/mmproj-xxx.gguf
|
||||
```
|
||||
|
||||
### run - Direct model inference
|
||||
@@ -65,7 +72,7 @@ Run model inference directly without starting an HTTP service. Suitable for one-
|
||||
|
||||
**Syntax:**
|
||||
```bash
|
||||
aha run [OPTIONS] --model <MODEL> --input <INPUT> [--input <INPUT2>] --weight-path <WEIGHT_PATH>
|
||||
aha run [OPTIONS] --model <MODEL> --input <INPUT> [--input <INPUT2>] [--weight-path <WEIGHT_PATH>] [--gguf-path <GGUF_PATH>] [--mmproj-path <MMPROJ_PATH>]
|
||||
```
|
||||
|
||||
**Options:**
|
||||
@@ -75,8 +82,9 @@ aha run [OPTIONS] --model <MODEL> --input <INPUT> [--input <INPUT2>] --weight-pa
|
||||
| `-m, --model <MODEL>` | Model type (required) | - |
|
||||
| `-i, --input <INPUT>` | Input text or file path (model-specific interpretation, supports 1-2 parameters: input1: prompt text, input2: file path) | - |
|
||||
| `-o, --output <OUTPUT>` | Output file path (optional, auto-generated if not specified) | - |
|
||||
| `--weight-path <WEIGHT_PATH>` | Local model weight path (required) | - |
|
||||
|
||||
| `--weight-path <WEIGHT_PATH>` | Local model weight path (required when using non-GGUF models) | - |
|
||||
| `--gguf-path <GGUF_PATH>` | Local GGUF model weight path(required when using GGUF models) | - |
|
||||
| `--mmproj-path <MMPROJ_PATH>` | Local mmproj GGUF weight path(optional,If not specified, the module will not be loaded) | - |
|
||||
**Examples:**
|
||||
|
||||
```bash
|
||||
@@ -109,6 +117,14 @@ aha run -m qwen2.5vl-3b -i "请分析图片并提取所有可见文本内容,
|
||||
|
||||
# Qwen3-ASR speech recognition (single input: audio file)
|
||||
aha run -m qwen3asr-0.6b -i "audio.wav" --weight-path /path/to/model
|
||||
|
||||
# Qwen3.5-GGUF without mmproj (single input: prompt text)
|
||||
aha run -m qwen3.5-gguf -i 你如何看待AI --gguf-path /path/to/xxx.gguf
|
||||
|
||||
# Qwen3.5-GGUF with mmproj (two inputs:prompt text + file)
|
||||
aha run -m qwen3.5-gguf -i 提取图片中的文本 -i https://ai.bdstatic.com/file/C56CC9B274CF460CA33
|
||||
63E59ECD94423 --gguf-path /path/to/xxx.gguf --mmproj-path /path/to/mmproj-xxx.gguf
|
||||
|
||||
```
|
||||
|
||||
### serv - Start service
|
||||
@@ -117,7 +133,7 @@ Start HTTP service with a model. The `--weight-path` is optional - if not specif
|
||||
|
||||
**Syntax:**
|
||||
```bash
|
||||
aha serv [OPTIONS] --model <MODEL> [--weight-path <WEIGHT_PATH>]
|
||||
aha serv [OPTIONS] --model <MODEL> [--weight-path <WEIGHT_PATH>] [--gguf-path <GGUF_PATH>] [--mmproj-path <MMPROJ_PATH>]
|
||||
```
|
||||
|
||||
**Options:**
|
||||
@@ -129,6 +145,8 @@ aha serv [OPTIONS] --model <MODEL> [--weight-path <WEIGHT_PATH>]
|
||||
| `-m, --model <MODEL>` | Model type (required) | - |
|
||||
| `--weight-path <WEIGHT_PATH>` | Local model weight path (optional) | ~/.aha/{model_id} |
|
||||
| `--allow-remote-shutdown` | Allow remote shutdown requests (not recommended) | false |
|
||||
| `--gguf-path <GGUF_PATH>` | Local GGUF model weight path(required when using GGUF models) | - |
|
||||
| `--mmproj-path <MMPROJ_PATH>` | Local mmproj GGUF weight path(optional,If not specified, the module will not be loaded) | - |
|
||||
|
||||
**Examples:**
|
||||
|
||||
|
||||
+21
-3
@@ -18,6 +18,8 @@ aha [COMMAND] [OPTIONS]
|
||||
| `--weight-path <WEIGHT_PATH>` | 本地模型权重路径 | - |
|
||||
| `--save-dir <SAVE_DIR>` | 模型下载保存目录 | ~/.aha/ |
|
||||
| `--download-retries <DOWNLOAD_RETRIES>` | 下载重试次数 | 3 |
|
||||
| `--gguf-path <GGUF_PATH>` | 本地 GGUF 模型权重 | - |
|
||||
| `--mmproj-path <MMPROJ_PATH>` | 本地 mmproj GGUF 模型权重 | - |
|
||||
| `-h, --help` | 显示帮助信息 | - |
|
||||
| `-V, --version` | 显示版本号 | - |
|
||||
|
||||
@@ -42,6 +44,8 @@ aha cli [OPTIONS] --model <MODEL>
|
||||
| `--weight-path <WEIGHT_PATH>` | 本地模型权重路径(如指定则跳过下载) | - |
|
||||
| `--save-dir <SAVE_DIR>` | 模型下载保存目录 | ~/.aha/ |
|
||||
| `--download-retries <DOWNLOAD_RETRIES>` | 下载重试次数 | 3 |
|
||||
| `--gguf-path <GGUF_PATH>` | 本地 GGUF 模型权重 | - |
|
||||
| `--mmproj-path <MMPROJ_PATH>` | 本地 mmproj GGUF 模型权重 | - |
|
||||
|
||||
**示例:**
|
||||
|
||||
@@ -57,6 +61,9 @@ aha cli -m qwen3vl-2b --weight-path /path/to/model
|
||||
|
||||
# 向后兼容方式(等同于 cli 子命令)
|
||||
aha -m qwen3vl-2b
|
||||
|
||||
# 指定gguf-path和mmproj-path
|
||||
aha cli -m qwen3.5-gguf --gguf-path /path/to/xxx.gguf --mmproj-path /path/to/mmproj-xxx.gguf
|
||||
```
|
||||
|
||||
### run - 直接模型推理
|
||||
@@ -65,7 +72,7 @@ aha -m qwen3vl-2b
|
||||
|
||||
**语法:**
|
||||
```bash
|
||||
aha run [OPTIONS] --model <MODEL> --input <INPUT> [--input <INPUT2>] --weight-path <WEIGHT_PATH>
|
||||
aha run [OPTIONS] --model <MODEL> --input <INPUT> [--input <INPUT2>] [--weight-path <WEIGHT_PATH>] [--gguf-path <GGUF_PATH>] [--mmproj-path <MMPROJ_PATH>]
|
||||
```
|
||||
|
||||
**选项:**
|
||||
@@ -75,7 +82,9 @@ aha run [OPTIONS] --model <MODEL> --input <INPUT> [--input <INPUT2>] --weight-pa
|
||||
| `-m, --model <MODEL>` | 模型类型(必选) | - |
|
||||
| `-i, --input <INPUT>` | 输入文本或文件路径(模型特定解释,支持1-2个参数, input1: 提示文本, input2: 文件地址) | - |
|
||||
| `-o, --output <OUTPUT>` | 输出文件路径(可选,未指定则自动生成) | - |
|
||||
| `--weight-path <WEIGHT_PATH>` | 本地模型权重路径(必选) | - |
|
||||
| `--weight-path <WEIGHT_PATH>` | 本地模型权重路径(使用非GGUF模型时必选) | - |
|
||||
| `--gguf-path <GGUF_PATH>` | 本地GGUF模型权重路径(使用GGUF模型时必选) | - |
|
||||
| `--mmproj-path <MMPROJ_PATH>` | 本地mmproj GGUF模型权重路径(可选,未指定则不加载该模块) | - |
|
||||
|
||||
**示例:**
|
||||
|
||||
@@ -109,6 +118,13 @@ aha run -m qwen2.5vl-3b -i "请分析图片并提取所有可见文本内容,
|
||||
|
||||
# Qwen3-ASR 语音识别(单个输入:音频文件)
|
||||
aha run -m qwen3asr-0.6b -i "audio.wav" --weight-path /path/to/model
|
||||
|
||||
# Qwen3.5-GGUF 无mmproj (单个输入:提示文本)
|
||||
aha run -m qwen3.5-gguf -i 你如何看待AI --gguf-path /path/to/xxx.gguf
|
||||
|
||||
# Qwen3.5-GGUF 有mmproj (两个输入:提示文本 + 文件)
|
||||
aha run -m qwen3.5-gguf -i 提取图片中的文本 -i https://ai.bdstatic.com/file/C56CC9B274CF460CA33
|
||||
63E59ECD94423 --gguf-path /path/to/xxx.gguf --mmproj-path /path/to/mmproj-xxx.gguf
|
||||
```
|
||||
|
||||
### serv - 启动服务
|
||||
@@ -117,7 +133,7 @@ aha run -m qwen3asr-0.6b -i "audio.wav" --weight-path /path/to/model
|
||||
|
||||
**语法:**
|
||||
```bash
|
||||
aha serv [OPTIONS] --model <MODEL> [--weight-path <WEIGHT_PATH>]
|
||||
aha serv [OPTIONS] --model <MODEL> [--weight-path <WEIGHT_PATH>] [--gguf-path <GGUF_PATH>] [--mmproj-path <MMPROJ_PATH>]
|
||||
```
|
||||
|
||||
**选项:**
|
||||
@@ -129,6 +145,8 @@ aha serv [OPTIONS] --model <MODEL> [--weight-path <WEIGHT_PATH>]
|
||||
| `-m, --model <MODEL>` | 模型类型(必选) | - |
|
||||
| `--weight-path <WEIGHT_PATH>` | 本地模型权重路径(可选) | ~/.aha/{model_id} |
|
||||
| `--allow-remote-shutdown` | 允许远程关机请求(不推荐) | false |
|
||||
| `--gguf-path <GGUF_PATH>` | 本地GGUF模型权重路径(使用GGUF模型时必选) | - |
|
||||
| `--mmproj-path <MMPROJ_PATH>` | 本地mmproj GGUF模型权重路径(可选,未指定则不加载该模块) | - |
|
||||
|
||||
**示例:**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user