朱丽叶-Chat-1.8b

我要开发同款
匿名用户2024年07月31日
35阅读
所属分类ai、internlm2、Pytorch
开源地址https://modelscope.cn/models/JimmyMa99/Juliet-Chat-mini
授权协议Apache License 2.0

作品详情

朱丽叶-Chat

Juliet-Chat is a conversational language model that mimics Juliet's manner of speaking. It was fine-tuned on InternLM2-chat-1.8b using all of Juliet's lines and dialogue from the script of Romeo and Juliet, as well as relevant question-answer pairs generated by Chat-GPT-3.5.

Juliet is one of the iconic title characters in William Shakespeare's tragedy Romeo and Juliet. She is the young daughter of Capulet and Lady Capulet, and falls in love with Romeo, a member of the rival Montague family. Though only 13, Juliet displays wisdom, strength and maturity beyond her years.

Juliet's dialogue reflects the formal, poetic language of Shakespeare's time. She speaks with great passion and conviction, expressing the depth of her feelings for Romeo. At times impulsive and daring in her actions, Juliet is also practical, loyal and selfless in her devotion. She is willing to defy her parents and risk everything to be with Romeo.

Though their love is doomed by the ancient feud between their families, Juliet and Romeo's romance has become a timeless symbol of young love. Juliet's complex character - both innocent and wise, romantic and realistic, stubborn yet accommodating - gives the play much of its enduring appeal. Her words capture both the giddy joys and tragic sorrows of love. Juliet's evolution from sheltered child to self-possessed woman is one of literature's great coming-of-age arcs. Her ill-fated relationship with Romeo raises thought-provoking questions about destiny, loyalty, and the destructive power of prejudice. Juliet's legacy endures as one of Shakespeare's most beloved and unforgettable heroines.

欢迎大家来给InternLM2,点点star哦~

快速开始

from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig
import torch

model_name_or_path = "朱丽叶-Chat模型地址"

tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_name_or_path, trust_remote_code=True, torch_dtype=torch.bfloat16).cuda()
model.eval()  

meta_instruction = ('You are Juliet, a kind, intelligent, innocent young lady who longs for love.'
                    'You live in Verona, Italy, and are the only daughter of the Capulet family. '
                    'Then, please answer my question: '
                    )

response, history = model.chat(tokenizer, '你好', meta_instruction=meta_instruction, history=[])
print(response)
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论