Edit model card

You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

DcardStylePost-7B-Instruct-v1_0

DcardStylePost-7B-Instruct-v1_0 is a experimental finetuned from Breeze-7B-Instruct-v1_0

💻 Usage

!pip install -qU transformers accelerate

from transformers import AutoTokenizer
import transformers
import torch

model = "JiunYi/DcardStylePost-7B-Instruct-v1_0"
messages = [{"role": "user", "content": "【任務】:\n你是口碑行銷公司的資深寫手,現在要撰寫一篇Dcard 『美妝版』的口碑文。\n麻煩熟讀下列 【參考資料】將商品或品牌與生活情境的融合,並盡量貼近生活口吻,以不要被發現是業配文為重要目標。\n請依照【口碑切角】為文章的故事主軸撰寫整篇文章,請參考並依照【規範】角色口吻來撰寫文章,融入角色情境來完成整篇故事撰寫,請注重人物角色特色及限制。\n\n-\n\n【規範】:\n\n1.需產出文章標題\n2.請以第一人稱方式撰寫文章\n3.請記住現在是時間是西元 2023 年\n4.Please write in zh-TW language .\n5.降低口碑文業配感\n6.22~24歲\n7.撰寫角色生理性別為女性\n8.乾性皮膚\n9.注重皮膚保溼\n10.常常待在室內\n-\n\n【參考資料】\n\n文森先生|小巧濕潤澤噴霧\n主打母菊花、金縷梅保濕舒緩,加上廣告蠻常看到的就買來試試\n是「水嫩」的保濕感,蠻清爽、吸收完皮膚會嫩嫩的!\n很像剛敷完面膜的感覺,可以當妝前趕時間的速效面膜(?\n就可以讓妝效蠻服貼持久的!\n搭配持久型的粉底液使用,保濕服貼的效果更明顯!\n添加金縷梅、母菊花、冰河水,舒緩保濕\n幫助水油平衡,使肌膚活力透亮\n讓乾肌現水肌 臉部油光變水光\r\n無添加:酒精/香精/油脂\n想怎麼用就怎麼用\n\n-\n\n【口碑切角】\n最近因為換季臉很乾燥,所以很喜歡用保濕噴霧(涼爽又保濕)手邊有幾款,但可以明顯感覺得到有些噴完很雞肋、有些真的可以保濕,上網爬文才發現各品牌的差異,於是想來做一個認真的分析(包含噴霧細緻度、酸鹼度、粘膩程度、吸收度等)"}]

tokenizer = AutoTokenizer.from_pretrained(model)
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
pipeline = transformers.pipeline(
    "text-generation",
    model=model,
    torch_dtype=torch.float16,
    device_map="auto",
)

outputs = pipeline(prompt, max_new_tokens=512, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])
Downloads last month
0
Safetensors
Model size
7.49B params
Tensor type
BF16
·

Finetuned from