Welcome to Mixtral, where Mermaids 🧜♀️ and Dolphins 🐬collaborate to bring you unparalleled creativity and intelligence in generating mermaid diagrams.
Model Overview
Mermaid-Dolphin-Mixtral-2x7b merges the capabilities of:
Mermaid Models
: These models excel at crafting visually stunning mermaid diagrams, making complex data flows easy to comprehend.
TroyDoesAI/MermaidMistralDPO
Dolphin Models by Eric Hartford
: Renowned for their intelligence and creativity, Dolphin models add a new dimension to Mixtral's capabilities.
cognitivecomputations/dolphin-2.8-mistral-7b-v02
With Mermaid-Dolphin-Mixtral-2x7b, you can create mermaid diagrams with a blend of creativity and intelligence, making waves 🌊 in data visualization.
Example to excite the Prompt Engineers out there, Many people have been sending me prompts they use for creating various knowledge graphs, flow diagrams, story board flows, even getting the model to create what if scenario graphs, code flow is its basic skill but it seems like the model is going to keep getting better the more datasets people provide me.
Example with something a little more advanced, but please be creative and see what you can get it to do.
The model will auto complete from the word graph TB;
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
Instruction:
Generate the mermaid code block describing the code in excellent detail so I can look at the diagram and understand every single function or the high level diagram in the same full diagram.
prompt_template = """
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Create the mermaid diagram for the following input:
### Input:
{input}
### Response:
```mermaid
""".format(input=prompt)
url = "http://127.0.0.1:5000/v1/completions"
headers = {"Content-Type": "application/json"}
dataset_entries = []
for output_number, temp in enumerate(base_temperatures, start=1):
while True:
data = {
"prompt": prompt_template,
"max_tokens": 4096,
"temperature": temp,
"top_p": 1.0,
"seed": -1,
"top_k": 4,
"repetition_penalty": 1.0,
"guidance_scale": 1.0,
"typical_p": 1.0,
"stream": stream,
}
response = requests.post(url, headers=headers, json=data, verify=False)
response_text = response.json()['choices'][0]['text'].strip()
if response_text.endswith("```"): # Check if response ends with ```
response_text = response_text[:-3].strip() # Remove ``` from the end
if response_text not in unique_outputs:
try:
image_path = generator.convert_to_image(response_text, entry_number, output_number)
print(f"Mermaid diagram generated at: {image_path}")
unique_outputs.add(response_text)
break
except ValueError as e:
print(f"Validation failed, retrying... Error: {e}")
else:
temp += 0.1 # Adjust temperature if output is not unique
dataset_entry = {
"input": prompt,
"output": f"```mermaid\n{response_text}\n```",
"temperature": temp
}
dataset_entries.append(dataset_entry)
return dataset_entries
for entry_number, entry in enumerate(input_data, start=1):
prompt = entry.get("input", "")
if prompt:
entries = generate_response(prompt, base_temperatures, stream, generator, entry_number, unique_outputs)
all_entries.extend(entries) # Extend the list with new entries
return all_entries
def main(input_source, stream=False):
generator = MermaidDiagramGenerator()
input_data = read_input(input_source)
base_temperatures = [i / 10 for i in range(5, 11)] # Adjusted for batch of unique outputs per input
output_file = "output.json"
all_entries = generate_unique_responses(input_data, base_temperatures, stream, generator)
# Write all entries to the JSON file at once
with open(output_file, "w") as f:
json.dump(all_entries, f, indent=4) # Dump the entire list of entries into the file
if
name
== "
main
":
parser = argparse.ArgumentParser(description="Generate unique responses and validate Mermaid diagrams.")
parser.add_argument('input_source', type=str, help='A multi-line string, path to a .txt file, or a .json file with prompts.')
parser.add_argument('--stream', action='store_true', help='Use streaming responses.')
args = parser.parse_args()
main(args.input_source, args.stream)
Response:
graph TB;

Runs of TroyDoesAI Mermaid-Dolphin-Mixtral-2x7b on huggingface.co
14
Total runs
1
24-hour runs
0
3-day runs
1
7-day runs
8
30-day runs
More Information About Mermaid-Dolphin-Mixtral-2x7b huggingface.co Model
More Mermaid-Dolphin-Mixtral-2x7b license Visit here:
Mermaid-Dolphin-Mixtral-2x7b huggingface.co is an AI model on huggingface.co that provides Mermaid-Dolphin-Mixtral-2x7b's model effect (), which can be used instantly with this TroyDoesAI Mermaid-Dolphin-Mixtral-2x7b model. huggingface.co supports a free trial of the Mermaid-Dolphin-Mixtral-2x7b model, and also provides paid use of the Mermaid-Dolphin-Mixtral-2x7b. Support call Mermaid-Dolphin-Mixtral-2x7b model through api, including Node.js, Python, http.
Mermaid-Dolphin-Mixtral-2x7b huggingface.co is an online trial and call api platform, which integrates Mermaid-Dolphin-Mixtral-2x7b's modeling effects, including api services, and provides a free online trial of Mermaid-Dolphin-Mixtral-2x7b, you can try Mermaid-Dolphin-Mixtral-2x7b online for free by clicking the link below.
TroyDoesAI Mermaid-Dolphin-Mixtral-2x7b online free url in huggingface.co:
Mermaid-Dolphin-Mixtral-2x7b is an open source model from GitHub that offers a free installation service, and any user can find Mermaid-Dolphin-Mixtral-2x7b on GitHub to install. At the same time, huggingface.co provides the effect of Mermaid-Dolphin-Mixtral-2x7b install, users can directly use Mermaid-Dolphin-Mixtral-2x7b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Mermaid-Dolphin-Mixtral-2x7b install url in huggingface.co: