Update README.md
Browse files
README.md
CHANGED
@@ -52,7 +52,7 @@ This is the model card of a 🤗 transformers model that has been pushed on the
|
|
52 |
|
53 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
54 |
使用方法は以下です。
|
55 |
-
|
56 |
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
|
57 |
import torch
|
58 |
from peft import PeftModel, PeftConfig
|
@@ -107,7 +107,7 @@ outputs = model.generate(
|
|
107 |
)
|
108 |
|
109 |
response = tokenizer.decode(outputs[0][input_ids.shape[1]:], skip_special_tokens=True)
|
110 |
-
|
111 |
### Direct Use
|
112 |
|
113 |
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
|
|
52 |
|
53 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
54 |
使用方法は以下です。
|
55 |
+
```
|
56 |
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
|
57 |
import torch
|
58 |
from peft import PeftModel, PeftConfig
|
|
|
107 |
)
|
108 |
|
109 |
response = tokenizer.decode(outputs[0][input_ids.shape[1]:], skip_special_tokens=True)
|
110 |
+
```
|
111 |
### Direct Use
|
112 |
|
113 |
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|