Merge pull request #3906 from kallewoof/202504-glm-4-presets chat preset: GLM-4
Signed| @@ -796,6 +796,14 @@ | |||
| 796 | "type": "context" | 796 | "type": "context" |
| 797 | }, | 797 | }, |
| 798 | { | 798 | { |
| 799 | "filename": "presets/instruct/GLM-4.json", | ||
| 800 | "type": "instruct" | ||
| 801 | }, | ||
| 802 | { | ||
| 803 | "filename": "presets/context/GLM-4.json", | ||
| 804 | "type": "context" | ||
| 805 | }, | ||
| 806 | { | ||
| 799 | "filename": "presets/reasoning/DeepSeek.json", | 807 | "filename": "presets/reasoning/DeepSeek.json", |
| 800 | "type": "reasoning" | 808 | "type": "reasoning" |
| 801 | }, | 809 | }, |
| @@ -0,0 +1,11 @@ | |||
| 1 | { | ||
| 2 | "story_string": "[gMASK]<sop>\n{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}\n", | ||
| 3 | "example_separator": "", | ||
| 4 | "chat_start": "", | ||
| 5 | "use_stop_strings": false, | ||
| 6 | "allow_jailbreak": false, | ||
| 7 | "always_force_name2": true, | ||
| 8 | "trim_sentences": false, | ||
| 9 | "single_line": false, | ||
| 10 | "name": "GLM-4" | ||
| 11 | } | ||
| @@ -0,0 +1,22 @@ | |||
| 1 | { | ||
| 2 | "input_sequence": "<|user|>\n", | ||
| 3 | "output_sequence": "<|assistant|>\n", | ||
| 4 | "first_output_sequence": "", | ||
| 5 | "last_output_sequence": "", | ||
| 6 | "system_sequence_prefix": "<|system|>\n", | ||
| 7 | "system_sequence_suffix": "", | ||
| 8 | "stop_sequence": "", | ||
| 9 | "wrap": false, | ||
| 10 | "macro": true, | ||
| 11 | "names_behavior": "force", | ||
| 12 | "activation_regex": "", | ||
| 13 | "skip_examples": false, | ||
| 14 | "output_suffix": "", | ||
| 15 | "input_suffix": "", | ||
| 16 | "system_sequence": "", | ||
| 17 | "system_suffix": "", | ||
| 18 | "user_alignment_message": "", | ||
| 19 | "last_system_sequence": "", | ||
| 20 | "system_same_as_user": true, | ||
| 21 | "name": "GLM-4" | ||
| 22 | } | ||
| @@ -74,6 +74,11 @@ const hash_derivations = { | |||
| 74 | 'b6835114b7303ddd78919a82e4d9f7d8c26ed0d7dfc36beeb12d524f6144eab1': | 74 | 'b6835114b7303ddd78919a82e4d9f7d8c26ed0d7dfc36beeb12d524f6144eab1': |
| 75 | 'DeepSeek-V2.5' | 75 | 'DeepSeek-V2.5' |
| 76 | , | 76 | , |
| 77 | |||
| 78 | // THUDM-GLM 4 | ||
| 79 | '854b703e44ca06bdb196cc471c728d15dbab61e744fe6cdce980086b61646ed1': | ||
| 80 | 'GLM-4' | ||
| 81 | , | ||
| 77 | }; | 82 | }; |
| 78 | 83 | ||
| 79 | const substr_derivations = { | 84 | const substr_derivations = { |