--- base_model: [] library_name: transformers tags: - mergekit - merge --- # Eden-L3.3-70b-0.4a ![image/png](https://cdn-uploads.huggingface.co/production/uploads/66ca56e62400073af3ad2972/fH_MK1p1LyKM6CyLD6G7b.png) Foundation model for creative writing and RP with [deepcogito/cogito-v2-preview-llama-70B](https://huggingface.co/deepcogito/cogito-v2-preview-llama-70B) as the base. (Work in progress) If you like this model, go support the original creators! ## Merge Details This model was merged using the [SCE](https://arxiv.org/abs/2408.07990) merge method using [deepcogito/cogito-v2-preview-llama-70B](https://huggingface.co/deepcogito/cogito-v2-preview-llama-70B) as a base. ### Models Merged The following models were included in the merge: * [zerofata/L3.3-GeneticLemonade-Unleashed-v3-70B](https://huggingface.co/zerofata/L3.3-GeneticLemonade-Unleashed-v3-70B) * [nvidia/Llama-3.1-Nemotron-70B-Instruct-HF](https://huggingface.co/nvidia/Llama-3.1-Nemotron-70B-Instruct-HF) * [marcelbinz/Llama-3.1-Centaur-70B](https://huggingface.co/marcelbinz/Llama-3.1-Centaur-70B) * [Delta-Vector/Austral-70B-Winton](https://huggingface.co/Delta-Vector/Austral-70B-Winton) * [watt-ai/watt-tool-70B](https://huggingface.co/watt-ai/watt-tool-70B) ### Configuration The following YAML configuration was used to produce this model: ```yaml models: - model: /workspace/cache/models--nvidia--Llama-3.1-Nemotron-70B-Instruct-HF/snapshots/031d4042f36adc1a52cca51b331d25cbe3cf1022 - model: /workspace/cache/models--zerofata--L3.3-GeneticLemonade-Unleashed-v3-70B/snapshots/786081cc68db24e8077cb8e3668f1f8ddacd5d1e - model: /workspace/cache/models--marcelbinz--Llama-3.1-Centaur-70B/snapshots/7e42dbd2e967200cee4b3eafe523c154edc2e766 - model: /workspace/cache/models--Delta-Vector--Austral-70B-Winton/snapshots/0b84421cb68e7c69848e6265a1d36dcd8957d44a - model: /workspace/cache/models--watt-ai--watt-tool-70B/snapshots/dbe19344ec6ee4b9e1636e9e6ce24fc6a85a725e base_model: /workspace/cache/models--deepcogito--cogito-v2-preview-llama-70B/snapshots/1e1d12e8eaebd6084a8dcf45ecdeaa2f4b8879ce select_topk: 0.23 merge_method: sce tokenizer: source: base chat_template: llama3 pad_to_multiple_of: 8 int8_mask: true dtype: float32 ``` Chat template: - * Llama3 Instruct Template: - * Llama3 * Deep Cogito - https://huggingface.co/deepcogito/cogito-v1-preview-llama-70B ``` {{- '<|begin_of_text|>' }} {%- if not tools is defined %} {%- set tools = none %} {%- endif %} {%- if not enable_thinking is defined %} {%- set enable_thinking = false %} {%- endif %} {#- This block extracts the system message, so we can slot it into the right place. #} {%- if messages[0]['role'] == 'system' %} {%- set system_message = messages[0]['content']|trim %} {%- set messages = messages[1:] %} {%- else %} {%- set system_message = "" %} {%- endif %} {#- Set the system message. If enable_thinking is true, add the "Enable deep thinking subroutine." #} {%- if enable_thinking %} {%- if system_message != "" %} {%- set system_message = "Enable deep thinking subroutine. " ~ system_message %} {%- else %} {%- set system_message = "Enable deep thinking subroutine." %} {%- endif %} {%- endif %} {#- Set the system message. In case there are tools present, add them to the system message. #} {%- if tools is not none or system_message != '' %} {{- "<|start_header_id|>system<|end_header_id|> " }} {{- system_message }} {%- if tools is not none %} {%- if system_message != "" %} {{- " " }} {%- endif %} {{- "Available Tools: " }} {%- for t in tools %} {{- t | tojson(indent=4) }} {{- " " }} {%- endfor %} {%- endif %} {{- "<|eot_id|>" }} {%- endif %} {#- Rest of the messages #} {%- for message in messages %} {#- The special cases are when the message is from a tool (via role ipython/tool/tool_results) or when the message is from the assistant, but has "tool_calls". If not, we add the message directly as usual. #} {#- Case 1 - Usual, non tool related message. #} {%- if not (message.role == "ipython" or message.role == "tool" or message.role == "tool_results" or (message.tool_calls is defined and message.tool_calls is not none)) %} {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|> ' }} {%- if message['content'] is string %} {{- message['content'] | trim }} {%- else %} {%- for item in message['content'] %} {%- if item.type == 'text' %} {{- item.text | trim }} {%- endif %} {%- endfor %} {%- endif %} {{- '<|eot_id|>' }} {#- Case 2 - the response is from the assistant, but has a tool call returned. The assistant may also have returned some content along with the tool call. #} {%- elif message.tool_calls is defined and message.tool_calls is not none %} {{- "<|start_header_id|>assistant<|end_header_id|> " }} {%- if message['content'] is string %} {{- message['content'] | trim }} {%- else %} {%- for item in message['content'] %} {%- if item.type == 'text' %} {{- item.text | trim }} {%- if item.text | trim != "" %} {{- " " }} {%- endif %} {%- endif %} {%- endfor %} {%- endif %} {{- "[" }} {%- for tool_call in message.tool_calls %} {%- set out = tool_call.function|tojson %} {%- if not tool_call.id is defined %} {{- out }} {%- else %} {{- out[:-1] }} {{- ', "id": "' + tool_call.id + '"}' }} {%- endif %} {%- if not loop.last %} {{- ", " }} {%- else %} {{- "]<|eot_id|>" }} {%- endif %} {%- endfor %} {#- Case 3 - the response is from a tool call. The tool call may have an id associated with it as well. If it does, we add it to the prompt. #} {%- elif message.role == "ipython" or message["role"] == "tool_results" or message["role"] == "tool" %} {{- "<|start_header_id|>ipython<|end_header_id|> " }} {%- if message.tool_call_id is defined and message.tool_call_id != '' %} {{- '{"content": ' + (message.content | tojson) + ', "call_id": "' + message.tool_call_id + '"}' }} {%- else %} {{- '{"content": ' + (message.content | tojson) + '}' }} {%- endif %} {{- "<|eot_id|>" }} {%- endif %} {%- endfor %} {%- if add_generation_prompt %} {{- '<|start_header_id|>assistant<|end_header_id|> ' }} {%- endif %} ```