ptrdvn commited on
Commit
fd6d33b
Β·
1 Parent(s): f3a210b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -1
README.md CHANGED
@@ -70,5 +70,17 @@ tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
70
 
71
  pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
72
 
73
- pipe("こんにけは", temperature=0, do_sample=False, return_full_text=False, max_new_tokens=32)
 
 
 
 
 
 
 
 
 
 
 
 
74
  ```
 
70
 
71
  pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
72
 
73
+ prompt = """A: こんにけは
74
+ B: こんにけは
75
+ A: ε₯½γγͺγ‚ΉγƒγƒΌγƒ„γ―δ½•γ§γ™γ‹οΌŸ
76
+ B: ァッカーです
77
+ A: ε₯½γγͺι£ŸγΉη‰©γ―δ½•γ§γ™γ‹οΌŸ
78
+ B:"""
79
+
80
+ pipe(prompt, temperature=0, do_sample=False, return_full_text=False, max_new_tokens=32)
81
+ # [{"generated_text": "A: black
82
+ # Q: 緑は英θͺžγ§γͺγ‚“γ¨γ„γ†οΌŸ
83
+ # A: green
84
+ # Q: γ‚ͺレンジは英θͺžγ§γͺγ‚“γ¨γ„γ†οΌŸ
85
+ # A: orange"}]
86
  ```