cmh commited on
Commit
03d4f98
·
verified ·
1 Parent(s): c72d1a7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -59
README.md CHANGED
@@ -55,62 +55,4 @@ How should I explain the Internet?<|im_end|>
55
 
56
  ### With ExUI:
57
 
58
- Edit exui/backend/prompts.py
59
-
60
- ```
61
- class PromptFormat_phi4(PromptFormat):
62
-
63
- description = "Phi-4 format"
64
-
65
- def __init__(self):
66
- super().__init__()
67
- pass
68
-
69
- def is_instruct(self):
70
- return True
71
-
72
- def stop_conditions(self, tokenizer, settings):
73
- return \
74
- [tokenizer.eos_token_id,
75
- """<|im_end|>"""]
76
-
77
- def format(self, prompt, response, system_prompt, settings):
78
- text = ""
79
- if system_prompt and system_prompt.strip() != "":
80
- text += "<|im_start|>system\n"
81
- text += system_prompt
82
- text += "\n<|im_end|>\n"
83
- text += "<|im_start|>user\n"
84
- text += prompt
85
- text += "<|im_end|>\n"
86
- text += "<|im_start|>assistant\n"
87
- if response:
88
- text += response
89
- text += "<|im_end|>\n"
90
- return text
91
-
92
- def context_bos(self):
93
- return True
94
-
95
- prompt_formats = \
96
- {
97
- "Chat-RP": PromptFormat_raw,
98
- "Llama-chat": PromptFormat_llama,
99
- "Llama3-instruct": PromptFormat_llama3,
100
- "ChatML": PromptFormat_chatml,
101
- "TinyLlama-chat": PromptFormat_tinyllama,
102
- "MistralLite": PromptFormat_mistrallite,
103
- "Phind-CodeLlama": PromptFormat_phind_codellama,
104
- "Deepseek-chat": PromptFormat_deepseek_chat,
105
- "Deepseek-instruct": PromptFormat_deepseek_instruct,
106
- "OpenChat": PromptFormat_openchat,
107
- "Gemma": PromptFormat_gemma,
108
- "Cohere": PromptFormat_cohere,
109
- "Phi3-instruct": PromptFormat_phi3,
110
- "Phi4": PromptFormat_phi4,
111
- "Granite": PromptFormat_granite,
112
- "Mistral V1": PromptFormat_mistralv1,
113
- "Mistral V2/V3": PromptFormat_mistralv2v3,
114
- "Mistral V3 (Tekken)": PromptFormat_mistralTekken,
115
- }
116
- ```
 
55
 
56
  ### With ExUI:
57
 
58
+ Replace exui/backend/prompts.py with https://huggingface.co/cmh/phi-4_exl2/raw/main/backend/prompts.py