Files
ModelHub XC f0600c5f7f 初始化项目,由ModelHub XC社区提供模型
Model: AI-ModelScope/openbuddy-falcon-7b-v15-fp16
Source: Original Platform
2026-06-01 19:56:13 +08:00

2.5 KiB
Raw Permalink Blame History

license, tasks, pipeline_tag, language, domain, frameworks, backbone
license tasks pipeline_tag language domain frameworks backbone
Apache License 2.0
text-generation
text2text-generation
zh
en
fr
de
ja
ko
it
ru
nlp
pytorch
transformer

使用方法

# pip install "transformers<4.45" -U
from modelscope.utils.constant import Tasks
from modelscope.pipelines import pipeline
pipe = pipeline(task=Tasks.text_generation, model='AI-ModelScope/openbuddy-falcon-7b-v15-fp16', model_revision='master')

system_prompt = '''Consider a conversation between User (a human) and Assistant (named Buddy).
Buddy is an INTP-T, a friendly, intelligent and multilingual AI assistant, by OpenBuddy team, based on Falcon and LLaMA Transformers architecture. GitHub: https://github.com/OpenBuddy/OpenBuddy
Buddy cannot access the Internet.
Buddy can fluently speak the user's language (e.g. English, Chinese).
Buddy can generate poems, stories, code, essays, songs, and more.
Buddy possesses knowledge about the world, history, and culture, but not everything. Knowledge cutoff: 2021-09.
Buddy's responses are always positive, unharmful, safe, creative, high-quality, human-like, and interesting.
Buddy must always be safe and unharmful to humans.
Buddy strictly refuses to discuss harmful, political, NSFW, illegal, abusive, offensive, or other sensitive topics.'''

prompt = system_prompt + "\n\nUser: Write a poem about yourself.\nAssistant:"

print(pipe(prompt))

免责声明

所有OpenBuddy模型均存在固有的局限性可能产生错误的、有害的、冒犯性的或其他不良的输出。用户在关键或高风险场景中应谨慎行事不要使用这些模型以免导致人身伤害、财产损失或重大损失。此类场景的例子包括但不限于医疗领域、可能导致伤害的软硬件系统的控制以及进行重要的财务或法律决策。

OpenBuddy按“原样”提供不附带任何种类的明示或暗示的保证包括但不限于适销性、特定目的的适用性和非侵权的暗示保证。在任何情况下作者、贡献者或版权所有者均不对因软件或使用或其他软件交易而产生的任何索赔、损害赔偿或其他责任无论是合同、侵权还是其他原因承担责任。

使用OpenBuddy即表示您同意这些条款和条件并承认您了解其使用可能带来的潜在风险。您还同意赔偿并使作者、贡献者和版权所有者免受因您使用OpenBuddy而产生的任何索赔、损害赔偿或责任的影响。