Update README.md
Browse files
README.md
CHANGED
|
@@ -8,7 +8,10 @@ from transformers import BloomForCausalLM, BloomTokenizerFast
|
|
| 8 |
|
| 9 |
|
| 10 |
checkpoint = "model"
|
|
|
|
|
|
|
| 11 |
tokenizer = BloomTokenizerFast.from_pretrained(checkpoint)
|
|
|
|
| 12 |
model = BloomForCausalLM.from_pretrained(checkpoint).cuda()
|
| 13 |
|
| 14 |
text = 'Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n{你想问的文本}\n\n### Response:'
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
checkpoint = "model"
|
| 11 |
+
|
| 12 |
+
|
| 13 |
tokenizer = BloomTokenizerFast.from_pretrained(checkpoint)
|
| 14 |
+
|
| 15 |
model = BloomForCausalLM.from_pretrained(checkpoint).cuda()
|
| 16 |
|
| 17 |
text = 'Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n{你想问的文本}\n\n### Response:'
|