TroyDoesAI / Mermaid-Llama-3-8B

huggingface.co
Total runs: 71
24-hour runs: 0
7-day runs: 56
30-day runs: 69
Model's Last Updated: May 03 2024
text-generation

Introduction of Mermaid-Llama-3-8B

Model Details of Mermaid-Llama-3-8B

Mermaid-Llama-3-8B

Introducing Mermaid-LLama-3-8B, a robust language model designed for Python code understanding and crafting captivating story flow maps.

MermaidLlama GIF

Key Features
  1. Code Understanding:

    • Masters Python intricacies with finesse.
    • Generates clear and accurate Mermaid Diagram Flow Charts.
    • Ideal for developers seeking visual representations of their code logic.
  2. Storytelling Capabilities:

    • Converts narrative inputs into captivating Mermaid Diagrams.
    • Maps character interactions, plot developments, and narrative arcs.
  3. Unmatched Performance:

    • Surpasses GPT-4 in generating well-organized Mermaid Diagrams.
  4. Training Insights:

    • Trained on a diverse dataset, including 800 unique, hand-curated Mermaid Graph examples utilizing 478 complete Python programs.
    • Exhibits emergent properties in story-to-flow map translations and step-by-step instruction flow maps.
Collaboration

Interested in enhancing Mermaid's capabilities? Contact [email protected] for collaboration opportunities.

Example Use Cases
  • Retrieval-Augmented Generation (RAG): Utilize Mermaid-LLama-3-8B to create condensed knowledge graphs. This model excels in generating flow diagrams that enhance the retrieval process. These knowledge graphs are stored in a vector database, which allows for quick and efficient retrieval of contextually relevant information. When a query is received, the system retrieves a pertinent knowledge graph, appending it as context to the model. This enriched context enables Mermaid-LLama-3-8B to deliver more accurate and nuanced responses. This approach is particularly beneficial in applications requiring deep, context-aware interactions, such as sophisticated Q&A systems, dynamic data analysis, and complex decision-making tasks.
  • Code Documentation: Automatic visual flow charts from Python code.
  • Storyboarding: Visually appealing diagrams for storytelling.
  • Project Planning: Visual project flow maps for effective team communication.
  • Learning Python: Helps students visually understand Python code structures.
  • Game Design: Visualizing game storylines for coherent narrative structure.
Proof of Concept

Stay tuned for the release of the VSCode Extension that displays the Live Flow Map every time a user stops typing for more than 10 seconds.

Training Specifications
  • LoRA Rank: 2048
  • LoRA Alpha: 4096
  • Batch Size: 1
  • Micro Batch Size: 1
  • Cutoff Length: 4096
  • Save every n steps: 1000
  • Epochs: 3
  • Learning Rate: 1e-6
  • LR Scheduler: Cosine

Target Modules:

  • Enable q_proj
  • Enable v_proj
  • Enable k_proj
  • Enable o_proj
  • Enable gate_proj
  • Enable down_proj
  • Enable up_proj
Getting Started

Start by downloading one of my models.

0 TroyDoesAI GIF

Load the model.

1 Load Model in 4-bit Show Example Use GIF

Use my prompt template to generate a Mermaid code block, which can be viewed in the Mermaid Live Editor or using the Mermaid CLI tool.

2 Loaded Model in Full Precision 16-bit Show Inference and Mermaid Live Editor GIF

Here we open the VLLM GUI Program while still running in Vram the Mermaid-Llama-8B to compare the flow diagram to the actual program and show the lightweight capabilites of small models on consumer hardware.

3 Open The Program VLLM Program With Full Precision Mermaid-Llama-8B Running to Evaluate Flow Map GIF

More on my VLLM Class and inference GUI : https://github.com/Troys-Code/VLLM
Python RtdBsaz8gy GIF

Note: This model should be treated as an Auto-Complete Model, Do not try talking to it in chat you are gonna get garbage, those layers have been pruned and replaced, that is all you will hear of my secret sauce on training on small < 1000 entry datasets.

Runs of TroyDoesAI Mermaid-Llama-3-8B on huggingface.co

71
Total runs
0
24-hour runs
1
3-day runs
56
7-day runs
69
30-day runs

More Information About Mermaid-Llama-3-8B huggingface.co Model

More Mermaid-Llama-3-8B license Visit here:

https://choosealicense.com/licenses/cc-by-4.0

Mermaid-Llama-3-8B huggingface.co

Mermaid-Llama-3-8B huggingface.co is an AI model on huggingface.co that provides Mermaid-Llama-3-8B's model effect (), which can be used instantly with this TroyDoesAI Mermaid-Llama-3-8B model. huggingface.co supports a free trial of the Mermaid-Llama-3-8B model, and also provides paid use of the Mermaid-Llama-3-8B. Support call Mermaid-Llama-3-8B model through api, including Node.js, Python, http.

Mermaid-Llama-3-8B huggingface.co Url

https://huggingface.co/TroyDoesAI/Mermaid-Llama-3-8B

TroyDoesAI Mermaid-Llama-3-8B online free

Mermaid-Llama-3-8B huggingface.co is an online trial and call api platform, which integrates Mermaid-Llama-3-8B's modeling effects, including api services, and provides a free online trial of Mermaid-Llama-3-8B, you can try Mermaid-Llama-3-8B online for free by clicking the link below.

TroyDoesAI Mermaid-Llama-3-8B online free url in huggingface.co:

https://huggingface.co/TroyDoesAI/Mermaid-Llama-3-8B

Mermaid-Llama-3-8B install

Mermaid-Llama-3-8B is an open source model from GitHub that offers a free installation service, and any user can find Mermaid-Llama-3-8B on GitHub to install. At the same time, huggingface.co provides the effect of Mermaid-Llama-3-8B install, users can directly use Mermaid-Llama-3-8B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Mermaid-Llama-3-8B install url in huggingface.co:

https://huggingface.co/TroyDoesAI/Mermaid-Llama-3-8B

Url of Mermaid-Llama-3-8B

Mermaid-Llama-3-8B huggingface.co Url

Provider of Mermaid-Llama-3-8B huggingface.co

TroyDoesAI
ORGANIZATIONS

Other API from TroyDoesAI

huggingface.co

Total runs: 135
Run Growth: 135
Growth Rate: 100.00%
Updated:November 29 2025
huggingface.co

Total runs: 8
Run Growth: 0
Growth Rate: 0.00%
Updated:March 23 2025
huggingface.co

Total runs: 7
Run Growth: 1
Growth Rate: 14.29%
Updated:March 23 2025
huggingface.co

Total runs: 5
Run Growth: -5
Growth Rate: -100.00%
Updated:September 14 2024