Update README.md

This commit is contained in:
Yang An
2023-08-03 16:55:38 +08:00
committed by GitHub
parent 3fd3bf7c31
commit 06379e0787

View File

@@ -95,7 +95,7 @@ print(tokenizer.decode(pred.cpu()[0], skip_special_tokens=True))
Running Qwen-7B-Chat is also simple. We provide you with an example of IPython to show how to interactive with the model. Running Qwen-7B-Chat is also simple. We provide you with an example of IPython to show how to interactive with the model.
```ipython ```python
>>> from transformers import AutoModelForCausalLM, AutoTokenizer >>> from transformers import AutoModelForCausalLM, AutoTokenizer
>>> from transformers.generation import GenerationConfig >>> from transformers.generation import GenerationConfig