Skip to content

Commit

Permalink
[Release] Update version for beta3 (#9553)
Browse files Browse the repository at this point in the history
* Update README.md
  • Loading branch information
ZHUI authored Dec 16, 2024
1 parent da41c4f commit 5a94e04
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
### pip 安装

```shell
pip install --upgrade paddlenlp==3.0.0b2
pip install --upgrade paddlenlp==3.0.0b3
```

或者可通过以下命令安装最新 develop 分支代码:
Expand Down
2 changes: 1 addition & 1 deletion llm/docs/finetune.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
### 3.1 环境准备

- PaddlePaddle 3.0-beta
- PaddleNLP 3.0.0b2
- PaddleNLP 3.0.0b3
- PaddleSlim develop

git clone 代码到本地,即可开始。
Expand Down
11 changes: 11 additions & 0 deletions llm/run_finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,18 @@
flash_mask_support_list = [LlamaForCausalLM, LlamaForCausalLMPipe, Qwen2ForCausalLM, Qwen2ForCausalLMPipe]


def paddlenlp_verison_check():
import paddlenlp
from paddlenlp.utils.tools import compare_version

if not compare_version(paddlenlp.__version__, "3.0.0.b2"):
raise ValueError(
"This scripts require paddlenlp >= 3.0.0b3, please reinstall: pip install paddlenlp >= 3.0.0b3 "
)


def main():
paddlenlp_verison_check()
parser = PdArgumentParser((GenerateArgument, ModelConfig, ReftArgument, DataConfig, SFTConfig))
if len(sys.argv) >= 2 and sys.argv[1].endswith(".json"):
gen_args, model_args, reft_args, data_args, training_args = parser.parse_json_file_and_cmd_lines()
Expand Down
2 changes: 1 addition & 1 deletion paddlenlp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# this version is used for develop and test.
# release version will be added fixed version by setup.py.
__version__ = "3.0.0b2.post"
__version__ = "3.0.0b3.post"
if os.getenv(PADDLENLP_STABLE_VERSION):
__version__ = __version__.replace(".post", "")
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def show():


# only use this file to contral the version
__version__ = "3.0.0b2.post"
__version__ = "3.0.0b3.post"
if os.getenv(PADDLENLP_STABLE_VERSION):
__version__ = __version__.replace(".post", "")
else:
Expand Down

0 comments on commit 5a94e04

Please sign in to comment.