yangliu commited on
Commit
c66bb6c
·
1 Parent(s): a98b648

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -0
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:'