Update README.md
Browse files
README.md
CHANGED
@@ -67,4 +67,17 @@ for i in t:
|
|
67 |
print(response[0]['generated_text'])
|
68 |
</code>
|
69 |
</pre>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
</details>
|
|
|
67 |
print(response[0]['generated_text'])
|
68 |
</code>
|
69 |
</pre>
|
70 |
+
</details>
|
71 |
+
|
72 |
+
或是,你要使用 transformers 套件來實作你的程式,將本模型下載至你本地端的電腦中執行,可以參考下列程式碼:
|
73 |
+
<details>
|
74 |
+
<summary> 點擊後展開 </summary>
|
75 |
+
<pre>
|
76 |
+
<code>
|
77 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
78 |
+
|
79 |
+
tokenizer = AutoTokenizer.from_pretrained("jslin09/bloom-560m-finetuned-fraud")
|
80 |
+
model = AutoModelForCausalLM.from_pretrained("jslin09/bloom-560m-finetuned-fraud")
|
81 |
+
</code>
|
82 |
+
</pre>
|
83 |
</details>
|