Skip to content

Commit

Permalink
fix fschat DEP version error (#10325)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zephyr596 authored Mar 6, 2024
1 parent 9ea499c commit 267de7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions docker/llm/serving/cpu/docker/model_adapter.py.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--- model_adapter.py.old 2024-01-24 01:56:23.903144335 +0000
+++ model_adapter.py 2024-01-24 01:59:22.605062765 +0000
@@ -1346,15 +1346,17 @@
--- model_adapter.py.old 2024-03-05 15:08:47.169275336 +0800
+++ model_adapter.py 2024-03-05 15:10:13.434703674 +0800
@@ -1690,15 +1690,17 @@
)
# NOTE: if you use the old version of model file, please remove the comments below
# config.use_flash_attn = False
- config.fp16 = True
+ # config.fp16 = True
- self.float_set(config, "fp16")
+ # self.float_set(config, "fp16")
generation_config = GenerationConfig.from_pretrained(
model_path, trust_remote_code=True
)
Expand Down
2 changes: 1 addition & 1 deletion python/llm/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
'transformers == 4.31.0', 'sentencepiece', 'tokenizers == 0.13.3',
# TODO: Support accelerate 0.22.0
'accelerate == 0.21.0', 'tabulate']
SERVING_DEP = ['fschat[model_worker, webui] == 0.2.28', 'protobuf']
SERVING_DEP = ['fschat[model_worker, webui] == 0.2.36', 'protobuf']
windows_binarys = [
"llama.dll",
"gptneox.dll",
Expand Down

0 comments on commit 267de7a

Please sign in to comment.