? TigerBot • ? Huggig Face
https://github.com/TigerResearch/TigerBot 输出
Github
Usage
from modelscope.utils.costat import Tasks
from modelscope.pipelies import pipelie
pipe = pipelie(task=Tasks.text_geeratio, model='AI-ModelScope/tigerbot-7b-sft', model_revisio='v1.0.0')
tok_is = "\\### Istructio:\"
tok_res = "\\### Respose:\"
prompt_iput = tok_is + "{istructio}" + tok_res
iput_text = "What is the ext umber after this list: [1, 2, 3, 5, 8, 13, 21]"
iput_text = prompt_iput.format_map({'istructio': iput_text})
result = pipe(iput_text)
prit(result)
{'text': '34'}
点击空白处退出提示
评论