Mar2Ding commited on
Commit
4ddc05d
1 Parent(s): eeda3fe

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -9
README.md CHANGED
@@ -1,12 +1,5 @@
1
  ---
2
  license: apache-2.0
3
- language:
4
- - en
5
- - zh
6
- pipeline_tag: text-classification
7
- ---
8
- ---
9
- license: apache-2.0
10
  pipeline_tag: text-generation
11
  ---
12
 
@@ -39,7 +32,6 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
39
  ckpt_path = "Mar2Ding/songcomposer_pretrain"
40
  tokenizer = AutoTokenizer.from_pretrained(ckpt_path, trust_remote_code=True)
41
  model = AutoModel.from_pretrained(ckpt_path, trust_remote_code=True).cuda().half()
42
- from modeling_internlm2 import inference_pretrain
43
  prompt = '<bop> Total 7 lines. The first line:可,<D4>,<137>,<79>|惜,<D#4>,<137>,<79>|这,<F4>,<137>,<88>|是,<F4>,<121>,<79>|属,<F4>,<121>,<79>|于,<D#4>,<214>,<88>|你,<D#4>,<141>,<79>|的,<D4>,<130>,<79>|风,<C4>,<151>,<79>|景,<A#3> <F3>,<181><137>,<79>\n'
44
  model.inference_pretrain(prompt, tokenizer, model)
45
  ```
@@ -51,7 +43,6 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
51
  ckpt_path = "Mar2Ding/songcomposer_pretrain"
52
  tokenizer = AutoTokenizer.from_pretrained(ckpt_path, trust_remote_code=True)
53
  model = AutoModel.from_pretrained(ckpt_path, trust_remote_code=True).cuda().half()
54
- from modeling_internlm2 import inference_pretrain
55
  prompt = '<bop> Total 7 lines. The first line:可,<D4>,<137>,<79>|惜,<D#4>,<137>,<79>|这,<F4>,<137>,<88>|是,<F4>,<121>,<79>|属,<F4>,<121>,<79>|于,<D#4>,<214>,<88>|你,<D#4>,<141>,<79>|的,<D4>,<130>,<79>|风,<C4>,<151>,<79>|景,<A#3> <F3>,<181><137>,<79>\n'
56
  model.inference_pretrain(prompt, tokenizer, model)
57
  ```
 
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
3
  pipeline_tag: text-generation
4
  ---
5
 
 
32
  ckpt_path = "Mar2Ding/songcomposer_pretrain"
33
  tokenizer = AutoTokenizer.from_pretrained(ckpt_path, trust_remote_code=True)
34
  model = AutoModel.from_pretrained(ckpt_path, trust_remote_code=True).cuda().half()
 
35
  prompt = '<bop> Total 7 lines. The first line:可,<D4>,<137>,<79>|惜,<D#4>,<137>,<79>|这,<F4>,<137>,<88>|是,<F4>,<121>,<79>|属,<F4>,<121>,<79>|于,<D#4>,<214>,<88>|你,<D#4>,<141>,<79>|的,<D4>,<130>,<79>|风,<C4>,<151>,<79>|景,<A#3> <F3>,<181><137>,<79>\n'
36
  model.inference_pretrain(prompt, tokenizer, model)
37
  ```
 
43
  ckpt_path = "Mar2Ding/songcomposer_pretrain"
44
  tokenizer = AutoTokenizer.from_pretrained(ckpt_path, trust_remote_code=True)
45
  model = AutoModel.from_pretrained(ckpt_path, trust_remote_code=True).cuda().half()
 
46
  prompt = '<bop> Total 7 lines. The first line:可,<D4>,<137>,<79>|惜,<D#4>,<137>,<79>|这,<F4>,<137>,<88>|是,<F4>,<121>,<79>|属,<F4>,<121>,<79>|于,<D#4>,<214>,<88>|你,<D#4>,<141>,<79>|的,<D4>,<130>,<79>|风,<C4>,<151>,<79>|景,<A#3> <F3>,<181><137>,<79>\n'
47
  model.inference_pretrain(prompt, tokenizer, model)
48
  ```