rombodawg commited on
Commit
da8bc1b
1 Parent(s): 2030ab6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +119 -0
README.md CHANGED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model:
4
+ - Qwen/Qwen2-7B
5
+ datasets:
6
+ - Replete-AI/Everything_Instruct_8k_context_filtered
7
+ tags:
8
+ - unsloth
9
+ language:
10
+ - en
11
+ ---
12
+ Replete-LLM-Qwen2-7b
13
+
14
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/642cc1c253e76b4c2286c58e/q9gC-_O4huL2pK4nY-Y2x.png)
15
+
16
+ Thank you to TensorDock for sponsoring **Replete-LLM**
17
+ you can check out their website for cloud compute rental below.
18
+ -
19
+ https://tensordock.com
20
+ _____________________________________________________________
21
+ **Replete-LLM** is **Replete-AI**'s flagship model. We take pride in releasing a fully open-source, low parameter, and competitive AI model that not only surpasses its predecessor **Qwen2-7B-Instruct** in performance, but also competes with (if not surpasses) other flagship models from closed source like **gpt-3.5-turbo**, but also open source models such as **gemma-2-9b-it**
22
+ and **Meta-Llama-3.1-8B-Instruct** in terms of overall performance across all fields and categories. You can find the dataset that this model was trained on linked bellow:
23
+
24
+ - https://huggingface.co/datasets/Replete-AI/Everything_Instruct_8k_context_filtered
25
+
26
+ Some statistics about the data the model was trained on can be found in the image and details bellow, while a more comprehensive look can be found in the model card for the dataset. (linked above):
27
+
28
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/642cc1c253e76b4c2286c58e/75SR21J3-zbTGKYbeoBzX.png)
29
+
30
+ **Replete-LLM-Qwen2-7b** is a versatile model fine-tuned to excel on any imaginable task. The following types of generations were included in the fine-tuning process:
31
+
32
+ - **Science**: (General, Physical Reasoning)
33
+ - **Social Media**: (Reddit, Twitter)
34
+ - **General Knowledge**: (Character-Codex), (Famous Quotes), (Steam Video Games), (How-To? Explanations)
35
+ - **Cooking**: (Cooking Preferences, Recipes)
36
+ - **Writing**: (Poetry, Essays, General Writing)
37
+ - **Medicine**: (General Medical Data)
38
+ - **History**: (General Historical Data)
39
+ - **Law**: (Legal Q&A)
40
+ - **Role-Play**: (Couple-RP, Roleplay Conversations)
41
+ - **News**: (News Generation)
42
+ - **Coding**: (3 million rows of coding data in over 100 coding languages)
43
+ - **Math**: (Math data from TIGER-Lab/MathInstruct)
44
+ - **Function Calling**: (Function calling data from "glaiveai/glaive-function-calling-v2")
45
+ - **General Instruction**: (All of teknium/OpenHermes-2.5 fully filtered and uncensored)
46
+ ______________________________________________________________________________________________
47
+ ## Prompt Template: ChatML
48
+ ```
49
+ <|im_start|>system
50
+ {}<|im_end|>
51
+ <|im_start|>user
52
+ {}<|im_end|>
53
+ <|im_start|>assistant
54
+ {}
55
+ ```
56
+ ______________________________________________________________________________________________
57
+ Want to know the secret sause of how this model was made? Find the write up bellow
58
+
59
+ **Continuous Fine-tuning Without Loss Using Lora and Mergekit**
60
+
61
+ https://docs.google.com/document/d/1OjbjU5AOz4Ftn9xHQrX3oFQGhQ6RDUuXQipnQ9gn6tU/edit?usp=sharing
62
+ ______________________________________________________________________________________________
63
+
64
+ The code to finetune this AI model can be found bellow
65
+
66
+ - https://colab.research.google.com/drive/1vIrqH5uYDQwsJ4-OO3DErvuv4pBgVwk4?usp=sharing
67
+
68
+ - Note this model in particular was finetuned using an h100 using Tensordock.com using the Pytorch OS. In order to use Unsloth code with TensorDock you need to run the following code (Bellow) to reinstall drivers on TensorDock before unsloth works. After running the code bellow, your Virtual Machine will reset, and you will have to SSH back into it. And then you can run the normal unsloth code in order.
69
+
70
+ ```python
71
+ # Check Current Size
72
+ !df -h /dev/shm
73
+
74
+ # Increase Size Temporarily
75
+ !sudo mount -o remount,size=16G /dev/shm
76
+
77
+ # Increase Size Permanently
78
+ !echo "tmpfs /dev/shm tmpfs defaults,size=16G 0 0" | sudo tee -a /etc/fstab
79
+
80
+ # Remount /dev/shm
81
+ !sudo mount -o remount /dev/shm
82
+
83
+
84
+ # Verify the Changes
85
+ !df -h /dev/shm
86
+
87
+ !nvcc --version
88
+
89
+ !export TORCH_DISTRIBUTED_DEBUG=DETAIL
90
+ !export NCCL_DEBUG=INFO
91
+ !python -c "import torch; print(torch.version.cuda)"
92
+ !export PATH=/usr/local/cuda/bin:$PATH
93
+ !export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
94
+ !export NCCL_P2P_LEVEL=NVL
95
+ !export NCCL_DEBUG=INFO
96
+ !export NCCL_DEBUG_SUBSYS=ALL
97
+ !export TORCH_DISTRIBUTED_DEBUG=INFO
98
+ !export TORCHELASTIC_ERROR_FILE=/PATH/TO/torcherror.log
99
+ !sudo apt-get remove --purge -y '^nvidia-.*'
100
+ !sudo apt-get remove --purge -y '^cuda-.*'
101
+ !sudo apt-get autoremove -y
102
+ !sudo apt-get autoclean -y
103
+ !sudo apt-get update -y
104
+ !sudo apt-get install -y nvidia-driver-535 cuda-12-1
105
+ !sudo add-apt-repository ppa:graphics-drivers/ppa -y
106
+ !sudo apt-get update -y
107
+ !sudo apt-get update -y
108
+ !sudo apt-get install -y software-properties-common
109
+ !sudo add-apt-repository ppa:graphics-drivers/ppa -y
110
+ !sudo apt-get update -y
111
+ !latest_driver=$(apt-cache search '^nvidia-driver-[0-9]' | grep -oP 'nvidia-driver-\K[0-9]+' | sort -n | tail -1) && sudo apt-get install -y nvidia-driver-$latest_driver
112
+ !sudo reboot
113
+ ```
114
+ _______________________________________________________________________________
115
+
116
+ ## Join the Replete-Ai discord! We are a great and Loving community!
117
+
118
+ - https://discord.gg/ZZbnsmVnjD
119
+