From 6d99f971f5617420df0edc16506c1a2deb008f1b Mon Sep 17 00:00:00 2001 From: ZHO-ZHO-ZHO <140084057+ZHO-ZHO-ZHO@users.noreply.github.com> Date: Fri, 26 Apr 2024 22:29:43 +0800 Subject: [PATCH] V1.0 Phi-3-mini-4k-instruct --- .../Phi-3-mini-4k + CosXL【Zho】.json | 592 ++++++++++++++++++ .../Phi-3-mini-4k Chat【Zho】.json | 161 +++++ 2 files changed, 753 insertions(+) create mode 100644 Phi-3-min Workflows/Phi-3-mini-4k + CosXL【Zho】.json create mode 100644 Phi-3-min Workflows/Phi-3-mini-4k Chat【Zho】.json diff --git a/Phi-3-min Workflows/Phi-3-mini-4k + CosXL【Zho】.json b/Phi-3-min Workflows/Phi-3-mini-4k + CosXL【Zho】.json new file mode 100644 index 0000000..11708dd --- /dev/null +++ b/Phi-3-min Workflows/Phi-3-mini-4k + CosXL【Zho】.json @@ -0,0 +1,592 @@ +{ + "last_node_id": 11, + "last_link_id": 15, + "nodes": [ + { + "id": 7, + "type": "CLIPTextEncode", + "pos": [ + 750, + 810 + ], + "size": { + "0": 400, + "1": 80 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 8, + "slot_index": 0 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 7 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "low quality" + ] + }, + { + "id": 8, + "type": "CLIPTextEncode", + "pos": [ + 750, + 710 + ], + "size": { + "0": 400, + "1": 54 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 9, + "slot_index": 0 + }, + { + "name": "text", + "type": "STRING", + "link": 11, + "widget": { + "name": "text" + }, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 10 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "" + ] + }, + { + "id": 3, + "type": "DisplayText_Zho", + "pos": [ + 1170, + 1120 + ], + "size": { + "0": 410, + "1": 110 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 3, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "text", + "type": "STRING", + "links": [ + 11 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "DisplayText_Zho" + }, + "widgets_values": [ + "", + "\"A stunning Lamborghini Huracán in the wild, breathtaking landscape, all four seasons' beauty, professional camera shot, advertisement, sunset ambiance.\"" + ] + }, + { + "id": 10, + "type": "VAEDecode", + "pos": [ + 1170, + 1020 + ], + "size": { + "0": 410, + "1": 50 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 13 + }, + { + "name": "vae", + "type": "VAE", + "link": 14, + "slot_index": 1 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 15 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 4, + "type": "KSampler", + "pos": [ + 1170, + 710 + ], + "size": { + "0": 410, + "1": 262 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 6, + "slot_index": 0 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 10 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 7, + "slot_index": 2 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 12, + "slot_index": 3 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 13 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 745665541847989, + "randomize", + 30, + 3, + "dpmpp_2m", + "karras", + 1 + ] + }, + { + "id": 6, + "type": "ModelSamplingContinuousEDM", + "pos": [ + 360, + 860 + ], + "size": { + "0": 370, + "1": 110 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 5, + "slot_index": 0 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 6 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "ModelSamplingContinuousEDM" + }, + "widgets_values": [ + "v_prediction", + 120, + 0.002 + ] + }, + { + "id": 5, + "type": "CheckpointLoaderSimple", + "pos": [ + 360, + 710 + ], + "size": { + "0": 370, + "1": 100 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 5 + ], + "shape": 3 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 8, + 9 + ], + "shape": 3 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 14 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "cosxl.safetensors" + ] + }, + { + "id": 1, + "type": "Phi3mini_4k_ModelLoader_Zho", + "pos": [ + 360, + 1180 + ], + "size": { + "0": 370, + "1": 50 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "Phi3mini_4k", + "type": "PHI3", + "links": [ + 1 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "tokenizer", + "type": "TK", + "links": [ + 2 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "Phi3mini_4k_ModelLoader_Zho" + } + }, + { + "id": 9, + "type": "EmptyLatentImage", + "pos": [ + 360, + 1020 + ], + "size": { + "0": 370, + "1": 110 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 12 + ], + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 1024, + 1024, + 6 + ] + }, + { + "id": 2, + "type": "Phi3mini_4k_Zho", + "pos": [ + 750, + 940 + ], + "size": { + "0": 400, + "1": 290 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "PHI3", + "link": 1 + }, + { + "name": "tokenizer", + "type": "TK", + "link": 2 + } + ], + "outputs": [ + { + "name": "text", + "type": "STRING", + "links": [ + 3 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Phi3mini_4k_Zho" + }, + "widgets_values": [ + "炫酷的兰博基尼飞驰在旷野上,风景优美,四季风光,专业镜头,广告片,夕阳", + "You are creating a prompt for Stable Diffusion to generate an image. \nFirst step: understand the input and generate a text prompt for the input. \nSecond step: only respond in English with the prompt itself in phrase, but embellish it as needed but keep it under 200 tokens.", + 0.5 + ] + }, + { + "id": 11, + "type": "PreviewImage", + "pos": [ + 362, + 1280 + ], + "size": { + "0": 1220, + "1": 840 + }, + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 15 + } + ], + "title": "🏖️Phi3mini 4k + CosXL", + "properties": { + "Node name for S&R": "PreviewImage" + } + } + ], + "links": [ + [ + 1, + 1, + 0, + 2, + 0, + "PHI3" + ], + [ + 2, + 1, + 1, + 2, + 1, + "TK" + ], + [ + 3, + 2, + 0, + 3, + 0, + "STRING" + ], + [ + 5, + 5, + 0, + 6, + 0, + "MODEL" + ], + [ + 6, + 6, + 0, + 4, + 0, + "MODEL" + ], + [ + 7, + 7, + 0, + 4, + 2, + "CONDITIONING" + ], + [ + 8, + 5, + 1, + 7, + 0, + "CLIP" + ], + [ + 9, + 5, + 1, + 8, + 0, + "CLIP" + ], + [ + 10, + 8, + 0, + 4, + 1, + "CONDITIONING" + ], + [ + 11, + 3, + 0, + 8, + 1, + "STRING" + ], + [ + 12, + 9, + 0, + 4, + 3, + "LATENT" + ], + [ + 13, + 4, + 0, + 10, + 0, + "LATENT" + ], + [ + 14, + 5, + 2, + 10, + 1, + "VAE" + ], + [ + 15, + 10, + 0, + 11, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/Phi-3-min Workflows/Phi-3-mini-4k Chat【Zho】.json b/Phi-3-min Workflows/Phi-3-mini-4k Chat【Zho】.json new file mode 100644 index 0000000..3933e79 --- /dev/null +++ b/Phi-3-min Workflows/Phi-3-mini-4k Chat【Zho】.json @@ -0,0 +1,161 @@ +{ + "last_node_id": 4, + "last_link_id": 4, + "nodes": [ + { + "id": 2, + "type": "Phi3mini_4k_ModelLoader_Zho", + "pos": [ + 200, + 430 + ], + "size": [ + 230, + 60 + ], + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "Phi3mini_4k", + "type": "PHI3", + "links": [ + 1 + ], + "shape": 3 + }, + { + "name": "tokenizer", + "type": "TK", + "links": [ + 2 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "Phi3mini_4k_ModelLoader_Zho" + } + }, + { + "id": 4, + "type": "DisplayText_Zho", + "pos": [ + 450, + 430 + ], + "size": [ + 590, + 770 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 4, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "text", + "type": "STRING", + "links": null, + "shape": 3 + } + ], + "title": "🏖️Phi3mini 4k Chat", + "properties": { + "Node name for S&R": "DisplayText_Zho" + }, + "widgets_values": [ + "", + "user: What is the meaning of life?\n----------------------------------------\nsystem: The meaning of life is a profound and complex question that has been explored by philosophers, theologians, scientists, and thinkers throughout history. There is no single, universally accepted answer, as perspectives on this question can vary greatly depending on cultural, religious, and personal beliefs.\n\nSome people find meaning in life through their relationships with others, their pursuit of knowledge, or their contribution to society. Others may find meaning in spirituality, religion, or a connection to something greater than themselves.\n\nFrom a scientific perspective, life can be seen as a product of evolution, with the primary goal of survival and reproduction. However, this does not necessarily provide a deeper meaning or purpose.\n\nUltimately, the meaning of life is a personal journey, and each individual must find their own purpose and meaning through introspection, experiences, and the pursuit of their passions and values.\n----------------------------------------\nuser: 你是谁?\n----------------------------------------\nsystem: 我是一个人工智能助手,专门设计来帮助用户解答问题、提供信息和执行任务。如果你有任何问题或需要帮助,请随时告诉我。\n\n----------------------------------------\nuser: 鸡兔同笼问题:鸡和兔一共10只,脚一共28只,求问鸡几只兔几只?\n用中文回答\n----------------------------------------\nsystem: 这是一个经典的数学问题,叫做鸡兔同笼问题。根据题目,有10只动物,其中一部分是鸡,另一部分是兔子。鸡和兔的脚总数为28只。\n\n设鸡的数量为x,兔的数量为y。\n\n根据题目信息,我们可以得出以下两个方程:\n\n1) x + y = 10 (鸡和兔的总数)\n2) 2x + 4y = 28 (鸡和兔的脚总数,因为鸡有2只脚,兔有4只脚)\n\n我们可以通过方程2替换方程1中的x或y来解这个方程组。\n\n首先,我们将方程1中的x表示为10 - y,然后将其代入方程2中:\n\n2(10 - y) + 4y = 28\n20 - 2y + 4y = 28\n2y = 8\ny = 4\n\n现在我们知道兔子的数量为4只。将y的值代入方程1中,我们可以求出鸡的数量:\n\nx + 4 = 10\nx = 6\n\n所以,这个问题的答案是:鸡有6只,兔有4只。\n----------------------------------------" + ] + }, + { + "id": 1, + "type": "Phi3mini_4k_Chat_Zho", + "pos": [ + 200, + 540 + ], + "size": [ + 230, + 660 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "PHI3", + "link": 1, + "slot_index": 0 + }, + { + "name": "tokenizer", + "type": "TK", + "link": 2 + } + ], + "outputs": [ + { + "name": "text", + "type": "STRING", + "links": [ + 4 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Phi3mini_4k_Chat_Zho" + }, + "widgets_values": [ + "鸡兔同笼问题:鸡和兔一共10只,脚一共28只,求问鸡几只兔几只?\n用中文回答", + "You are a helpful AI assistant.", + 0 + ] + } + ], + "links": [ + [ + 1, + 2, + 0, + 1, + 0, + "PHI3" + ], + [ + 2, + 2, + 1, + 1, + 1, + "TK" + ], + [ + 4, + 1, + 0, + 4, + 0, + "STRING" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file