Commit
•
0e08229
1
Parent(s):
1fb9f40
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,90 @@
|
|
1 |
---
|
2 |
-
license: cc-by-
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
license: cc-by-4.0
|
3 |
---
|
4 |
+
|
5 |
+
# Mermaid-Llama-2-13B
|
6 |
+
|
7 |
+
Introducing Mermaid-Llama-13B-Detailed-Responses, a robust language model designed to master Python intricacies and craft captivating story flow maps in more depth and detail than previous models.
|
8 |
+
With a staggering 13 billion parameters, this model sets the bar for excellence in AI-driven code comprehension and narrative visualization.
|
9 |
+
|
10 |
+
![MermaidLlama GIF](Mermaid_ShowCase/MermaidLlama.webp)
|
11 |
+
|
12 |
+
## Key Features
|
13 |
+
|
14 |
+
1. **Code Understanding:**
|
15 |
+
- Masters Python intricacies with finesse.
|
16 |
+
- Generates clear and accurate Mermaid Diagram Flow Charts.
|
17 |
+
- Ideal for developers seeking visual representations of their code logic.
|
18 |
+
|
19 |
+
2. **Storytelling Capabilities:**
|
20 |
+
- Converts narrative inputs into captivating Mermaid Diagrams.
|
21 |
+
- Maps character interactions, plot developments, and narrative arcs.
|
22 |
+
|
23 |
+
3. **Unmatched Performance:**
|
24 |
+
- Surpasses GPT-4 in generating well-organized Mermaid Diagrams.
|
25 |
+
|
26 |
+
4. **Training Insights:**
|
27 |
+
- Trained on a diverse dataset, including 800 unique, hand-curated Mermaid Graph examples utilizing 478 complete Python programs.
|
28 |
+
- Exhibits emergent properties in story-to-flow map translations and step-by-step instruction flow maps.
|
29 |
+
|
30 |
+
## Collaboration
|
31 |
+
|
32 |
+
Interested in enhancing Mermaid's capabilities? Contact troydoesai@gmail.com for collaboration opportunities.
|
33 |
+
|
34 |
+
## Example Use Cases
|
35 |
+
- **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.
|
36 |
+
- **Code Documentation:** Automatic visual flow charts from Python code.
|
37 |
+
- **Storyboarding:** Visually appealing diagrams for storytelling.
|
38 |
+
- **Project Planning:** Visual project flow maps for effective team communication.
|
39 |
+
- **Learning Python:** Helps students visually understand Python code structures.
|
40 |
+
- **Game Design:** Visualizing game storylines for coherent narrative structure.
|
41 |
+
|
42 |
+
## Proof of Concept
|
43 |
+
|
44 |
+
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.
|
45 |
+
|
46 |
+
## Training Specifications
|
47 |
+
|
48 |
+
- **LoRA Rank:** 2048
|
49 |
+
- **LoRA Alpha:** 4096
|
50 |
+
- **Batch Size:** 1
|
51 |
+
- **Micro Batch Size:** 1
|
52 |
+
- **Cutoff Length:** 4096
|
53 |
+
- **Save every n steps:** 1000
|
54 |
+
- **Epochs:** 3
|
55 |
+
- **Learning Rate:** 1e-6
|
56 |
+
- **LR Scheduler:** Cosine
|
57 |
+
|
58 |
+
**Target Modules:**
|
59 |
+
- Enable q_proj
|
60 |
+
- Enable v_proj
|
61 |
+
- Enable k_proj
|
62 |
+
- Enable o_proj
|
63 |
+
- Enable gate_proj
|
64 |
+
- Enable down_proj
|
65 |
+
- Enable up_proj
|
66 |
+
|
67 |
+
## Getting Started
|
68 |
+
|
69 |
+
Start by downloading one of my models.
|
70 |
+
|
71 |
+
![0 TroyDoesAI GIF](Mermaid_ShowCase/0_TroyDoesAI.gif)
|
72 |
+
|
73 |
+
Load the model.
|
74 |
+
|
75 |
+
![1 Load Model in 4-bit Show Example Use GIF](Mermaid_ShowCase/1_LoadModel_in_4bit_Show_Example_Use.gif)
|
76 |
+
|
77 |
+
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.
|
78 |
+
|
79 |
+
![2 Loaded Model in Full Precision 16-bit Show Inference and Mermaid Live Editor GIF](Mermaid_ShowCase/2_Loaded_Model_in_Full_Precision_16bit_Show_Inference_and_Mermaid_Live_editor.gif)
|
80 |
+
|
81 |
+
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.
|
82 |
+
|
83 |
+
![3 Open The Program VLLM Program With Full Precision Mermaid-Llama-8B Running to Evaluate Flow Map GIF](Mermaid_ShowCase/3_Open_The_Program_VLLM_Program_With_Full_Precision_Mermaid-Llama-8B-Running_to_evaluate_flow_map.gif)
|
84 |
+
|
85 |
+
## More on my VLLM Class and inference GUI : https://github.com/Troys-Code/VLLM
|
86 |
+
|
87 |
+
![Python RtdBsaz8gy GIF](Mermaid_ShowCase/python_RtdBsaz8gy.gif)
|
88 |
+
---
|
89 |
+
|
90 |
+
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.
|