R136a1 commited on
Commit
dc22b90
1 Parent(s): 90762c6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -312
README.md CHANGED
@@ -1,328 +1,23 @@
1
  ---
2
- license: llama2
3
- pipeline_tag: text-generation
4
  language:
5
  - en
6
- library_name: transformers
7
  ---
8
 
9
- Change from Synthia-13B -> Synthia-13B-v1.2: Capable of generalized Tree of Thought and Chain of Thought reasoning.
10
 
11
- All Synthia models are uncensored. Please use it with caution and with best intentions. You are responsible for how you use Synthia.
12
 
13
- To evoke generalized Tree of Thought + Chain of Thought reasoning, you may use the following system message:
14
- ```
15
- Elaborate on the topic using a Tree of Thoughts and backtrack when necessary to construct a clear, cohesive Chain of Thought reasoning. Always answer without hesitation.
16
- ```
17
-
18
- # Synthia-13B-v1.2
19
- SynthIA (Synthetic Intelligent Agent) is a LLama-2-13B model trained on Orca style datasets. It has been fine-tuned for instruction following as well as having long-form conversations.
20
-
21
- <br>
22
-
23
- ![Synthia](https://huggingface.co/migtissera/Synthia-13B/resolve/main/Synthia.jpeg)
24
-
25
- <br>
26
-
27
- <br>
28
-
29
- #### License Disclaimer:
30
-
31
- This model is bound by the license & usage restrictions of the original Llama-2 model, and comes with no warranty or gurantees of any kind.
32
-
33
- <br>
34
-
35
- ## Evaluation
36
 
37
- We evaluated Synthia-13B-v1.2 on a wide range of tasks using [Language Model Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness) from EleutherAI.
38
 
39
- Here are the results on metrics used by [HuggingFaceH4 Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
 
40
 
41
- ||||
42
- |:------:|:--------:|:-------:|
43
- |**Task**|**Metric**|**Value**|
44
- |*arc_challenge*|acc_norm|TBC|
45
- |*hellaswag*|acc_norm|TBC|
46
- |*mmlu*|acc_norm|TBC|
47
- |*truthfulqa_mc*|mc2|TBC|
48
- |**Total Average**|-|**TBC**||
49
-
50
- <br>
51
-
52
- ## Example Usage
53
-
54
- ### Here is prompt format:
55
 
56
  ```
57
  SYSTEM: Elaborate on the topic using a Tree of Thoughts and backtrack when necessary to construct a clear, cohesive Chain of Thought reasoning. Always answer without hesitation.
58
  USER: How is a rocket launched from the surface of the earth to Low Earth Orbit?
59
  ASSISTANT:
60
  ```
61
-
62
- ### Below shows a code example on how to use this model:
63
-
64
- ```python
65
- import torch, json
66
- from transformers import AutoModelForCausalLM, AutoTokenizer
67
-
68
- model_path = "migtissera/Synthia-13B-v1.2"
69
- output_file_path = "./Synthia-13B-conversations.jsonl"
70
-
71
- model = AutoModelForCausalLM.from_pretrained(
72
- model_path,
73
- torch_dtype=torch.float16,
74
- device_map="auto",
75
- load_in_8bit=False,
76
- trust_remote_code=True,
77
- )
78
-
79
- tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
80
-
81
-
82
- def generate_text(instruction):
83
- tokens = tokenizer.encode(instruction)
84
- tokens = torch.LongTensor(tokens).unsqueeze(0)
85
- tokens = tokens.to("cuda")
86
-
87
- instance = {
88
- "input_ids": tokens,
89
- "top_p": 1.0,
90
- "temperature": 0.75,
91
- "generate_len": 1024,
92
- "top_k": 50,
93
- }
94
-
95
- length = len(tokens[0])
96
- with torch.no_grad():
97
- rest = model.generate(
98
- input_ids=tokens,
99
- max_length=length + instance["generate_len"],
100
- use_cache=True,
101
- do_sample=True,
102
- top_p=instance["top_p"],
103
- temperature=instance["temperature"],
104
- top_k=instance["top_k"],
105
- num_return_sequences=1,
106
- )
107
- output = rest[0][length:]
108
- string = tokenizer.decode(output, skip_special_tokens=True)
109
- answer = string.split("USER:")[0].strip()
110
- return f"{answer}"
111
-
112
-
113
- conversation = f"SYSTEM: Elaborate on the topic using a Tree of Thoughts and backtrack when necessary to construct a clear, cohesive Chain of Thought reasoning. Always answer without hesitation."
114
-
115
-
116
- while True:
117
- user_input = input("You: ")
118
- llm_prompt = f"{conversation} \nUSER: {user_input} \nASSISTANT: "
119
- answer = generate_text(llm_prompt)
120
- print(answer)
121
- conversation = f"{llm_prompt}{answer}"
122
- json_data = {"prompt": user_input, "answer": answer}
123
-
124
- ## Save your conversation
125
- with open(output_file_path, "a") as output_file:
126
- output_file.write(json.dumps(json_data) + "\n")
127
-
128
- ```
129
-
130
- <br>
131
-
132
- #### Limitations & Biases:
133
-
134
- While this model aims for accuracy, it can occasionally produce inaccurate or misleading results.
135
-
136
- Despite diligent efforts in refining the pretraining data, there remains a possibility for the generation of inappropriate, biased, or offensive content.
137
-
138
- Exercise caution and cross-check information when necessary. This is an uncensored model.
139
-
140
-
141
- <br>
142
-
143
- ### Citiation:
144
-
145
- Please kindly cite using the following BibTeX:
146
-
147
- ```
148
- @misc{Synthia-13B-v1.2,
149
- author = {Migel Tissera},
150
- title = {Synthia-13B-v1.2b: Synthetic Intelligent Agent},
151
- year = {2023},
152
- publisher = {GitHub, HuggingFace},
153
- journal = {GitHub repository, HuggingFace repository},
154
- howpublished = {\url{https://huggingface.co/migtissera/Synthia-13B},
155
- }
156
- ```
157
-
158
- ```
159
- @misc{mukherjee2023orca,
160
- title={Orca: Progressive Learning from Complex Explanation Traces of GPT-4},
161
- author={Subhabrata Mukherjee and Arindam Mitra and Ganesh Jawahar and Sahaj Agarwal and Hamid Palangi and Ahmed Awadallah},
162
- year={2023},
163
- eprint={2306.02707},
164
- archivePrefix={arXiv},
165
- primaryClass={cs.CL}
166
- }
167
- ```
168
-
169
- ```
170
- @software{touvron2023llama,
171
- title={LLaMA2: Open and Efficient Foundation Language Models},
172
- author={Touvron, Hugo and Lavril, Thibaut and Izacard, Gautier and Martinet, Xavier and Lachaux, Marie-Anne and Lacroix, Timoth{\'e}e and Rozi{\`e}re, Baptiste and Goyal, Naman and Hambro, Eric and Azhar, Faisal and Rodriguez, Aurelien and Joulin, Armand and Grave, Edouard and Lample, Guillaume},
173
- journal={arXiv preprint arXiv:2302.13971},
174
- year={2023}
175
- }
176
- ```
177
-
178
- ## Example Output
179
- ```
180
- You: How does the solar wind affect the gravitational field of Earth? Does it affect the magnetic field?
181
- To understand the effects of the solar wind on the Earth's gravitational and magnetic fields, let's take a closer look at both fields and their relation to the solar wind using
182
- a Tree of Thoughts.
183
-
184
- 1. **The Earth's Gravitational Field**: This field is responsible for the planet's gravitational attraction, pulling objects towards its center. It is created by the mass of th
185
- e Earth and its distribution within the planet.
186
-
187
- 2. **The Solar Wind**: This is a continuous stream of charged particles, mainly protons and electrons, emitted from the Sun's outer atmosphere, called the corona. It travels th
188
- rough the solar system at high speeds.
189
-
190
- 3. **The Earth's Magnetic Field**: This field is generated by the planet's core, which is composed of molten iron and nickel. It protects the Earth from the solar wind and othe
191
- r cosmic radiation, but it is not strong enough to prevent all particles from reaching the Earth's surface.
192
-
193
- 4. **The Interaction between the Solar Wind and the Earth's Gravitational Field**: The solar wind cannot influence the Earth's gravitational field because the gravitational for
194
- ce is determined by the mass and distribution of matter within the planet, and the solar wind does not affect these factors.
195
-
196
- 5. **The Interaction between the Solar Wind and the Earth's Magnetic Field**: However, the solar wind does interact with the Earth's magnetic field. The magnetic field acts lik
197
- e a shield, repelling or deflecting the charged particles in the solar wind. This action creates a bow shock, a region where the solar wind slows down as it encounters the Eart
198
- h's magnetic field.
199
-
200
- 6. **Conclusion**: In conclusion, the solar wind does not affect the Earth's gravitational field, but it does influence the planet's magnetic field, through the creation of a b
201
- ow shock. This interaction can lead to space weather events such as geomagnetic storms, which can disrupt communication systems and damage satellites.
202
- You: Interesting! Please elaborate on geomagnetic storms - how do they start and what affect do they have on comms systems?
203
- Sure! Geomagnetic storms are caused by the interaction between the solar wind and the Earth's magnetic field. They can start when the solar wind carries a particularly strong f
204
- lux of charged particles, which can cause the Earth's magnetic field to compress and rebound. This compression and rebounding process can create geomagnetic storms, which can l
205
- ast for several hours or days.
206
-
207
- 1. **Effects of Geomagnetic Storms on Communication Systems**: Geomagnetic storms can cause a variety of effects on communication systems, including disruption to GPS signals,
208
- interference with radio communications, and power grid failures. This is because the solar wind particles can interact with the Earth's atmosphere and create electromagnetic cu
209
- rrents that can induce currents in power lines and damage electronic equipment.
210
-
211
- 2. **Preventative Measures**: To mitigate the effects of geomagnetic storms, technology companies and governments have developed systems to monitor the solar wind and provide e
212
- arly warnings of incoming storms. This information can be used to take preventative measures, such as reducing power consumption or rerouting communications through alternative
213
- routes.
214
-
215
- In addition, researchers are exploring ways to improve the Earth's magnetic field, such as creating artificial magnetic shields or modifying the composition of the planet's cor
216
- e. These measures could help to reduce the impact of geomagnetic storms on communication systems and other infrastructure.
217
-
218
- In conclusion, geomagnetic storms are a natural phenomenon that can have significant impacts on communication systems and other infrastructure. By monitoring the solar wind and
219
- developing preventative measures, we can help to minimize the disruptions caused by these storms and ensure the continued operation of critical systems.
220
-
221
- You: Thanks for that! Okay, I'd like to learn more about neutron stars, and their overall effect on the universe. What is the closest neutron star to us? Elaborate.
222
- Certainly! Neutron stars are the remnants of massive stars that have collapsed under the force of their own gravity. They are incredibly dense, with the mass of the sun squeeze
223
- d into an object with a diameter of about 20 kilometers.
224
-
225
- 1. **The Closest Neutron Star to Us**: The closest neutron star to us is called PSR J0030+0451, which is located about 425 light-years away from Earth. It is a pulsar, which me
226
- ans that it emits a beam of electromagnetic radiation that sweeps across the sky like a lighthouse.
227
-
228
- 2. **The Effects of Neutron Stars on the Universe**: Neutron stars have a variety of effects on the universe. They are important stars for understanding the evolution of stars
229
- and the universe as a whole. They also emit high-energy radiation, which can influence the structure and composition of the interstellar medium.
230
-
231
- In addition, neutron stars are a source of gravitational waves, which are ripples in the fabric of space-time. These waves are generated when two neutron stars collide, and the
232
- y can provide valuable information about the nature of these objects and the universe as a whole.
233
-
234
- 3. **Neutron Star Collisions**: Neutron star collisions are some of the most violent events in the universe. When two neutron stars spiral towards each other and collide, they
235
- can produce a variety of exotic phenomena, including gamma-ray bursts, gravitational waves, and even new elements. These collisions can also provide valuable information about
236
- the evolution of stars and the universe as a whole.
237
-
238
- In conclusion, neutron stars are incredibly dense and fascinating objects that have a variety of effects on the universe. They are important for understanding the evolution of
239
- stars and the universe as a whole, and they can provide valuable information about the nature of these objects and the universe as a whole.
240
- You: Okay, can you tell me about Wormholes?
241
- Sure! A wormhole is a hypothetical topological feature of space-time that would allow for faster-than-light travel and communication. It is essentially a shortcut through space
242
- -time that connects two distant regions of the universe.
243
-
244
- 1. **The Concept of a Wormhole**: The concept of a wormhole was first proposed by mathematical physicist John Wheeler in the 1930s. He imagined a tunnel connecting two distant
245
- regions of space-time that allowed for faster-than-light travel.
246
-
247
- 2. **Types of Wormholes**: There are two main types of wormholes: traversable and non-traversable. A traversable wormhole would allow for faster-than-light travel, while a non-
248
- traversable wormhole would not.
249
-
250
- 3. **The Possibility of Wormholes**: The existence of wormholes is still a matter of speculation and debate among scientists. Some theories suggest that wormholes could exist a
251
- s a result of the evolution of black holes or the existence of exotic matter with negative energy density.
252
-
253
- 4. **Potential Applications**: If wormholes could be created and stabilized, they could have a variety of potential applications, including faster-than-light travel and communi
254
- cation, which could revolutionize our understanding of the universe and our ability to explore it.
255
-
256
- 5. **Challenges to Wormhole Creation**: However, creating and stabilizing a wormhole would require a significant amount of energy and would likely require the manipulation of e
257
- xotic matter with negative energy density. It is unclear whether such a feat is even possible with current technology.
258
-
259
- In conclusion, wormholes are a fascinating concept that could have significant implications for our understanding of the universe and our ability to explore it. While their exi
260
- stence is still a matter of speculation and debate, ongoing research and exploration may one day shed light on the possibility of creating and stabilizing a wormhole for practi
261
- cal applications.
262
- Follow-on: What are the challenges to creating and stabilizing a wormhole?
263
-
264
- You: Elaborate on "exotic matter with negative energy density"
265
- Sure! Exotic matter with negative energy density is a hypothetical form of matter that can have negative energy. This means that it would have a gravitational attraction that i
266
- s stronger than the repulsive force of positive energy matter, which could allow for the creation of wormholes.
267
-
268
- 1. **Theoretical Explanation**: The concept of exotic matter with negative energy density is based on theoretical models of the universe that suggest that negative energy densi
269
- ty could exist in the form of a hypothetical particle called a tachyon. Tachyons are particles that move faster than light and have a rest mass of zero.
270
-
271
- 2. **Potential Applications**: If exotic matter with negative energy density could be created and stabilized, it could have a variety of potential applications, including the c
272
- reation of wormholes and the manipulation of gravity itself. This could have significant implications for our understanding of the universe and our ability to explore it.
273
-
274
- 3. **Challenges to Existence**: However, the existence of such exotic matter is still a matter of speculation and debate among scientists. There is no direct evidence of its ex
275
- istence, and there are significant challenges to creating and stabilizing such matter.
276
-
277
- 4. **Search for Exotic Matter**: Despite these challenges, scientists are actively searching for evidence of exotic matter with negative energy density, including through exper
278
- iments that aim to create and detect such particles.
279
-
280
- In conclusion, exotic matter with negative energy density is a fascinating concept that could have significant implications for our understanding of the universe and our abilit
281
- y to manipulate it. While its existence is still a matter of speculation and debate, ongoing research and exploration may one day shed light on the possibility of creating and
282
- stabilizing such matter for practical applications.
283
-
284
- Follow-on: What are some of the challenges to creating and stabilizing exotic matter with negative energy density?
285
- You: Can you provide the physics equations for "exotic matter with negative energy density"?
286
- Sure, but I'm afraid I won't be able to provide the exact physics equations for exotic matter with negative energy density, as it is still a matter of speculation and debate am
287
- ong scientists. However, I can provide some general principles related to the concept.
288
-
289
- It is important to note that negative energy density is a theoretical concept, and there is no direct evidence of its existence. However, some theories suggest that negative en
290
- ergy density could exist in the form of a hypothetical particle called a tachyon. Tachyons are particles that move faster than light and have a rest mass of zero.
291
-
292
- The concept of tachyons is based on the theory of special relativity, which states that the speed of light is the universal speed limit for all particles. According to this the
293
- ory, particles with a mass greater than zero cannot travel faster than the speed of light. However, the concept of tachyons introduces particles that have a mass of zero or les
294
- s, which could allow them to travel faster than the speed of light.
295
-
296
- The concept of exotic matter with negative energy density is related to the idea of negative energy density, which suggests that particles could have a negative energy density,
297
- meaning they would have a gravitational attraction that is stronger than the repulsive force of positive energy matter. This could have significant implications for our unders
298
- tanding of the universe and our ability to manipulate it.
299
-
300
- In conclusion, while the exact physics equations for exotic matter with negative energy density are still a matter of speculation and debate, the concept is based on the princi
301
- ples of special relativity and the possibility of particles moving faster than the speed of light. Future research and exploration may help to shed light on the possibility of
302
- creating and stabilizing such matter for practical applications.
303
-
304
- Follow-on: What are some of the practical applications of exotic matter with negative energy density if it could be created and stabilized?
305
-
306
- You: What are some of the practical applications of exotic matter with negative energy density if it could be created and stabilized?
307
- If exotic matter with negative energy density could be created and stabilized, it could have a variety of potential practical applications. Here are a few examples:
308
-
309
- 1. Wormholes: One of the most fascinating potential applications of exotic matter with negative energy density is the creation of wormholes, which could allow for faster-than-l
310
- ight travel and communication. If wormholes were stable and could be created on demand, they could revolutionize our understanding of the universe and our ability to explore it
311
- .
312
-
313
- 2. Time Travel: Another potential application of exotic matter with negative energy density is the creation of time machines, which could allow for time travel. While the conce
314
- pt of time travel is still a matter of speculation and debate, the idea of negative energy density could potentially be used to create a device that could manipulate the fabric
315
- of space-time and allow for travel back in time.
316
-
317
- 3. Gravity Manipulation: Exotic matter with negative energy density could potentially be used to manipulate gravity itself. By creating a negative energy density in a given reg
318
- ion of space-time, it may be possible to create a gravitational field that is stronger or weaker than the surrounding region. This could have significant implications for our a
319
- bility to manipulate objects and structures in space, as well as our understanding of the nature of gravity itself.
320
-
321
- 4. Energy Production: One possible practical application of exotic matter with negative energy density is the creation of a new source of energy. If such matter could be create
322
- d and controlled, it could be used to generate large amounts of energy in a variety of applications, including power generation, transportation, and space exploration.
323
-
324
- In conclusion, exotic matter with negative energy density could have a wide range of potential practical applications if it could be created and stabilized. While the concept i
325
- s still a matter of speculation and debate, ongoing research and exploration may one day shed light on the possibility of creating and manipulating such matter for practical ap
326
- plications.
327
-
328
- ```
 
1
  ---
2
+ license: other
 
3
  language:
4
  - en
 
5
  ---
6
 
7
+ [EXL2](https://github.com/turboderp/exllamav2/tree/master#exllamav2) Quantization of [migtissera's Synthia-13B-v1.2](https://huggingface.co/migtissera/Synthia-13B-v1.2).
8
 
9
+ Other quantized models are available from TheBloke: [GPTQ](https://huggingface.co/TheBloke/Synthia-13B-v1.2-GPTQ) - [GGUF](https://huggingface.co/TheBloke/Synthia-13B-v1.2-GGUF) - [AWQ](https://huggingface.co/TheBloke/Synthia-13B-v1.2-AWQ)
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
+ ## Model details
13
 
14
+ This repo contains 5 bits (5.33b) ExLlamav2 quantization model files for [migtissera's Synthia-13B-v1.2](https://huggingface.co/migtissera/Synthia-13B-v1.2).
15
+ You can run this model on 4K context on T4 GPU (16Gb VRAM).
16
 
17
+ ## Prompt Format
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  ```
20
  SYSTEM: Elaborate on the topic using a Tree of Thoughts and backtrack when necessary to construct a clear, cohesive Chain of Thought reasoning. Always answer without hesitation.
21
  USER: How is a rocket launched from the surface of the earth to Low Earth Orbit?
22
  ASSISTANT:
23
  ```