Skip to content

Commit bb017a8

Browse files
committed
fix quant (#1573)
1 parent 989a361 commit bb017a8

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

docs/source/LLM/命令行参数.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,15 +392,15 @@ app-ui参数继承了infer参数, 除此之外增加了以下参数:
392392

393393
deploy参数继承了infer参数, 除此之外增加了以下参数:
394394

395-
- `--host`: 默认为`'127.0.0.1`.
395+
- `--host`: 默认为`'127.0.0.1`. 要使其在非本机上可访问, 可设置为'0.0.0.0'.
396396
- `--port`: 默认为`8000`.
397397
- `--api_key`: 默认为`None`, 即不对请求进行api_key验证.
398398
- `--ssl_keyfile`: 默认为`None`.
399399
- `--ssl_certfile`: 默认为`None`.
400400

401401
## web-ui 参数
402402

403-
- `--host`: 默认为`'127.0.0.1'`.
403+
- `--host`: 默认为`'127.0.0.1'`. 要使其在非本机上可访问, 可设置为'0.0.0.0'.
404404
- `--port`: 默认为`None`.
405405
- `--lang`: 默认为`'zh'`.
406406
- `--share`: 默认为`False`.

docs/source_en/LLM/Command-line-parameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,15 +393,15 @@ app-ui parameters inherit from infer parameters, with the following added parame
393393

394394
deploy parameters inherit from infer parameters, with the following added parameters:
395395

396-
- `--host`: Default is `'127.0.0.1`.
396+
- `--host`: Default is `'127.0.0.1`. To make it accessible on the local network, you can set it to '0.0.0.0'.
397397
- `--port`: Default is `8000`.
398398
- `--api_key`: The default is `None`, meaning that the request will not be subjected to api_key verification.
399399
- `--ssl_keyfile`: Default is `None`.
400400
- `--ssl_certfile`: Default is `None`.
401401

402402
## web-ui Parameters
403403

404-
- `--host`: Default `'127.0.0.1'`.
404+
- `--host`: Default `'127.0.0.1'`. To make it accessible on the local network, you can set it to '0.0.0.0'.
405405
- `--port`: Default `None`.
406406
- `--lang`: Default `'zh'`.
407407
- `--share`: Default `False`.

swift/llm/export.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def _module_forward(self, x: torch.Tensor, module: torch.nn.Module, module_kwarg
119119

120120
return module_output
121121

122+
import awq
122123
from awq.quantize import quantizer
123124
from transformers import AwqConfig
124125
if version.parse(awq.__version__) >= version.parse('0.2.6'):

0 commit comments

Comments
 (0)