TheBloke commited on
Commit
72b7b83
1 Parent(s): b606539

Updating model files

Browse files
Files changed (1) hide show
  1. README.md +51 -0
README.md CHANGED
@@ -13,6 +13,17 @@ tags:
13
  datasets:
14
  - h2oai/h2ogpt-oig-oasst1-instruct-cleaned-v2
15
  ---
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  # h2ogpt-oasst1-512-30B-GGML
18
 
@@ -64,6 +75,46 @@ Further instructions here: [text-generation-webui/docs/llama.cpp-models.md](http
64
 
65
  Note: at this time text-generation-webui may not support the new May 19th llama.cpp quantisation methods for q4_0, q4_1 and q8_0 files.
66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  # Original h2oGPT Model Card
68
  ## Summary
69
 
 
13
  datasets:
14
  - h2oai/h2ogpt-oig-oasst1-instruct-cleaned-v2
15
  ---
16
+ <div style="width: 100%;">
17
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
18
+ </div>
19
+ <div style="display: flex; justify-content: space-between; width: 100%;">
20
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
21
+ <p><a href="https://discord.gg/UBgz4VXf">Chat & support: my new Discord server</a></p>
22
+ </div>
23
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
24
+ <p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? Patreon coming soon!</a></p>
25
+ </div>
26
+ </div>
27
 
28
  # h2ogpt-oasst1-512-30B-GGML
29
 
 
75
 
76
  Note: at this time text-generation-webui may not support the new May 19th llama.cpp quantisation methods for q4_0, q4_1 and q8_0 files.
77
 
78
+ def insert_templates_into_file(filename, template1_filename, template2_filename):
79
+ with open(filename, 'r') as file:
80
+ lines = [line.rstrip() for line in file]
81
+
82
+ # Read the contents of the template files
83
+ with open(template1_filename, 'r') as file:
84
+ template1 = file.read().splitlines()
85
+
86
+ with open(template2_filename, 'r') as file:
87
+ template2 = file.read().splitlines()
88
+
89
+ # Find the line index of the second "---"
90
+ indices = [i for i, line in enumerate(lines) if line.strip() == "---"]
91
+ if len(indices) < 2:
92
+ raise ValueError("File doesn't have two lines with ---")
93
+
94
+ second_dash_line_index = indices[1]
95
+
96
+ # Insert first template after the second "---"
97
+ for i, template_line in enumerate(template1, start=1):
98
+ lines.insert(second_dash_line_index + i, template_line)
99
+
100
+ original_card_index = 0
101
+ # Find the line index of the first occurrence of 'original model card' or '## further info' (case insensitive)
102
+ try:
103
+ original_card_index = next(i for i, line in enumerate(lines) if 'original model card' in line.lower())
104
+ except StopIteration:
105
+ try:
106
+ original_card_index = next(i for i, line in enumerate(lines) if '## further info' in line.lower())
107
+ except StopIteration:
108
+ original_card_index = len(lines)
109
+
110
+ # Insert second template before the line with 'original model card' or '## further info'
111
+ for i, template_line in enumerate(template2, start=1):
112
+ lines.insert(original_card_index + i - 1, template_line)
113
+
114
+ with open(filename, 'w') as file:
115
+ for line in lines:
116
+ file.write(line + '\n')
117
+
118
  # Original h2oGPT Model Card
119
  ## Summary
120